123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?xml version="1.0"?>
- <openerp>
- <data>
- <record model="ir.ui.view" id="analytic_account_form_view">
- <field name="name">analytic.account.form.view</field>
- <field name="model">account.analytic.account</field>
- <field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>
- <field name="groups_id" eval="[(6, 0, [ref('fields_security.group_restrict_fields')])]"/>
- <field name="arch" type="xml">
- <field name="template_id" position="attributes">
- <attribute name="attrs">{'invisible':True}</attribute>
- </field>
- <field name="parent_id" position="attributes">
- <attribute name="attrs">{'invisible':True}</attribute>
- </field>
- <field name="partner_id" position="replace">
- <field name="partner_id" on_change="on_change_partner_id(partner_id, name)" domain="[('customer','=',True)]" required="1"/>
- </field>
- <field name="manager_id" position="replace">
- <field name="manager_id" context="{'default_groups_ref': ['base.group_user', 'base.group_partner_manager', 'account.group_account_manager']}" string="Responsable"/>
- </field>
- </field>
- </record>
- <record model="ir.ui.view" id="analytic_account_form_view_inherit">
- <field name="name">analytic.account.form.view.inherit</field>
- <field name="model">account.analytic.account</field>
- <field name="inherit_id" ref="account_analytic_analysis.account_analytic_account_form_form"/>
- <field name="groups_id" eval="[(6, 0, [ref('fields_security.group_restrict_fields')])]"/>
- <field name="arch" type="xml">
- <xpath expr="//form/sheet/notebook//table[@class='oe_form_analytic_account']" position="attributes">
- <attribute name="attrs">{'invisible':True}</attribute>
- </xpath>
- <xpath expr="//form/sheet/notebook//separator[@string='Invoicing']" position="attributes">
- <attribute name="attrs">{'invisible':True}</attribute>
- </xpath>
- <xpath expr="//form/sheet/notebook//div[@class='oe_grey']" position="attributes">
- <attribute name="attrs">{'invisible':True}</attribute>
- </xpath>
- <label for="quantity_max" position="replace">
- <label for="quantity_max" string=" "/>
- </label>
- <field name="quantity_max" position="attributes">
- <attribute name="attrs">{'invisible':True}</attribute>
- </field>
- <xpath expr="//form/sheet/notebook//group[@name='invoice_on_timesheets']" position="attributes">
- <attribute name="attrs">{'invisible':True}</attribute>
- </xpath>
- <button name="recurring_create_invoice" position="replace">
- <button class="oe_link" name="recurring_create_invoice" attrs="{'invisible': [('recurring_invoices','!=',True)]}" string="⇒ create invoices" type="object"/>
- </button>
- </field>
- </record>
- </data>
- </openerp>
|