[IMP]improve product template view and change necessary xpath

bzr revid: dka@tinyerp.com-20131122054850-8sfin7rypnyf17ip
This commit is contained in:
Darshan Kalola (OpenERP) 2013-11-22 11:18:50 +05:30
parent d67a267c39
commit 9f2dce4fe0
2 changed files with 6 additions and 5 deletions

View File

@ -19,10 +19,10 @@
<field name="model">product.template</field>
<field name="inherit_id" ref="account.product_template_form_view"/>
<field name="arch" type="xml">
<xpath expr="//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)]}" />
<newline/>
</xpath>
</field>
</field>
</record>

View File

@ -60,10 +60,11 @@
</div>
</xpath>
<xpath expr="//group[@string='Product Type']" position="inside">
<field name="website_published"/>
<xpath expr="//div[@name='options']" position="inside">
<field name="website_published"/>
<label for="website_published"/>
</xpath>
<xpath expr="//page[@string='Information']" position="inside">
<xpath expr="//field[@name='description']" position="before">
<group colspan="4" string="Website Options">
<field name="suggested_product_ids" widget="many2many_tags"/>
<field name="website_style_ids" widget="many2many_tags"/>