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

0.11.1 by Quentin THEURET
UF-78: [ADD] Added scheduler views and object
1
<?xml version="1.0" encoding="utf-8" ?>
2
<openerp>
3
    <data>
4
    
5
        <record id="stock_frequence_form_view" model="ir.ui.view">
6
            <field name="name">stock.frequence.form.view</field>
7
            <field name="model">stock.frequence</field>
8
            <field name="type">form</field>
9
            <field name="arch" type="xml">
10
                <form string="Repeat Options">
11
                    <separator string="Periodicity" colspan="4" />
12
                    <field name="name" colspan="4" />
13
                    <group colspan="4" col="16" attrs="{'invisible': [('name', '!=', 'daily')]}">
14
                        <separator colspan="16" string="Daily configuration" />
15
                        <label />
613.1.1 by qt-tempo-consulting
UF-864 [FIX] Fix error on automatic supply rule definition with no choosen frequence. To fix this issue, a default frequence is set.
16
                        <field name="daily_frequency_ok" nolabel="1" readonly="1" />
0.11.1 by Quentin THEURET
UF-78: [ADD] Added scheduler views and object
17
                        <field name="daily_frequency" attrs="{'readonly': [('daily_frequency_ok', '=', 0)], 'required': [('daily_frequency_ok', '=', True)]}" />
18
                        <label string="day(s)" />
19
                        <newline />
20
                    </group>
21
                    <group colspan="4" col="16" attrs="{'invisible': [('name', '!=', 'weekly')]}">
22
                        <separator colspan="16" string="Weekly configuration" />
23
                        <label />
24
                        <field name="weekly_frequency" attrs="{'required': [('name', '=', 'weekly')]}"/>
25
                        <label string="week(s)" />
26
                        <newline />
27
                        <label />
73.1.4 by jf
UF-73
28
                        <label string="On :" />
0.11.1 by Quentin THEURET
UF-78: [ADD] Added scheduler views and object
29
                        <field name="weekly_sunday_ok" />
30
                        <field name="weekly_monday_ok" />
31
                        <field name="weekly_tuesday_ok" />
32
                        <field name="weekly_wednesday_ok" />
33
                        <field name="weekly_thursday_ok" />
34
                        <field name="weekly_friday_ok" />
35
                        <field name="weekly_saturday_ok" />
36
                    </group>
37
                    <group colspan="4" col="16" attrs="{'invisible': [('name', '!=', 'monthly')]}">
38
                        <separator colspan="16" string="Monthly configuration" />
39
                        <label />
40
                        <field name="monthly_frequency" attrs="{'required': [('name', '=', 'monthly')]}"/>
41
                        <label string="month(s)" />
42
                        <newline />
43
                        <label />
44
                        <field name="monthly_one_day" nolabel="1" on_change="monthly_freq_change(monthly_one_day, False)" />
45
                        <field name="monthly_choose_freq" nolabel="1" colspan="4" attrs="{'readonly': [('monthly_one_day', '=', False)], 'required': [('monthly_one_day', '=', True)]}" />
46
                        <field name="monthly_choose_day" nolabel="1" colspan="4" attrs="{'readonly': [('monthly_one_day', '=', False)], 'required': [('monthly_one_day', '=', True)]}" />
47
                        <newline />
48
                        <label />
49
                        
50
                        <field name="monthly_repeating_ok" nolabel="1" on_change="monthly_freq_change(False, monthly_repeating_ok)" />
73.1.4 by jf
UF-73
51
                        <label string="On the :" colspan="1" />
0.11.1 by Quentin THEURET
UF-78: [ADD] Added scheduler views and object
52
                        <newline />
53
                        <group colspan="14" col="32">
54
	                        <label colspan="8" />
0.11.3 by Quentin THEURET
UF-73: [IMP] Added yearly planification in scheduler
55
	                        <field name="monthly_day01" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
56
	                        <field name="monthly_day02" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
57
	                        <field name="monthly_day03" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
58
	                        <field name="monthly_day04" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
59
	                        <field name="monthly_day05" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
60
	                        <field name="monthly_day06" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
61
	                        <field name="monthly_day07" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
0.11.1 by Quentin THEURET
UF-78: [ADD] Added scheduler views and object
62
	                        <label colspan="10" />
63
	                        <newline />
64
	                        <label colspan="8" />
0.11.3 by Quentin THEURET
UF-73: [IMP] Added yearly planification in scheduler
65
	                        <field name="monthly_day08" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
66
	                        <field name="monthly_day09" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
0.11.1 by Quentin THEURET
UF-78: [ADD] Added scheduler views and object
67
	                        <field name="monthly_day10" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
68
	                        <field name="monthly_day11" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
69
	                        <field name="monthly_day12" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
70
	                        <field name="monthly_day13" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
71
	                        <field name="monthly_day14" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
72
	                        <label colspan="10" />
73
	                        <newline />
74
	                        <label colspan="8" />
75
	                        <field name="monthly_day15" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
76
	                        <field name="monthly_day16" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
77
	                        <field name="monthly_day17" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
78
	                        <field name="monthly_day18" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
79
	                        <field name="monthly_day19" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
80
	                        <field name="monthly_day20" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
81
	                        <field name="monthly_day21" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
82
	                        <label colspan="10" />
83
	                        <newline />
84
	                        <label colspan="8" />
85
	                        <field name="monthly_day22" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
86
	                        <field name="monthly_day23" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
87
	                        <field name="monthly_day24" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
88
	                        <field name="monthly_day25" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
89
	                        <field name="monthly_day26" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
90
	                        <field name="monthly_day27" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
91
	                        <field name="monthly_day28" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
92
	                        <label colspan="10" />
93
	                        <newline />
94
	                        <label colspan="8" />
95
	                        <field name="monthly_day29" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
96
	                        <field name="monthly_day30" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
97
	                        <field name="monthly_day31" attrs="{'readonly': [('monthly_repeating_ok', '=', False)]}" />
98
                        </group>
99
                    </group>
100
                    <group colspan="4" col="16" attrs="{'invisible': [('name', '!=', 'yearly')]}">
101
                        <separator colspan="16" string="Yearly configuration" />
102
                        <label />
103
                        <field name="yearly_frequency" attrs="{'required': [('name', '=', 'yearly')]}"/>
104
                        <label string="year(s)" />
105
                        <newline />
106
                        <label />
107
                        <field name="yearly_day_ok" nolabel="1" on_change="yearly_freq_change(yearly_day_ok, False)" />
0.11.6 by Quentin THEURET
UF-73: [FIX] Fixed a bug on yearly next date computation
108
                        <field name="yearly_day" nolabel="1" attrs="{'readonly': [('yearly_day_ok', '=', False)], 'required': [('yearly_day_ok', '=', True)]}" on_change="check_date_in_month(yearly_day, yearly_choose_month)" />
109
                        <field name="yearly_choose_month" nolabel="1" attrs="{'readonly': [('yearly_day_ok', '=', False)], 'required': [('yearly_day_ok', '=', True)]}" on_change="check_date_in_month(yearly_day, yearly_choose_month)" />
0.11.1 by Quentin THEURET
UF-78: [ADD] Added scheduler views and object
110
                        <newline />
111
                        <label />
112
                        <field name="yearly_date_ok" nolabel="1" on_change="yearly_freq_change(False, yearly_date_ok)" />
113
                        <field name="yearly_choose_freq" nolabel="1" attrs="{'readonly': [('yearly_date_ok', '=', False)], 'required': [('yearly_date_ok', '=', True)]}" />
114
                        <field name="yearly_choose_day" nolabel="1" attrs="{'readonly': [('yearly_date_ok', '=', False)], 'required': [('yearly_date_ok', '=', True)]}" />
115
                        <newline />
116
                        <label />
117
                        <label />
73.1.4 by jf
UF-73
118
                        <label string="In : " />
0.11.1 by Quentin THEURET
UF-78: [ADD] Added scheduler views and object
119
                        <field name="yearly_choose_month_freq" nolabel="1" attrs="{'readonly': [('yearly_date_ok', '=', False)], 'required': [('yearly_date_ok', '=', True)]}" />
120
                    </group>
121
                    <group colspan="4" col="16">
73.1.4 by jf
UF-73
122
                        <separator colspan="16" string="Replenishment scheduling" />
0.11.1 by Quentin THEURET
UF-78: [ADD] Added scheduler views and object
123
                        <label />
124
                        <field name="start_date" />
125
                        <newline />
126
                        <label />
127
                        <field name="no_end_date" nolabel="1" on_change="change_recurrence('no_end_date', no_end_date, False, False)" />
128
                        <label string="No end date" />
129
                        <newline />
130
                        <label />
131
                        <field name="end_date_ok" nolabel="1" on_change="change_recurrence('end_date_ok', False, end_date_ok, False)" />
132
                        <field name="end_date" attrs="{'readonly': [('end_date_ok', '=', False)], 'required': [('end_date_ok', '=', True)]}"/>
133
                        <newline />
134
                        <label />
135
                        <field name="recurrence_ok" nolabel="1" on_change="change_recurrence('recurrence_ok', False, False, recurrence_ok)" />
136
                        <field name="recurrence_nb" attrs="{'readonly': [('recurrence_ok', '=', False)], 'required': [('recurrence_ok', '=', True)]}" />
137
                        <field name="recurrence_type" nolabel="1" attrs="{'readonly': [('recurrence_ok', '=', False)], 'required': [('recurrence_ok', '=', True)]}" />
138
                    </group>
73.1.3 by jf
UF-43 [FIX] bugs, rewrite of compute next date
139
                    <group  colspan="4" col="6">
140
                        <field name="last_run" />
141
                        <field name="calculated_end_date" />
142
                        <field name="next_date" widget="date" />
143
                    </group>
0.11.8 by Quentin THEURET
UF-73: [IMP] Modified stock frequence view to be use with a wizard
144
                    <label colspan="2" />
145
                    <button colspan="2" name="choose_frequency" type="object" string="Validate the frequency" icon="gtk-ok" />
0.11.1 by Quentin THEURET
UF-78: [ADD] Added scheduler views and object
146
                 </form>
147
            </field>
148
        </record>
149
        
150
        <record id="strock_frequence_tree" model="ir.ui.view">
151
            <field name="name">stock.frequence.tree</field>
152
            <field name="model">stock.frequence</field>
153
            <field name="type">tree</field>
154
            <field name="arch" type="xml">
155
                <tree string="Frequence">
156
                    <field name="name" />
157
                    <field name="start_date" />
158
                    <field name="calculated_end_date" />
0.11.2 by Quentin THEURET
UF-73: [IMP] Added computed next date for daily, weekly and monthly parameter
159
                    <field name="next_date" />
0.11.1 by Quentin THEURET
UF-78: [ADD] Added scheduler views and object
160
                </tree>
161
            </field>
162
        </record>
163
    
164
        <record id="action_stock_frequence_new" model="ir.actions.act_window">
165
            <field name="name">Stock Frequence</field>
166
            <field name="res_model">stock.frequence</field>
167
            <field name="view_type">form</field>
168
            <field name="view_mode">tree,form</field>
169
        </record>
170
        
0.11.7 by Quentin THEURET
UF-73: [ADD] Added security file
171
<!--         <menuitem action="action_stock_frequence_new"
0.11.1 by Quentin THEURET
UF-78: [ADD] Added scheduler views and object
172
                  id="menu_stock_frequence"
0.11.7 by Quentin THEURET
UF-73: [ADD] Added security file
173
                  parent="stock.menu_stock_warehouse_mgmt" /> -->
428.4.3 by Quentin THEURET
UF-657 [IMP] Reworked the Warehouse menu
174
175
        <!-- REWORKING OF WAREHOUSE MENU ACCORDING TO UF-657 ERGONOMIC IMPROVEMENTS -->
176
        <menuitem id="stock.menu_traceability" name="Traceability" parent="stock.menu_stock_root" sequence="5"/>
177
        <menuitem id="stock.menu_stock_inventory_control" name="Inventory Control" parent="stock.menu_stock_root" sequence="6"/>
634.4.9 by Quentin THEURET
UF-851 [IMP] Rename 'run schedulers' buttons
178
        <menuitem id="procurement.menu_stock_sched" name="POs Creation" parent="stock.menu_stock_root" sequence="10"/>
428.4.10 by Quentin THEURET
UF-657 [IMP] Reworked the Warehouse menu
179
        <menuitem id="stock.next_id_61" name="Reporting" parent="stock.menu_stock_root" sequence="8" />
428.4.3 by Quentin THEURET
UF-657 [IMP] Reworked the Warehouse menu
180
428.4.12 by Quentin THEURET
UF-657 [FIX] Renamed some fields in list/search view and moved some menu entries
181
        <!-- REWORKING OF TRACEABILITY MENU -->
182
        <record id="stock.action_production_lot_form" model="ir.actions.act_window">
183
            <field name="name">Batch numbers</field>
1193.17.1 by pierre-marie
UF-1451 Default search on available for Batch numbers
184
            <field name="context">{'full':'1',"search_default_real":1}</field>
559.13.2 by Quentin THEURET
UF-772 [FIX] Replace occurences of Production Lots by Batch Number
185
            <field name="help">This is the list of all the batch numbers you recorded. When you select a lot, you can get the upstream or downstream traceability of the products contained in batch. By default, the list is filtred on the batch numbers that are available in your warehouse but you can uncheck the 'Available' button to get all the batch numbers you produced, received or delivered to customers.</field>
428.4.12 by Quentin THEURET
UF-657 [FIX] Renamed some fields in list/search view and moved some menu entries
186
        </record>
187
188
        <menuitem id="stock.menu_action_production_lot_form" action="stock.action_production_lot_form" sequence="-10" parent="stock.menu_traceability" />
189
428.4.3 by Quentin THEURET
UF-657 [IMP] Reworked the Warehouse menu
190
        <!-- DELETE PRODUCTS -->
1280.4.1 by duy.vo at msf
UF-1555/1557: Moved all deleted menu items to become hidden due to ir_model_data
191
        <!-- MOVED THIS BLOCK TO hidden_menu.xml === DO NOT HARD DELETE MenuItem -->
428.4.3 by Quentin THEURET
UF-657 [IMP] Reworked the Warehouse menu
192
193
        <menuitem id="stock_automatic_procurements_menu"
559.12.2 by Quentin THEURET
UF-657 [FIX] Replace 'Automatic Procurements' by 'Replenishment Rules' in Warehouse menu
194
                  name="Replenishment Rules"
428.4.3 by Quentin THEURET
UF-657 [IMP] Reworked the Warehouse menu
195
                  sequence="4"
196
                  parent="stock.menu_stock_root" />
197
198
        <menuitem action="procurement.action_orderpoint_form"
199
                  id="procurement.menu_stock_order_points"
200
                  parent="stock_automatic_procurements_menu"
201
                  sequence="1" />
0.11.1 by Quentin THEURET
UF-78: [ADD] Added scheduler views and object
202
    
203
    </data>
73.1.3 by jf
UF-43 [FIX] bugs, rewrite of compute next date
204
</openerp>