~factorlibre/openerp-fiscal-rules/openerp-fiscal-rules-translations

« back to all changes in this revision

Viewing changes to account_product_fiscal_classification/account_product_fiscal_classification_view.xml

[MRG] account_product_fiscal_classification: migration to openerp v7

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<openerp>
3
 
    <data>
4
 
 
5
 
        <record model="ir.ui.view" id="fiscal_classification_normal_form_view_form">
6
 
            <field name="name">fiscal_classification_normal_form_view_form</field>
7
 
            <field name="model">account.product.fiscal.classification</field>
8
 
            <field name="arch" type="xml">
9
 
                <form string="Fiscal Classification">
10
 
                        <field name="name"/>
11
 
                        <field name="company_id" />
12
 
                        <field name="description"/>
13
 
                        <button colspan="2"  name="button_update_products" string="Update Products" type="object" icon="gtk-execute"/>
14
 
                        <newline/>
15
 
                        <separator string="Sale Taxes" colspan="2"/>
16
 
                        <separator string="Purchase Taxes" colspan="2"/>
17
 
                        <field colspan="2" nolabel="1" name="sale_base_tax_ids" />
18
 
                        <field colspan="2" nolabel="1" name="purchase_base_tax_ids" />
19
 
                </form>
20
 
            </field>
21
 
        </record>
22
 
 
23
 
        <record model="ir.ui.view" id="fiscal_classification_normal_form_view_tree">
24
 
            <field name="name">fiscal_classification_normal_form_view_tree</field>
25
 
            <field name="model">account.product.fiscal.classification</field>
26
 
            <field name="arch" type="xml">
27
 
                <tree string="Fiscal Classification">
28
 
                    <field name="name"/>
29
 
                    <field name="description"/>
30
 
                    <field name="company_id"/>
31
 
                </tree>
32
 
            </field>
33
 
        </record>
34
 
 
35
 
        <record model="ir.ui.view" id="fiscal_classification_template_normal_form_view_form">
36
 
            <field name="name">fiscal_classification_template_normal_form_view_form</field>
37
 
            <field name="model">account.product.fiscal.classification.template</field>
38
 
            <field name="arch" type="xml">
39
 
                <form string="Fiscal Classification Template">
40
 
                        <field name="name"/>
41
 
                        <field colspan="4" name="description"/>
42
 
                        <newline/>
43
 
                        <separator string="Sale Taxes" colspan="2"/>
44
 
                        <separator string="Purchase Taxes" colspan="2"/>
45
 
                        <field colspan="2" nolabel="1" name="sale_base_tax_ids" />
46
 
                        <field colspan="2" nolabel="1" name="purchase_base_tax_ids" />
47
 
                </form>
48
 
            </field>
49
 
        </record>
50
 
 
51
 
        <record model="ir.ui.view" id="fiscal_classification_template_normal_form_view_tree">
52
 
            <field name="name">fiscal_classification_normal_form_view_tree</field>
53
 
            <field name="model">account.product.fiscal.classification.template</field>
54
 
            <field name="arch" type="xml">
55
 
                <tree string="Fiscal Classification Template">
56
 
                    <field name="name"/>
57
 
                    <field name="description"/>
58
 
                </tree>
59
 
            </field>
60
 
        </record>
61
 
 
62
 
        <!--  Wizard product fiscal classification -->
63
 
 
64
 
        <record id="view_wizard_account_product_fiscal_classification" model="ir.ui.view">
65
 
            <field name="name">Generate Product Fiscal Classification from Templates</field>
66
 
            <field name="model">wizard.account.product.fiscal.classification</field>
67
 
            <field name="arch" type="xml">
68
 
                <form string="Generate Product Fiscal Classification from Templates">
69
 
                    <separator col="4" colspan="4" string="Generate Product Fiscal Classification from Templates"/>
70
 
                    <label align="0.0" string="This will automatically configure all product fiscal classification" colspan="4"/>
71
 
                    <field name="company_id" />
72
 
                    <separator string="" colspan="4"/>
73
 
                    <label string="" colspan="2"/>
74
 
                    <group col="2" colspan="2">
75
 
                        <button special="cancel" string="Fechar" icon="gtk-cancel"/>
76
 
                        <button icon="gtk-ok" name="action_create" string="Create" type="object"/>
77
 
                    </group>
78
 
                </form>
79
 
            </field>
80
 
        </record>
81
 
 
82
 
 
83
 
        <record id="action_wizard_account_product_fiscal_classification" model="ir.actions.act_window">
84
 
            <field name="name">Generate Product Fiscal Classification from Templates</field>
85
 
            <field name="type">ir.actions.act_window</field>
86
 
            <field name="res_model">wizard.account.product.fiscal.classification</field>
87
 
            <field name="view_type">form</field>
88
 
            <field name="view_mode">form</field>
89
 
            <field name="target">new</field>
90
 
        </record>
91
 
 
92
 
 
93
 
        <menuitem parent="account.account_template_folder" action="action_wizard_account_product_fiscal_classification" id="menu_wizard_account_product_fiscal_classification"/>
94
 
 
95
 
        <record id="product_fiscal_classifications_action" model="ir.actions.act_window">
96
 
            <field name="name">Product Fiscal Classifications</field>
97
 
            <field name="res_model">account.product.fiscal.classification</field>
98
 
            <field name="view_type">form</field>
99
 
            <field name="view_mode">tree,form</field>
100
 
        </record>
101
 
 
102
 
        <record id="product_fiscal_classifications_template_action" model="ir.actions.act_window">
103
 
            <field name="name">Product Fiscal Classifications Template</field>
104
 
            <field name="res_model">account.product.fiscal.classification.template</field>
105
 
            <field name="view_type">form</field>
106
 
            <field name="view_mode">tree,form</field>
107
 
        </record>
108
 
 
109
 
         <menuitem id="menu_product_fiscal_classifications" action="product_fiscal_classifications_action" name="Product Fiscal Classifications" parent="account.menu_finance_accounting"/>
110
 
 
111
 
        <menuitem action="product_fiscal_classifications_template_action" id="menu_product_fiscal_classifications_template" parent="account.account_template_folder" sequence="22"/>
112
 
    </data>
 
3
        <data>
 
4
 
 
5
                <record model="ir.ui.view" id="fiscal_classification_normal_form_view_form">
 
6
                        <field name="name">fiscal_classification_normal_form_view_form</field>
 
7
                        <field name="model">account.product.fiscal.classification</field>
 
8
                        <field name="arch" type="xml">
 
9
                                <form string="Fiscal Classification">
 
10
                                        <field name="name" />
 
11
                                        <field name="company_id" />
 
12
                                        <field name="description" />
 
13
                                        <button colspan="2" name="button_update_products" string="Update Products"
 
14
                                                type="object" icon="gtk-execute" />
 
15
                                        <newline />
 
16
                                        <separator string="Sale Taxes" colspan="2" />
 
17
                                        <separator string="Purchase Taxes" colspan="2" />
 
18
                                        <field colspan="2" nolabel="1" name="sale_base_tax_ids" />
 
19
                                        <field colspan="2" nolabel="1" name="purchase_base_tax_ids" />
 
20
                                </form>
 
21
                        </field>
 
22
                </record>
 
23
 
 
24
                <record model="ir.ui.view" id="fiscal_classification_normal_form_view_tree">
 
25
                        <field name="name">fiscal_classification_normal_form_view_tree</field>
 
26
                        <field name="model">account.product.fiscal.classification</field>
 
27
                        <field name="arch" type="xml">
 
28
                                <tree string="Fiscal Classification">
 
29
                                        <field name="name" />
 
30
                                        <field name="description" />
 
31
                                        <field name="company_id" />
 
32
                                </tree>
 
33
                        </field>
 
34
                </record>
 
35
 
 
36
                <record model="ir.ui.view" id="fiscal_classification_template_normal_form_view_form">
 
37
                        <field name="name">fiscal_classification_template_normal_form_view_form</field>
 
38
                        <field name="model">account.product.fiscal.classification.template</field>
 
39
                        <field name="arch" type="xml">
 
40
                                <form string="Fiscal Classification Template">
 
41
                                        <field name="name" />
 
42
                                        <field colspan="4" name="description" />
 
43
                                        <newline />
 
44
                                        <separator string="Sale Taxes" colspan="2" />
 
45
                                        <separator string="Purchase Taxes" colspan="2" />
 
46
                                        <field colspan="2" nolabel="1" name="sale_base_tax_ids" />
 
47
                                        <field colspan="2" nolabel="1" name="purchase_base_tax_ids" />
 
48
                                </form>
 
49
                        </field>
 
50
                </record>
 
51
 
 
52
                <record model="ir.ui.view" id="fiscal_classification_template_normal_form_view_tree">
 
53
                        <field name="name">fiscal_classification_normal_form_view_tree</field>
 
54
                        <field name="model">account.product.fiscal.classification.template</field>
 
55
                        <field name="arch" type="xml">
 
56
                                <tree string="Fiscal Classification Template">
 
57
                                        <field name="name" />
 
58
                                        <field name="description" />
 
59
                                </tree>
 
60
                        </field>
 
61
                </record>
 
62
 
 
63
                <!-- Wizard product fiscal classification -->
 
64
                <record id="view_wizard_account_product_fiscal_classification" model="ir.ui.view">
 
65
                        <field name="name">Generate Product Fiscal Classification from Templates</field>
 
66
                        <field name="model">wizard.account.product.fiscal.classification</field>
 
67
                        <field name="arch" type="xml">
 
68
                                <form string="Generate Product Fiscal Classification from Templates" version="7.0">
 
69
                                        <group string="This will automatically configure all product fiscal classification">
 
70
                                                <field name="company_id" />
 
71
                                        </group>
 
72
                                        <footer>
 
73
                                                <button name="action_create" string="Create" type="object" class="oe_highlight" /> ou
 
74
                                                <button special="cancel" string="Cancel" type="object" class="oe_link" />
 
75
                                        </footer>
 
76
                                </form>
 
77
                        </field>
 
78
                </record>
 
79
 
 
80
                <record id="action_wizard_account_product_fiscal_classification" model="ir.actions.act_window">
 
81
                        <field name="name">Generate Product Fiscal Classification from Templates</field>
 
82
                        <field name="type">ir.actions.act_window</field>
 
83
                        <field name="res_model">wizard.account.product.fiscal.classification</field>
 
84
                        <field name="view_type">form</field>
 
85
                        <field name="view_mode">form</field>
 
86
                        <field name="target">new</field>
 
87
                </record>
 
88
 
 
89
 
 
90
                <menuitem parent="account.account_template_folder" action="action_wizard_account_product_fiscal_classification" id="menu_wizard_account_product_fiscal_classification" />
 
91
 
 
92
                <record id="product_fiscal_classifications_action" model="ir.actions.act_window">
 
93
                        <field name="name">Product Fiscal Classifications</field>
 
94
                        <field name="res_model">account.product.fiscal.classification</field>
 
95
                        <field name="view_type">form</field>
 
96
                        <field name="view_mode">tree,form</field>
 
97
                </record>
 
98
 
 
99
                <record id="product_fiscal_classifications_template_action"     model="ir.actions.act_window">
 
100
                        <field name="name">Product Fiscal Classifications Template</field>
 
101
                        <field name="res_model">account.product.fiscal.classification.template</field>
 
102
                        <field name="view_type">form</field>
 
103
                        <field name="view_mode">tree,form</field>
 
104
                </record>
 
105
 
 
106
                <menuitem id="menu_product_fiscal_classifications" action="product_fiscal_classifications_action" name="Product Fiscal Classifications" parent="account.menu_finance_accounting" />
 
107
 
 
108
                <menuitem action="product_fiscal_classifications_template_action" id="menu_product_fiscal_classifications_template" parent="account.account_template_folder" sequence="22" />
 
109
        </data>
113
110
</openerp>