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="priority">5</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" groups="account.group_account_invoice">
12 <group name="properties">
14 <field name="property_account_income" domain="[('type','=','other')]" groups="account.group_account_user"
15 attrs="{'readonly': [('is_only_child', '=', False)]}"/>
16 <field name="taxes_id" colspan="2" widget="many2many_tags"
17 attrs="{'readonly':[ '|', ('sale_ok','=',0), ('is_only_child', '=', False)]}"/>
20 <field name="property_account_expense" domain="[('type','=','other')]" groups="account.group_account_user"
21 attrs="{'readonly': [('is_only_child', '=', False)]}"/>
22 <field name="supplier_taxes_id" colspan="2" widget="many2many_tags"
23 attrs="{'readonly': [('is_only_child', '=', False)]}"/>
31 <record id="product_template_form_view" model="ir.ui.view">
32 <field name="name">product.template.product.form.inherit</field>
33 <field name="model">product.template</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 <group name="properties">
40 <field name="property_account_income" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
41 <field name="taxes_id" colspan="2" widget="many2many_tags"/>
44 <field name="property_account_expense" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
45 <field name="supplier_taxes_id" colspan="2" widget="many2many_tags"/>
55 <record id="view_category_property_form" model="ir.ui.view">
56 <field name="name">product.category.property.form.inherit</field>
57 <field name="model">product.category</field>
58 <field name="inherit_id" ref="product.product_category_form_view"/>
59 <field name="arch" type="xml">
61 <xpath expr="//group[@name='parent']" position="inside">
62 <group name="account_property" string="Account Properties" colspan="2">
63 <field name="property_account_income_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
64 <field name="property_account_expense_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>