1 <?xml version="1.0" encoding="utf-8"?>
4 <record id="product_normal_form_view" model="ir.ui.view">
5 <field name="name">product.normal.form.inherit</field>
6 <field name="model">product.product</field>
7 <field name="type">form</field>
8 <field name="inherit_id" ref="product.product_normal_form_view"/>
9 <field name="arch" type="xml">
10 <notebook position="inside">
11 <page string="Accounting">
12 <group name="properties" groups="base.group_extended">
13 <separator string="Sales Properties" colspan="2"/>
14 <separator string="Purchase Properties" colspan="2"/>
15 <field name="property_account_income" domain="[('type','<>','view'),('type','<>','consolidation')]" attrs="{'readonly':[('sale_ok','=',0)]}" groups="base.group_extended"/>
16 <field name="property_account_expense" domain="[('type','<>','view'),('type','<>','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" groups="base.group_extended"/>
20 <separator string="Sale Taxes" colspan="2"/>
21 <separator string="Purchase Taxes" colspan="2"/>
22 <field name="taxes_id" nolabel="1" colspan="2" attrs="{'readonly':[('sale_ok','=',0)]}"/>
23 <field name="supplier_taxes_id" nolabel="1" colspan="2" attrs="{'readonly':[('purchase_ok','=',0)]}"/>
30 <record id="product_template_form_view" model="ir.ui.view">
31 <field name="name">product.template.product.form.inherit</field>
32 <field name="model">product.template</field>
33 <field name="type">form</field>
34 <field name="inherit_id" ref="product.product_template_form_view"/>
35 <field name="arch" type="xml">
36 <notebook position="inside">
37 <page string="Accounting">
38 <separator string="Sales Properties" colspan="2"/>
39 <separator string="Purchase Properties" colspan="2"/>
40 <field name="property_account_income" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
41 <field name="property_account_expense" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
42 <field name="taxes_id"/>
43 <field name="supplier_taxes_id"/>
51 <record id="view_category_property_form" model="ir.ui.view">
52 <field name="name">product.category.property.form.inherit</field>
53 <field name="model">product.category</field>
54 <field name="type">form</field>
55 <field name="inherit_id" ref="product.product_category_form_view"/>
56 <field name="arch" type="xml">
57 <form position="inside">
58 <group col="2" colspan="2">
59 <separator string="Accounting Properties" colspan="2"/>
60 <field name="property_account_income_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
61 <field name="property_account_expense_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>