[IMP] account: simplify button name - analytic accounts related to a partners are...
[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','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]" groups="account.group_account_user"/>
15                                 <field name="taxes_id" colspan="2" attrs="{'readonly':[('sale_ok','=',0)]}" widget="many2many_tags"/>
16                             </group>
17                             <group>
18                                 <field name="property_account_expense" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]" groups="account.group_account_user"/>
19                                 <field name="supplier_taxes_id" colspan="2" widget="many2many_tags"/>
20                             </group>
21                         </group>
22                     </page>
23                 </notebook>
24             </field>
25         </record>
26
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="inherit_id" ref="product.product_template_form_view"/>
31             <field name="arch" type="xml">
32                 <notebook position="inside">
33                     <page string="Accounting">
34                         <separator string="Sales Properties" colspan="2"/>
35                         <separator string="Purchase Properties" colspan="2"/>
36                         <field name="property_account_income" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
37                         <field name="property_account_expense" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
38                         <field name="taxes_id"/>
39                         <field name="supplier_taxes_id"/>
40                     </page>
41                 </notebook>
42              </field>
43         </record>
44
45
46
47         <record id="view_category_property_form" model="ir.ui.view">
48             <field name="name">product.category.property.form.inherit</field>
49             <field name="model">product.category</field>
50             <field name="inherit_id" ref="product.product_category_form_view"/>
51             <field name="arch" type="xml">
52                 <data>
53                     <xpath expr="//group[@name='parent']" position="inside">
54                         <group name="account_property" string="Account Properties" colspan="2">
55                             <field name="property_account_income_categ" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
56                             <field name="property_account_expense_categ" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
57                         </group>
58                     </xpath>
59                 </data>
60             </field>
61         </record>
62
63     </data>
64 </openerp>