fields_view.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="analytic_account_form_view">
  5. <field name="name">analytic.account.form.view</field>
  6. <field name="model">account.analytic.account</field>
  7. <field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>
  8. <field name="groups_id" eval="[(6, 0, [ref('fields_security.group_restrict_fields')])]"/>
  9. <field name="arch" type="xml">
  10. <field name="template_id" position="attributes">
  11. <attribute name="attrs">{'invisible':True}</attribute>
  12. </field>
  13. <field name="parent_id" position="attributes">
  14. <attribute name="attrs">{'invisible':True}</attribute>
  15. </field>
  16. <field name="partner_id" position="replace">
  17. <field name="partner_id" on_change="on_change_partner_id(partner_id, name)" domain="[('customer','=',True)]" required="1"/>
  18. </field>
  19. <field name="manager_id" position="replace">
  20. <field name="manager_id" context="{'default_groups_ref': ['base.group_user', 'base.group_partner_manager', 'account.group_account_manager']}" string="Responsable"/>
  21. </field>
  22. </field>
  23. </record>
  24. <record model="ir.ui.view" id="analytic_account_form_view_inherit">
  25. <field name="name">analytic.account.form.view.inherit</field>
  26. <field name="model">account.analytic.account</field>
  27. <field name="inherit_id" ref="account_analytic_analysis.account_analytic_account_form_form"/>
  28. <field name="groups_id" eval="[(6, 0, [ref('fields_security.group_restrict_fields')])]"/>
  29. <field name="arch" type="xml">
  30. <xpath expr="//form/sheet/notebook//table[@class='oe_form_analytic_account']" position="attributes">
  31. <attribute name="attrs">{'invisible':True}</attribute>
  32. </xpath>
  33. <xpath expr="//form/sheet/notebook//separator[@string='Invoicing']" position="attributes">
  34. <attribute name="attrs">{'invisible':True}</attribute>
  35. </xpath>
  36. <xpath expr="//form/sheet/notebook//div[@class='oe_grey']" position="attributes">
  37. <attribute name="attrs">{'invisible':True}</attribute>
  38. </xpath>
  39. <label for="quantity_max" position="replace">
  40. <label for="quantity_max" string=" "/>
  41. </label>
  42. <field name="quantity_max" position="attributes">
  43. <attribute name="attrs">{'invisible':True}</attribute>
  44. </field>
  45. <xpath expr="//form/sheet/notebook//group[@name='invoice_on_timesheets']" position="attributes">
  46. <attribute name="attrs">{'invisible':True}</attribute>
  47. </xpath>
  48. <button name="recurring_create_invoice" position="replace">
  49. <button class="oe_link" name="recurring_create_invoice" attrs="{'invisible': [('recurring_invoices','!=',True)]}" string="⇒ create invoices" type="object"/>
  50. </button>
  51. </field>
  52. </record>
  53. </data>
  54. </openerp>