~eduardo-bayardo-bias/openobject-addons/addons_interface

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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="view_partner_paymet_term_inherit_form" model="ir.ui.view">
            <field name="name">partner.payment.term.form.inherit</field>
            <field name="model">res.partner</field>
            <field name="type">form</field>
            <field name="inherit_id" ref="account.view_partner_property_form"/>
            <field name="arch" type="xml">
                <field name="property_payment_term" position="replace">
                    <field name="property_payment_term" widget="selection" groups="account.group_account_manager" />
                </field>
                <field name="credit_limit" position="replace">
                    <field name="credit_limit"  groups="account.group_account_manager" />
                </field>
            </field>
        </record>

        <record id="view_partner_form" model="ir.ui.view">
              <field name="name">res.partner.vat.inherit</field>
              <field name="model">res.partner</field>
              <field name="inherit_id" ref="base_vat.view_partner_form"/>
              <field name="arch" type="xml">
                    <field name="vat" position="replace">
                    </field>
              </field>
        </record>

        <record id="view_category_property_form" model="ir.ui.view">
            <field name="name">partner.over.credit.limit.form.inherit</field>
            <field name="model">res.partner</field>
            <field name="type">form</field>
            <field name="inherit_id" ref="base.view_partner_form"/>
            <field name="arch" type="xml">
                <field name="credit_limit" position="after">
                    <field name="over_credit" groups="account.group_account_manager"/>
                </field>
                <field name="title" position="after">
                    <field name="vat" on_change="vat_change(vat)" colspan="4" />
                </field>
                <xpath expr="//group[@groups='base.group_extended']" position="replace">
                </xpath>
                <field name="comment" position="after">
                    <group  groups="base.group_extended">
                            <separator colspan="4" string="Categories"/>
                            <field  colspan="4" name="category_id" nolabel="1"/>
                    </group>
                </field>
                <xpath expr="//page/field/form/group[@colspan='2' and @col='2']" position="replace">
                     <newline/>
                     <group  colspan="4" col="6">
                        <separator string="Communication" colspan="6"/>
                        <field name="phone"/>
                        <field name="mobile"/>
                        <field name="fax"/>
                     </group>
                     <group  colspan="4">
                        <field name="email" widget="email"/>
                     </group>
                </xpath>
            </field>
        </record>






    </data>
</openerp>