1
<?xml version="1.0" encoding="utf-8"?>
5
<!-- Fiscal Position Rule Template -->
7
<record id="view_account_fiscal_position_rule_template_form" model="ir.ui.view">
8
<field name="name">account.fiscal.position.rule.template.form</field>
9
<field name="model">account.fiscal.position.rule.template</field>
10
<field name="type">form</field>
11
<field name="arch" type="xml">
12
<form string="Fiscal Position Rule Template">
13
<separator string="General" colspan="4"/>
14
<field name="name" select="1"/>
16
<field name="description" colspan="4"/>
17
<separator string="From" colspan="4"/>
18
<field name="from_country"/>
19
<field name="from_state"/>
20
<separator string="To" colspan="4"/>
21
<field name="to_country"/>
22
<field name="to_state"/>
23
<separator string="Configuration" colspan="4"/>
24
<field name="fiscal_position_id"/>
26
<field name="use_sale"/>
27
<field name="use_invoice"/>
32
<record id="view_account_fiscal_position_rule_template_tree" model="ir.ui.view">
33
<field name="name">account.fiscal.position.rule.template.tree</field>
34
<field name="model">account.fiscal.position.rule.template</field>
35
<field name="type">tree</field>
36
<field name="arch" type="xml">
37
<tree string="Fiscal Position Rule Template">
39
<field name="from_country"/>
40
<field name="from_state"/>
41
<field name="to_country"/>
42
<field name="to_state"/>
43
<field name="fiscal_position_id"/>
48
<record id="action_account_fiscal_position_rule_template_form" model="ir.actions.act_window">
49
<field name="name">Fiscal Position Rule Template</field>
50
<field name="res_model">account.fiscal.position.rule.template</field>
51
<field name="view_type">form</field>
52
<field name="view_mode">tree,form</field>
55
<menuitem action="action_account_fiscal_position_rule_template_form" id="menu_action_account_fiscal_position_rule_template_form" parent="account.account_template_folder" sequence="21"/>
57
<!-- Fiscal Position Rule -->
59
<record id="view_account_fiscal_position_rule_form" model="ir.ui.view">
60
<field name="name">account.fiscal.position.rule.form</field>
61
<field name="model">account.fiscal.position.rule</field>
62
<field name="type">form</field>
63
<field name="arch" type="xml">
64
<form string="Fiscal Position Rule">
65
<separator string="General" colspan="4"/>
66
<field name="name" select="1"/>
68
<field name="description" colspan="4"/>
69
<separator string="From" colspan="4"/>
70
<field name="from_country"/>
71
<field name="from_state"/>
72
<separator string="To" colspan="4"/>
73
<field name="to_country"/>
74
<field name="to_state"/>
75
<separator string="Configuration" colspan="4"/>
76
<field name="company_id"/>
77
<field name="fiscal_position_id"/>
79
<field name="use_sale"/>
80
<field name="use_invoice"/>
85
<record id="view_account_fiscal_position_rule_tree" model="ir.ui.view">
86
<field name="name">account.fiscal.position.rule.tree</field>
87
<field name="model">account.fiscal.position.rule</field>
88
<field name="type">tree</field>
89
<field name="arch" type="xml">
90
<tree string="Fiscal Position Rule">
91
<field name="company_id"/>
93
<field name="from_country"/>
94
<field name="from_state"/>
95
<field name="to_country"/>
96
<field name="to_state"/>
97
<field name="fiscal_position_id"/>
102
<!-- Wizard position fiscal rule -->
104
<record id="view_wizard_account_fiscal_position_rule" model="ir.ui.view">
105
<field name="name">Generate Fiscal Positions Rules from Templates</field>
106
<field name="model">wizard.account.fiscal.position.rule</field>
107
<field name="type">form</field>
108
<field name="arch" type="xml">
109
<form string="Generate Fiscal Positions Rules from Templates">
110
<separator col="4" colspan="4" string="Generate Fiscal Positions Rules from Templates"/>
111
<label align="0.0" string="This will automatically configure all fiscal position rules" colspan="4"/>
112
<field name="company_id" />
113
<separator string="" colspan="4"/>
114
<label string="" colspan="2"/>
115
<group col="2" colspan="2">
116
<button icon="gtk-cancel" special="cancel" type="object" name="action_cancel" string="Cancel"/>
117
<button icon="gtk-ok" name="action_create" string="Create" type="object"/>
123
<record id="action_wizard_account_fiscal_position_rule" model="ir.actions.act_window">
124
<field name="name">Generate Fiscal Positions Rules from Templates</field>
125
<field name="type">ir.actions.act_window</field>
126
<field name="res_model">wizard.account.fiscal.position.rule</field>
127
<field name="view_type">form</field>
128
<field name="view_mode">form</field>
129
<field name="target">new</field>
132
<menuitem parent="account.account_template_folder" action="action_wizard_account_fiscal_position_rule" id="menu_wizard_fiscal_position_rule"/>
134
<record id="action_account_fiscal_position_rule_form" model="ir.actions.act_window">
135
<field name="name">Fiscal Position Rule</field>
136
<field name="res_model">account.fiscal.position.rule</field>
137
<field name="view_type">form</field>
138
<field name="view_mode">tree,form</field>
142
action="action_account_fiscal_position_rule_form"
143
id="menu_action_account_fiscal_position_rule_form"
144
parent="account.menu_finance_accounting" sequence="21"/>