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">
14 <field name="property_account_income" domain="[('type','<>','view'),('type','<>','consolidation')]" attrs="{'readonly':[('sale_ok','=',0)]}"/>
15 <field name="taxes_id" colspan="2" attrs="{'readonly':[('sale_ok','=',0)]}" widget="many2many_tags"/>
18 <field name="property_account_expense" domain="[('type','<>','view'),('type','<>','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}"/>
19 <field name="supplier_taxes_id" colspan="2" attrs="{'readonly':[('purchase_ok','=',0)]}" widget="many2many_tags"/>
27 <record id="product_template_form_view" model="ir.ui.view">
28 <field name="name">product.template.product.form.inherit</field>
29 <field name="model">product.template</field>
30 <field name="type">form</field>
31 <field name="inherit_id" ref="product.product_template_form_view"/>
32 <field name="arch" type="xml">
33 <notebook position="inside">
34 <page string="Accounting">
35 <separator string="Sales Properties" colspan="2"/>
36 <separator string="Purchase Properties" colspan="2"/>
37 <field name="property_account_income" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
38 <field name="property_account_expense" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
39 <field name="taxes_id"/>
40 <field name="supplier_taxes_id"/>
48 <record id="view_category_property_form" model="ir.ui.view">
49 <field name="name">product.category.property.form.inherit</field>
50 <field name="model">product.category</field>
51 <field name="type">form</field>
52 <field name="inherit_id" ref="product.product_category_form_view"/>
53 <field name="arch" type="xml">
54 <form position="inside">
55 <group string="Accounting Properties">
56 <field name="property_account_income_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
57 <field name="property_account_expense_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>