~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to consumption_calculation/expiry_calculation_view.xml

UF-73: [MERGE] Merge with unifield-wm branch

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
 
        <menuitem id="menu_warehouse_expiry"
6
 
                  name="Expiry"
7
 
                  sequence="-10"
8
 
                          parent="stock.next_id_61" />
9
 
        
10
 
        <record id="expiry_quantity_report_init_view" model="ir.ui.view">
11
 
                <field name="name">expiry.quantity.report.init.view</field>
12
 
                <field name="model">expiry.quantity.report</field>
13
 
                <field name="type">form</field>
14
 
                <field name="priority" eval="16" />
15
 
                <field name="arch" type="xml">
16
 
                        <form string="Expiry Quantities">
17
 
                                <separator colspan="4" string="Location" />
18
 
                                <field name="location_id" />
19
 
                                <field name="input_output_ok" />
20
 
                                <separator colspan="4" string="Period of calculation" />
21
 
                                <field name="week_nb" />
22
 
                                <separator colspan="4" string="Actions" />
23
 
                                <group colspan="4" col="5">
24
 
                                        <button special="cancel" string="Cancel" colspan="1" icon="gtk-cancel" />
25
 
                                        <button type="object" name="print_report_wizard" string="Print report" icon="gtk-print" colspan="2" />
26
 
                                        <button name="process_lines" string="Process" type="object" colspan="2" icon="gtk-execute" />
27
 
                                </group>
28
 
                        </form>
29
 
                </field>
30
 
        </record>
31
 
        
32
 
        <record id="expiry_quantity_report_processed_loc_view" model="ir.ui.view">
33
 
                <field name="name">expiry.quantity.report.processed.loc.view</field>
34
 
                <field name="model">expiry.quantity.report</field>
35
 
                <field name="type">form</field>
36
 
                <field name="priority" eval="99" />
37
 
                <field name="arch" type="xml">
38
 
                        <form string="Expired quantity">
39
 
                                <separator colspan="4" string="Location" />
40
 
                                <field name="location_id" readonly="1" />
41
 
                                <field name="input_output_ok" readonly="1" />
42
 
                                <separator colspan="4" string="Period of calculation" />
43
 
                                <field name="week_nb" readonly="1" />
44
 
                                <field name="date_to" readonly="1" />
45
 
                                <separator colspan="4" string="Expired products" />
46
 
                                <field colspan="4" nolabel="1" name="line_ids" mode="tree" readonly="1">
47
 
                                        <tree string="Expired products">
48
 
                                                <field name="product_code" string="Ref." />
49
 
                                                <field name="product_name" string="Name" />
50
 
                                                <field name="location_id" string="Loc." />
51
 
                                                <field name="real_stock" string="Real Stock" />
52
 
                                                <field name="batch_number" string="Batch" />
53
 
                                                <field name="expiry_date" widget="date" string="Exp. Date" />
54
 
                                                <field name="expired_qty" string="Exp. Qty" />
55
 
                                        </tree>
56
 
                                </field>
57
 
                                <label colspan="3" />
58
 
                                <button type="object" name="print_report" string="Print report" icon="gtk-print" />
59
 
                        </form>
60
 
                </field>
61
 
        </record>
62
 
        
63
 
        <record id="action_expired_products" model="ir.actions.act_window">
64
 
                <field name="name">Expiry quantities</field>
65
 
                <field name="res_model">expiry.quantity.report</field>
66
 
                <field name="view_type">form</field>
67
 
                <field name="view_mode">form</field>
68
 
                <field name="target">new</field>
69
 
        </record>
70
 
        
71
 
        <menuitem id="menu_expired_products"
72
 
                          action="action_expired_products"
73
 
                  sequence="-10"
74
 
                          parent="menu_warehouse_expiry" />
75
 
                          
76
 
                          
77
 
        <record id="product_likely_expire_report_form_init" model="ir.ui.view">
78
 
                <field name="name">product.likely.expire.report.form.init</field>
79
 
                <field name="model">product.likely.expire.report</field>
80
 
                <field name="type">form</field>
81
 
                <field name="priority" eval="16" />
82
 
                <field name="arch" type="xml">
83
 
                        <form string="Products list likely to expire">
84
 
                                <separator colspan="4" string="Period of calculation" />
85
 
                                <field name="date_from" />
86
 
                                <field name="date_to" />
87
 
                                <field name="only_non_zero" />
88
 
                                <separator colspan="4" string="Consumption parameters" />
89
 
                                <field name="consumption_type" colspan="4" />
90
 
                                <field name="consumption_from" attrs="{'invisible': [('consumption_type', 'not in', ('amc','rac'))], 'required': [('consumption_type', 'in', ('amc','rac'))]}" on_change="period_change(consumption_from, consumption_to, consumption_type)" />
91
 
                                <field name="consumption_to" attrs="{'invisible': [('consumption_type', 'not in', ('amc','rac'))], 'required': [('consumption_type', 'in', ('amc','rac'))]}" on_change="period_change(consumption_from, consumption_to, consumption_type)" />
92
 
                                <separator colspan="4" string="Location" />
93
 
                                <field name="location_id" domain="[('usage', '=', 'internal')]" attrs="{'required': [('consumption_type', '=', 'rac')]}" />
94
 
                                <newline />
95
 
                                <field name="input_output_ok" attrs="{'invisible': [('location_id', '!=', False)]}" />
96
 
                                <separator colspan="4" string="Actions" />
97
 
                                <button special="cancel" string="Cancel" colspan="2" icon="gtk-cancel" />
98
 
                                <button name="process_lines" string="Process" type="object" colspan="2" icon="gtk-execute" />
99
 
                        </form>
100
 
                </field>
101
 
        </record>
102
 
        
103
 
        <record id="product_likely_expire_report_form_processed" model="ir.ui.view">
104
 
                <field name="name">product.likely.expire.report.form.processed</field>
105
 
                <field name="model">product.likely.expire.report</field>
106
 
                <field name="type">form</field>
107
 
                <field name="priority" eval="99" />
108
 
                <field name="arch" type="xml">
109
 
                        <form string="Products list likely to expire">
110
 
                                <separator colspan="4" string="Location" />
111
 
                                <group colspan="2" col="2">
112
 
                                        <field name="location_id" readonly="1" attrs="{'invisible': [('location_id', '=', False)]}"/>
113
 
                                        <field name="msf_instance" readonly="1" attrs="{'invisible': [('location_id', '!=', False)]}"/>
114
 
                                </group>
115
 
                                <field name="input_output_ok" readonly="1" />
116
 
                                <separator colspan="4" string="Period of calculation" />
117
 
                                <field name="date_from" readonly="1" />
118
 
                                <field name="date_to" readonly="1" />
119
 
                                <field name="consumption_type" colspan="4" readonly="1" />
120
 
                                <separator colspan="4" string="Expired products" />
121
 
                                <field colspan="4" nolabel="1" name="line_ids" mode="tree" readonly="1">
122
 
                                        <tree string="Expired products">
123
 
                                                <field name="product_id" />
124
 
                                                <field name="consumption" />
125
 
                                                <field name="in_stock" />
126
 
                                                <field name="total_expired" />
127
 
                                        </tree>
128
 
                                </field>
129
 
                        </form>
130
 
                </field>
131
 
        </record> 
132
 
    
133
 
        <record id="action_products_to_expire" model="ir.actions.act_window">
134
 
                <field name="name">Products likely to expire</field>
135
 
                <field name="res_model">product.likely.expire.report</field>
136
 
                <field name="view_type">form</field>
137
 
                <field name="view_mode">form</field>
138
 
                <field name="target">new</field>
139
 
        </record>
140
 
        
141
 
        <menuitem id="menu_products_to_expire"
142
 
                          action="action_products_to_expire"
143
 
                  sequence="-1"
144
 
                          parent="menu_warehouse_expiry" />
145
 
                          
146
 
         <record id="product_likely_expire_report_item_form" model="ir.ui.view">
147
 
                <field name="name">product.likely.expire.report.item.form</field>
148
 
                <field name="model">product.likely.expire.report.item</field>
149
 
                <field name="type">form</field>
150
 
                <field name="arch" type="xml">
151
 
                        <form string="Batch likely to expire">
152
 
                                <separator string="General information" colspan="4" />
153
 
                                <field name="name" string="Month" readonly="1" />
154
 
                                <field name="period_start" readonly="1" />
155
 
                                <field name="available_qty" readonly="1" />
156
 
                                <field name="expired_qty" readonly="1" />
157
 
                                <separator string="Batchs" colspan="4" />
158
 
                                <field name="line_ids" mode="tree" colspan="4" nolabel="1" readonly="1">
159
 
                                        <tree string="Batch">
160
 
                                                <field name="lot_id" />
161
 
                                                <field name="expired_date" />
162
 
                                                <field name="location_id" />
163
 
                                                <field name="available_qty" />
164
 
                                                <field name="expired_qty" />
165
 
                                        </tree>
166
 
                                </field>
167
 
                        </form>
168
 
                </field>
169
 
         </record>
170
 
    
171
 
    </data>
172
 
</openerp>