~vauxoo/addons-vauxoo/8.0-import_tax_tariff-dev-yani-rev-2

« back to all changes in this revision

Viewing changes to periodic_inventory_valuation/view/periodic_inventory_valuation_view.xml

  • Committer: jose at vauxoo
  • Date: 2013-07-25 20:54:29 UTC
  • mfrom: (543.7.110 vaddons-70)
  • Revision ID: jose@vauxoo.com-20130725205429-tcrhjjc3og02uc0g
 
[MERGE] Merge from 7 Series to add the new features

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
        <record id="periodic_inventory_valuation_form" model="ir.ui.view">
 
5
            <field name="name">Inventory Valuation</field>
 
6
            <field name="model">periodic.inventory.valuation</field>
 
7
            <field name="arch" type="xml">
 
8
                <form string="Inventory Valuation" version="7.0">
 
9
                    <header>
 
10
                        <button 
 
11
                            name="load_valuation_items" 
 
12
                            type="object" 
 
13
                            string="Update Valuation" 
 
14
                            states="draft,confirm" 
 
15
                            class="oe_highlight"/>
 
16
                        <field name="state" 
 
17
                            widget="statusbar" 
 
18
                            statusbar_visible="draft,confirmed,done" 
 
19
                            statusbar_colors="{&quot;draft&quot;:&quot;blue&quot;,&quot;confirmed&quot;:&quot;green&quot;,&quot;done&quot;:&quot;red&quot;}"/>
 
20
                    </header>
 
21
                    <h2><label for="name"/></h2> 
 
22
                    <field name="name" nolabel="1"/>
 
23
                    <field name="date" required="1"/>
 
24
                    <notebook>
 
25
                        <page string='Products to Valuate'>
 
26
                            <field name='product_ids' nolabel='1' readonly='1'>
 
27
                                <tree>
 
28
                                    <field name='default_code'/>
 
29
                                    <field name='name'/>
 
30
                                    <field name='uom_id'/>
 
31
                                </tree>
 
32
                            </field>
 
33
                        </page>
 
34
                        <page string='Stock Moves'>
 
35
                            <field name='stock_move_ids' nolabel='1' readonly='1'/>
 
36
                        </page>
 
37
                        <page string='Invoice Lines'>
 
38
                            <field name='ail_ids' nolabel='1' readonly='1'>
 
39
                                <tree>
 
40
                                    <field name='name'/>
 
41
                                    <field name='account_id'/>
 
42
                                    <field name='quantity'/>
 
43
                                    <field name='currency_id'/>   
 
44
                                    <field name='price_unit'/>
 
45
                                    <field name='price_subtotal'/>
 
46
                                </tree>
 
47
                            </field>
 
48
                        </page>
 
49
                        <page string='Valuation Lines'>
 
50
                            <field name='pivl_ids' nolabel='1' readonly='1'>
 
51
                                <tree>
 
52
                                    <field name='product_id'/>
 
53
                                    <field name='qty_init'/>
 
54
                                    <field name='qty_purchase'/>
 
55
                                    <field name='qty_sale'/>
 
56
                                    <field name='qty_final'/>
 
57
                                    <field name='uom_id'/>
 
58
                                    <field name='average_cost'/>
 
59
                                    <field name='valuation'/>
 
60
                                </tree>
 
61
                            </field>
 
62
                        </page>
 
63
                        <page string='Accounting Entries'>
 
64
                            <field name='aml_ids' nolabel='1' readonly='1'/>
 
65
                        </page>
 
66
                        <page string='Other Info'>
 
67
                            <group>
 
68
                                <group>
 
69
                                    <field name='move_id' readonly='1'/>
 
70
                                    <field name='inventory_valuation_journal_id' readonly='1'
 
71
                                        domain="[('type','=','general'),('company_id','=',company_id)]"/>
 
72
                                    <field name='period_id' readonly='1' 
 
73
                                        domain="[('company_id','=',company_id)]"/>
 
74
                                </group>
 
75
                                <group>
 
76
                                    <field name='company_id' required='1'/>
 
77
                                    <field name='currency_id' readonly='1'/>
 
78
                                </group>
 
79
                            </group>
 
80
                        </page>
 
81
                    </notebook>
 
82
                </form>
 
83
            </field>
 
84
        </record>
 
85
 
 
86
        <record id="periodic_inventory_valuation_tree" model="ir.ui.view">
 
87
            <field name="name">Inventory Valuation</field>
 
88
            <field name="model">periodic.inventory.valuation</field>
 
89
            <field name="arch" type="xml">
 
90
                <tree string="Inventory Valuation" version="7.0">
 
91
                    <field name="name"/>
 
92
                </tree>
 
93
            </field>
 
94
        </record>
 
95
        
 
96
        <record id="company_form_periodic_valuation_view" model="ir.ui.view">         
 
97
            <field name="name">res.company.periodic.valuation</field>            
 
98
            <field name="model">res.company</field>                             
 
99
            <field name="inherit_id" ref="base.view_company_form"/>             
 
100
            <field name="arch" type="xml">                                      
 
101
                <xpath expr="//page[@string='Configuration']" position="inside">
 
102
                    <group string="Inventory Valuation">
 
103
                        <field name="inventory_valuation_journal_id" required="1" 
 
104
                            domain="[('type','=','general')]"/>
 
105
                    </group>
 
106
                </xpath>                                                        
 
107
            </field>                                                            
 
108
        </record>
 
109
        
 
110
        <record model="ir.actions.act_window" id="periodic_inventory_valuation_action">
 
111
            <field name="name">Inventory Valuation</field>
 
112
            <field name="res_model">periodic.inventory.valuation</field>
 
113
            <field name="type">ir.actions.act_window</field>
 
114
            <field name="view_type">form</field>
 
115
            <field name="view_mode">tree,form</field>
 
116
            <field name="help">Periodic Inventory Valuation Help</field>
 
117
        </record>
 
118
 
 
119
        <menuitem 
 
120
            id="inventory_valuation_main" 
 
121
            name="Inventory Valuation" 
 
122
            sequence="20" 
 
123
            groups="group_periodicvaluation"
 
124
            />
 
125
 
 
126
        <menuitem 
 
127
            id="inventory_valuation" 
 
128
            name="Inventory Valuation" 
 
129
            parent="inventory_valuation_main" 
 
130
            sequence="20" 
 
131
            groups="group_periodicvaluation"
 
132
            />
 
133
 
 
134
        <menuitem 
 
135
            id="periodic_inventory_valuation_menu"
 
136
            name="Inventory Valuation"
 
137
            parent="inventory_valuation"
 
138
            action="periodic_inventory_valuation_action"
 
139
            groups="group_periodicvaluation"
 
140
            />
 
141
 
 
142
 
 
143
        <!--groups="account_financial_report.group_afreport"
 
144
            action="account_financial_report_action"
 
145
            -->
 
146
    </data>
 
147
</openerp>