[FIX] account_anglo_saxon: inherit view of product use field and not xpath.

bzr revid: chm@openerp.com-20131015085537-dv70k245v01crptn
This commit is contained in:
Christophe Matthieu 2013-10-15 10:55:37 +02:00
parent 03b360e19f
commit 5f7cbf6ad5
2 changed files with 8 additions and 8 deletions

View File

@ -6,11 +6,11 @@
<field name="model">product.product</field> <field name="model">product.product</field>
<field name="inherit_id" ref="account.product_normal_form_view"/> <field name="inherit_id" ref="account.product_normal_form_view"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//field[@name='property_account_expense']" position="after"> <field name="property_account_expense" position="after">
<label string="" colspan="2"/> <label string="" colspan="2"/>
<field name="property_account_creditor_price_difference" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" /> <field name="property_account_creditor_price_difference" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" />
<newline/> <newline/>
</xpath> </field>
</field> </field>
</record> </record>
@ -19,10 +19,10 @@
<field name="model">product.template</field> <field name="model">product.template</field>
<field name="inherit_id" ref="account.product_template_form_view"/> <field name="inherit_id" ref="account.product_template_form_view"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="/form/notebook/page/field[@name='property_account_expense']" position="after"> <field name="property_account_expense" position="after">
<field name="property_account_creditor_price_difference" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" /> <field name="property_account_creditor_price_difference" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" />
<newline/> <newline/>
</xpath> </field>
</field> </field>
</record> </record>

View File

@ -618,12 +618,12 @@
<xpath expr="//div[@name='buttons']" position="inside"> <xpath expr="//div[@name='buttons']" position="inside">
<button string="Purchases" name="%(action_purchase_line_product_tree)d" type="action" groups="purchase.group_purchase_user"/> <button string="Purchases" name="%(action_purchase_line_product_tree)d" type="action" groups="purchase.group_purchase_user"/>
</xpath> </xpath>
<xpath expr="//field[@name='property_account_expense']" position="replace" > <field name="property_account_expense" position="replace" >
<field name="property_account_expense" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" groups="account.group_account_user"/> <field name="property_account_expense" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" groups="account.group_account_user"/>
</xpath> </field>
<xpath expr="//field[@name='supplier_taxes_id']" position="replace" > <field name='supplier_taxes_id' position="replace" >
<field name="supplier_taxes_id" colspan="2" widget="many2many_tags" attrs="{'readonly':[('purchase_ok','=',0)]}"/> <field name="supplier_taxes_id" colspan="2" widget="many2many_tags" attrs="{'readonly':[('purchase_ok','=',0)]}"/>
</xpath> </field>
</field> </field>
</record> </record>
</data> </data>