[IMP] stock: Improve the view of product

bzr revid: sbh@tinyerp.com-20100915104807-ggnoeybdnnwhpfdx
This commit is contained in:
sbh (Open ERP) 2010-09-15 16:18:07 +05:30
parent 784b5e5a46
commit 3a52e3db6c
2 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@
<field name="arch" type="xml">
<notebook position="inside">
<page string="Accounting">
<group groups="base.group_extended">
<group name="properties" groups="base.group_extended">
<separator string="Sales Properties" colspan="2"/>
<separator string="Purchase Properties" colspan="2"/>
<field name="property_account_income" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]" attrs="{'readonly':[('sale_ok','=',0)]}" groups="base.group_extended"/>

View File

@ -75,15 +75,15 @@
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="priority">26</field>
<field name="arch" type="xml">
<xpath expr="/form/notebook/page[@string='Accounting']" position="inside">
<newline/>
<xpath expr="/form/notebook/page/group[@name='properties']" position="before">
<group groups="base.group_extended">
<separator string="Stock Input/Output Account" colspan="2"/>
<newline/>
<newline/>
<field name="valuation"/>
<field name="property_stock_account_output" attrs="{'readonly':[('valuation', '!=', 'real_time')]}" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]" groups="base.group_extended"/>
<field name="property_stock_account_input" attrs="{'readonly':[('valuation', '!=', 'real_time')]}" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]" groups="base.group_extended"/>
</group>
<newline/>
</xpath>
</field>
</record>