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="inherit_id" ref="product.product_normal_form_view"/>
8 <field name="arch" type="xml">
9 <notebook position="inside">
10 <page string="Accounting" groups="account.group_account_invoice">
11 <group name="properties">
13 <field name="property_account_income" domain="[('type','<>','view'),('type','<>','consolidation')]" groups="account.group_account_user"/>
14 <field name="taxes_id" colspan="2" attrs="{'readonly':[('sale_ok','=',0)]}" widget="many2many_tags"/>
17 <field name="property_account_expense" domain="[('type','<>','view'),('type','<>','consolidation')]" groups="account.group_account_user"/>
18 <field name="supplier_taxes_id" colspan="2" widget="many2many_tags"/>
26 <record id="product_template_form_view" model="ir.ui.view">
27 <field name="name">product.template.product.form.inherit</field>
28 <field name="model">product.template</field>
29 <field name="inherit_id" ref="product.product_template_form_view"/>
30 <field name="arch" type="xml">
31 <notebook position="inside">
32 <page string="Accounting">
33 <separator string="Sales Properties" colspan="2"/>
34 <separator string="Purchase Properties" colspan="2"/>
35 <field name="property_account_income" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
36 <field name="property_account_expense" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
37 <field name="taxes_id"/>
38 <field name="supplier_taxes_id"/>
46 <record id="view_category_property_form" model="ir.ui.view">
47 <field name="name">product.category.property.form.inherit</field>
48 <field name="model">product.category</field>
49 <field name="inherit_id" ref="product.product_category_form_view"/>
50 <field name="arch" type="xml">
52 <xpath expr="//group[@name='parent']" position="inside">
53 <group name="account_property" string="Account Properties" colspan="2">
54 <field name="property_account_income_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
55 <field name="property_account_expense_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>