[MERGE] forward port of branch saas-3 up to revid 9380 chs@openerp.com-20140407144439...
[odoo/odoo.git] / addons / account / product_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
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">
13                             <group>
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)]}"/>
18                             </group>
19                             <group>
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)]}"/>
24                             </group>
25                         </group>
26                     </page>
27                 </notebook>
28             </field>
29         </record>
30
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">
39                             <group>
40                                 <field name="property_account_income" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
41                                 <field name="taxes_id" colspan="2" widget="many2many_tags"/>
42                             </group>
43                             <group>
44                                 <field name="property_account_expense" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
45                                 <field name="supplier_taxes_id" colspan="2" widget="many2many_tags"/>
46                             </group>
47                         </group>
48                     </page>
49                 </notebook>
50              </field>
51         </record>
52
53
54
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">
60                 <data>
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','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
64                             <field name="property_account_expense_categ" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
65                         </group>
66                     </xpath>
67                 </data>
68             </field>
69         </record>
70
71     </data>
72 </openerp>