forked from OCA/l10n-brazil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
res_partner_view.xml
162 lines (157 loc) · 9.14 KB
/
res_partner_view.xml
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="l10n_br_account_position_template_form" model="ir.ui.view">
<field name="name">l10n_br_account.fiscal.position.template.form</field>
<field name="model">account.fiscal.position.template</field>
<field name="inherit_id" ref="account.view_account_position_template_form"/>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Fiscal Position Template" position="replace">
<form string="Fiscal Position">
<group colspan="4" col="6">
<field name="name" select="1"/>
<field name="type" required="1" on_change="onchange_type(type, context)"/>
<field name="type_tax_use" invisible="1"/>
<field name="chart_template_id"/>
</group>
<newline/>
<notebook colspan="4">
<page string="Impostos">
<separator string="Mapping" colspan="4"/>
<field name="tax_ids" colspan="4" widget="one2many_list" nolabel="1">
<tree string="Tax Mapping" editable="bottom">
<field name="tax_code_src_id" on_change="onchange_tax_code_src_id(tax_src_id, tax_code_src_id)" attrs="{'required': [('tax_src_id', '=', False)]}"/>
<field name="tax_src_id" attrs="{'required': [('tax_code_src_id', '=', False)]}" domain="[('type_tax_use', 'in', (parent.type_tax_use, 'all'))]" on_change="onchange_tax_src_id(tax_src_id, tax_code_src_id)"/>
<field name="tax_dest_id" domain="[('type_tax_use', 'in', (parent.type_tax_use, 'all')), ('domain', '=', tax_src_domain)]" />
<field invisible="1" name="tax_src_domain" />
<field name="tax_code_dest_id" domain="[('domain', '=', tax_src_domain)]"/>
</tree>
<form string="Tax Mapping">
<field name="tax_code_src_id" on_change="onchange_tax_code_src_id(tax_src_id, tax_code_src_id)" attrs="{'required': [('tax_src_id', '=', False)]}"/>
<field name="tax_src_id" attrs="{'required': [('tax_code_src_id', '=', False)]}" domain="[('type_tax_use', 'in', (parent.type_tax_use, 'all'))]" on_change="onchange_tax_src_id(tax_src_id, tax_code_src_id)"/>
<field name="tax_dest_id" domain="[('type_tax_use', 'in', (parent.type_tax_use, 'all')), ('domain', '=', tax_src_domain)]" />
<field invisible="1" name="tax_src_domain" />
<field name="tax_code_dest_id" domain="[('domain', '=', tax_src_domain)]"/>
</form>
</field>
</page>
<page string="Fiscal">
<group colspan="4" col="4">
<field name="fiscal_category_id" domain="[('type', '=', type)]" on_change="onchange_fiscal_category_id(fiscal_category_id, context)"/>
<field invisible="1" name="fiscal_category_fiscal_type"/>
<field name="cfop_id" colspan="4" domain="[('type', '=', type)]"/>
<field name="asset_operation"/>
</group>
<separator string="Notes" colspan="4"/>
<field name="inv_copy_note" colspan="4"/>
<field name="note" colspan="4" nolabel="1"/>
</page>
<page string="Contábil">
<field name="account_ids" colspan="4" widget="one2many_list" nolabel="1">
<tree string="Account Mapping" editable="bottom">
<field name="account_src_id"/>
<field name="account_dest_id"/>
</tree>
<form string="Account Mapping">
<field name="account_src_id"/>
<field name="account_dest_id"/>
</form>
</field>
</page>
</notebook>
</form>
</form>
</field>
</record>
<record id="l10n_br_account_position_form" model="ir.ui.view">
<field name="name">l10n_br_account.fiscal.position.form</field>
<field name="model">account.fiscal.position</field>
<field name="inherit_id" ref="account.view_account_position_form"/>
<field name="arch" type="xml">
<form string="Fiscal Position" position="replace">
<form string="Fiscal Position">
<group colspan="4" col="6">
<field name="name" select="1"/>
<field name="type" required="1" on_change="onchange_type(type, context)"/>
<field name="type_tax_use" invisible="1"/>
<field name="company_id" widget="selection" groups="base.group_multi_company"/>
<field name="active" groups="base.group_extended"/>
</group>
<newline/>
<notebook colspan="4">
<page string="Impostos">
<separator string="Mapping" colspan="4"/>
<field name="tax_ids" colspan="4" widget="one2many_list" nolabel="1">
<tree string="Tax Mapping" editable="bottom">
<field name="tax_code_src_id" on_change="onchange_tax_code_src_id(tax_src_id, tax_code_src_id)" attrs="{'required': [('tax_src_id', '=', False)]}"/>
<field name="tax_src_id" attrs="{'required': [('tax_code_src_id', '=', False)]}" domain="[('type_tax_use', 'in', (parent.type_tax_use, 'all'))]" on_change="onchange_tax_src_id(tax_src_id, tax_code_src_id)"/>
<field name="tax_dest_id" domain="[('type_tax_use', 'in', (parent.type_tax_use, 'all')), ('domain', '=', tax_src_domain)]" />
<field invisible="1" name="tax_src_domain" />
<field name="tax_code_dest_id" domain="[('domain', '=', tax_src_domain)]"/>
</tree>
<form string="Tax Mapping">
<field name="tax_code_src_id" on_change="onchange_tax_code_src_id(tax_src_id, tax_code_src_id)" attrs="{'required': [('tax_src_id', '=', False)]}"/>
<field name="tax_src_id" attrs="{'required': [('tax_code_src_id', '=', False)]}" domain="[('type_tax_use', 'in', (parent.type_tax_use, 'all'))]" on_change="onchange_tax_src_id(tax_src_id, tax_code_src_id)"/>
<field name="tax_dest_id" domain="[('type_tax_use', 'in', (parent.type_tax_use, 'all')), ('domain', '=', tax_src_domain)]" />
<field invisible="1" name="tax_src_domain" />
<field name="tax_code_dest_id" domain="[('domain', '=', tax_src_domain)]"/>
</form>
</field>
</page>
<page string="Fiscal">
<group colspan="4" col="4">
<field name="fiscal_category_id" domain="[('type', '=', type)]" on_change="onchange_fiscal_category_id(fiscal_category_id, context)"/>
<field invisible="1" name="fiscal_category_fiscal_type"/>
<field name="cfop_id" colspan="4" domain="[('type', '=', type)]"/>
<field name="asset_operation"/>
</group>
<separator string="Notes" colspan="4"/>
<field name="inv_copy_note" colspan="4"/>
<field name="note" colspan="4" nolabel="1"/>
</page>
<page string="Contábil">
<field name="account_ids" colspan="4" widget="one2many_list" nolabel="1">
<tree string="Account Mapping" editable="bottom">
<field name="account_src_id"/>
<field name="account_dest_id"/>
</tree>
<form string="Account Mapping">
<field name="account_src_id"/>
<field name="account_dest_id"/>
</form>
</field>
</page>
</notebook>
</form>
</form>
</field>
</record>
<record model="ir.ui.view" id="l10n_br_account_view_partner_form">
<field name="name">l10n_br_account.partner.form</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="l10n_br_base.view_l10n_br_base_partner_form"/>
<field name="arch" type="xml">
<field name="suframa" position="after">
<field name="partner_fiscal_type_id" required="1" />
</field>
</field>
</record>
<record model="ir.ui.view" id="l10n_br_account_view_partner_form3" >
<field name="name">l10n_br_account.partner.form3</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="account.view_partner_property_form"/>
<field name="priority">33</field>
<field name="arch" type="xml">
<xpath expr="//tree/field[@name='owner_name']" position="replace">
<field name="acc_number" />
</xpath>
<xpath expr="//tree/field[@name='acc_number']" position="replace">
<field name="acc_number_dig" />
<field name="bra_number" />
<field name="bra_number_dig" />
</xpath>
</field>
</record>
</data>
</openerp>