~openerp-commiter/openobject-addons/extra-6.0

« back to all changes in this revision

Viewing changes to account_fiscal_position_rule/account_fiscal_position_view.xml

  • Committer: Renato Lima
  • Date: 2010-10-26 06:11:54 UTC
  • Revision ID: renato@renato-laptop-20101026061154-t3f1diyhy0i5tx5k
Refactored account_fiscal_position_rule and created account_fiscal_position_rule_sale for sales, account_fiscal_position_rule_stock for stock and account_fiscal_position_rule_purchase for purchase

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="utf-8"?>
2
 
<openerp>
3
 
    <data>
4
 
 
5
 
                <!-- Fiscal Position Rule Template -->
6
 
 
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"/>
15
 
                    <newline/>
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"/>
25
 
                                <newline/>
26
 
                    <field name="use_sale"/>
27
 
                    <field name="use_invoice"/>
28
 
                </form>
29
 
            </field>
30
 
        </record>
31
 
        
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">
38
 
                    <field name="name"/>
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"/>
44
 
                </tree>
45
 
            </field>
46
 
        </record>
47
 
 
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>
53
 
        </record>
54
 
 
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"/>
56
 
 
57
 
                <!-- Fiscal Position Rule -->
58
 
 
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"/>
67
 
                    <newline/>
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"/>
78
 
                                <newline/>
79
 
                    <field name="use_sale"/>
80
 
                    <field name="use_invoice"/>
81
 
                </form>
82
 
            </field>
83
 
        </record>
84
 
        
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"/>
92
 
                    <field name="name"/>
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"/>
98
 
                </tree>
99
 
            </field>
100
 
        </record>
101
 
        
102
 
        <!--  Wizard position fiscal rule -->
103
 
 
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"/>
118
 
                    </group>
119
 
                </form>
120
 
            </field>
121
 
        </record>
122
 
 
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>
130
 
        </record>
131
 
 
132
 
        <menuitem parent="account.account_template_folder" action="action_wizard_account_fiscal_position_rule" id="menu_wizard_fiscal_position_rule"/>
133
 
 
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>
139
 
        </record>
140
 
 
141
 
        <menuitem
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"/>
145
 
    </data>
146
 
</openerp>