~unifield-team/unifield-wm/us-826

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<openerp>
    <data>

        <record id="product_normal_form_view" model="ir.ui.view">
            <field name="name">product.normal.form.inherit</field>
            <field name="model">product.product</field>
            <field name="type">form</field>
            <field name="inherit_id" ref="product.product_normal_form_view"/>
            <field name="priority">20</field>
            <field name="arch" type="xml">
                <page string="Accounting" position="inside">
                    <group colspan="4" col="2">
                        <separator string="Donation Properties"/>
                        <field name="donation_expense_account" domain="[('restricted_area', '=', 'product_donation')]"/>
                    </group>
                </page>
            </field>
        </record>

        <record id="view_category_property_form" model="ir.ui.view">
            <field name="name">product.category.property.form.inherit</field>
            <field name="model">product.category</field>
            <field name="type">form</field>
            <field name="inherit_id" ref="product.product_category_form_view"/>
            <field name="priority">20</field>
            <field name="arch" type="xml">
                <form position="inside">
                    <group col="2" colspan="2">
                        <separator string="Donation Properties" colspan="2"/>
                        <field name="donation_expense_account" domain="[('restricted_area', '=', 'product_category_donation')]"/>
                    </group>
                </form>
            </field>
        </record>

        <record id="view_category_property_search" model="ir.ui.view">
            <field name="name">product.category.property.search</field>
            <field name="model">product.category</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Products Categories">
                    <field name="name" select="1"/>
                    <field name="msfid" select="1"/>
                </search>
            </field>
        </record>

    </data>
</openerp>