Merge lp:~dorian-kemps/unifield-server/US-1023 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 5428
Proposed branch: lp:~dorian-kemps/unifield-server/US-1023
Merge into: lp:unifield-server
Diff against target: 702 lines (+73/-159)
19 files modified
bin/addons/msf_doc_import/report/in_simulation_screen_xls_report.mako (+4/-4)
bin/addons/msf_doc_import/report/po_simulation_screen_report.rml (+2/-2)
bin/addons/msf_doc_import/report/po_simulation_screen_xls_report.mako (+4/-4)
bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen.py (+5/-5)
bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen_view.xml (+2/-2)
bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen.py (+10/-10)
bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen_view.xml (+2/-2)
bin/addons/msf_order_date/__init__.py (+1/-1)
bin/addons/msf_profile/i18n/allmsf.pot (+0/-30)
bin/addons/msf_profile/i18n/es_MF.po (+0/-30)
bin/addons/msf_profile/i18n/fr_MF.po (+24/-44)
bin/addons/msf_profile/user_rights/msf_field_access_rights.field_access_rule_line.csv (+0/-3)
bin/addons/msf_supply_doc_export/report/report_incoming_shipment_xml.mako (+1/-1)
bin/addons/msf_supply_doc_export/wizard/wizard_pick_import.py (+1/-1)
bin/addons/purchase/purchase_order.py (+1/-1)
bin/addons/purchase/purchase_view.xml (+6/-6)
bin/addons/transport_mgmt/purchase.py (+0/-3)
bin/addons/transport_mgmt/report/intl_transport.py (+6/-6)
bin/addons/transport_mgmt/report/intl_transport_view.xml (+4/-4)
To merge this branch: bzr merge lp:~dorian-kemps/unifield-server/US-1023
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+370108@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/addons/msf_doc_import/report/in_simulation_screen_xls_report.mako'
2--- bin/addons/msf_doc_import/report/in_simulation_screen_xls_report.mako 2018-07-18 09:51:56 +0000
3+++ bin/addons/msf_doc_import/report/in_simulation_screen_xls_report.mako 2019-07-15 07:19:17 +0000
4@@ -137,11 +137,11 @@
5
6 <Row>
7 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Transport mode')}</Data></Cell>
8- <Cell ss:StyleID="line" ><Data ss:Type="String">${(getSel(o, 'transport_mode') or '')|x}</Data></Cell>
9- % if o.imp_transport_mode != o.transport_mode:
10- <Cell ss:StyleID="line" ><Data ss:Type="String">${(getSel(o, 'imp_transport_mode') or '')|x}</Data></Cell>
11+ <Cell ss:StyleID="line" ><Data ss:Type="String">${(getSel(o, 'transport_type') or '')|x}</Data></Cell>
12+ % if o.imp_transport_type != o.transport_type:
13+ <Cell ss:StyleID="line" ><Data ss:Type="String">${(getSel(o, 'imp_transport_type') or '')|x}</Data></Cell>
14 % else:
15- <Cell ss:StyleID="line" ><Data ss:Type="String">${(getSel(o, 'imp_transport_mode') or '')|x}</Data></Cell>
16+ <Cell ss:StyleID="line" ><Data ss:Type="String">${(getSel(o, 'imp_transport_type') or '')|x}</Data></Cell>
17 % endif
18 </Row>
19
20
21=== modified file 'bin/addons/msf_doc_import/report/po_simulation_screen_report.rml'
22--- bin/addons/msf_doc_import/report/po_simulation_screen_report.rml 2014-01-15 10:47:43 +0000
23+++ bin/addons/msf_doc_import/report/po_simulation_screen_report.rml 2019-07-15 07:19:17 +0000
24@@ -99,10 +99,10 @@
25 <para style="HeaderDiffNameRight">Transport mode:</para>
26 </td>
27 <td>
28- <para style="HeaderDiffValue">[[ getSel(o, 'in_transport_mode') ]]</para>
29+ <para style="HeaderDiffValue">[[ getSel(o, 'in_transport_type') ]]</para>
30 </td>
31 <td>
32- <para style="HeaderDiffValue">[[ setTag('para', 'para', {'style': o.in_transport_mode != o.imp_transport_mode and 'HeaderDiffValueColor' or 'HeaderDiffValue'}) ]] [[ getSel(o, 'imp_transport_mode') ]]</para>
33+ <para style="HeaderDiffValue">[[ setTag('para', 'para', {'style': o.in_transport_type != o.imp_transport_type and 'HeaderDiffValueColor' or 'HeaderDiffValue'}) ]] [[ getSel(o, 'imp_transport_type') ]]</para>
34 </td>
35 </tr>
36 <tr>
37
38=== modified file 'bin/addons/msf_doc_import/report/po_simulation_screen_xls_report.mako'
39--- bin/addons/msf_doc_import/report/po_simulation_screen_xls_report.mako 2018-08-10 09:51:23 +0000
40+++ bin/addons/msf_doc_import/report/po_simulation_screen_xls_report.mako 2019-07-15 07:19:17 +0000
41@@ -124,11 +124,11 @@
42
43 <Row>
44 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Transport Mode')}</Data></Cell>
45- <Cell ss:StyleID="line" ><Data ss:Type="String">${getSel(o, 'in_transport_mode') or ''|x}</Data></Cell>
46- % if o.imp_transport_mode != o.in_transport_mode:
47- <Cell ss:StyleID="line_change" ss:MergeAcross="1" ><Data ss:Type="String">${getSel(o, 'imp_transport_mode') or ''|x}</Data></Cell>
48+ <Cell ss:StyleID="line" ><Data ss:Type="String">${getSel(o, 'in_transport_type') or ''|x}</Data></Cell>
49+ % if o.imp_transport_type != o.in_transport_type:
50+ <Cell ss:StyleID="line_change" ss:MergeAcross="1" ><Data ss:Type="String">${getSel(o, 'imp_transport_type') or ''|x}</Data></Cell>
51 % else:
52- <Cell ss:StyleID="line" ss:MergeAcross="1" ><Data ss:Type="String">${getSel(o, 'imp_transport_mode')or ''|x}</Data></Cell>
53+ <Cell ss:StyleID="line" ss:MergeAcross="1" ><Data ss:Type="String">${getSel(o, 'imp_transport_type')or ''|x}</Data></Cell>
54 % endif
55 </Row>
56
57
58=== modified file 'bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen.py'
59--- bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen.py 2019-04-25 15:25:38 +0000
60+++ bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen.py 2019-07-15 07:19:17 +0000
61@@ -102,7 +102,7 @@
62 'backorder_id': simu.picking_id.backorder_id and simu.picking_id.backorder_id.id or False,
63 'header_notes': simu.picking_id.note,
64 'freight_number': simu.picking_id.shipment_ref,
65- 'transport_mode': simu.picking_id and simu.picking_id.purchase_id and simu.picking_id.purchase_id.transport_type or False}
66+ 'transport_type': simu.picking_id and simu.picking_id.purchase_id and simu.picking_id.purchase_id.transport_type or False}
67
68 return res
69
70@@ -147,14 +147,14 @@
71 readonly=True, type='text', multi='related'),
72 'freight_number': fields.function(_get_related_values, method=True, string='Freight number',
73 readonly=True, type='char', size=128, multi='related'),
74- 'transport_mode': fields.function(_get_related_values, method=True, string='Transport mode',
75+ 'transport_type': fields.function(_get_related_values, method=True, string='Transport mode',
76 readonly=True, type='selection', selection=TRANSPORT_TYPE, multi='related'),
77 # Import fields
78 'imp_notes': fields.text(string='Notes', readonly=True),
79 'message_esc': fields.text(string='Message ESC', readonly=True),
80 'imp_origin': fields.char(size=128, string='Origin', readonly=True),
81 'imp_freight_number': fields.char(size=128, string='Freight number', readonly=True),
82- 'imp_transport_mode': fields.char(string='Transport mode', size=128, readonly=True),
83+ 'imp_transport_type': fields.char(string='Transport mode', size=128, readonly=True),
84 # Lines
85 'line_ids': fields.one2many('wizard.import.in.line.simulation.screen', 'simu_id', string='Stock moves'),
86 'with_pack': fields.boolean('With Pack Info'),
87@@ -664,8 +664,8 @@
88 header_values['imp_origin'] = wiz.origin
89
90 # Line 5: Transport mode
91- transport_mode = values.get(5, ['', ''])[1]
92- header_values['imp_transport_mode'] = transport_mode
93+ transport_type = values.get(5, ['', ''])[1]
94+ header_values['imp_transport_type'] = transport_type
95
96 # Line 6: Notes
97 imp_notes = values.get(6, ['', ''])[1]
98
99=== modified file 'bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen_view.xml'
100--- bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen_view.xml 2018-10-02 14:02:43 +0000
101+++ bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen_view.xml 2019-07-15 07:19:17 +0000
102@@ -49,8 +49,8 @@
103 <separator colspan="2" string="Imported values"/>
104 <field name="freight_number" />
105 <field name="imp_freight_number" />
106- <field name="transport_mode" />
107- <field name="imp_transport_mode" />
108+ <field name="transport_type" />
109+ <field name="imp_transport_type" />
110 <separator colspan="2" string="Original notes" />
111 <separator colspan="2" string="Imported notes" />
112 <field name="header_notes" colspan="2" nolabel="1" />
113
114=== modified file 'bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen.py'
115--- bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen.py 2019-05-28 07:30:48 +0000
116+++ bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen.py 2019-07-15 07:19:17 +0000
117@@ -198,7 +198,7 @@
118 relation='res.partner.address',
119 string='Destination Address',
120 readonly=True),
121- 'in_transport_mode': fields.related('order_id', 'transport_type',
122+ 'in_transport_type': fields.related('order_id', 'transport_type',
123 type='selection',
124 selection=TRANSPORT_TYPE,
125 string='Transport mode',
126@@ -238,7 +238,7 @@
127 # Import fiels
128 'imp_supplier_ref': fields.char(size=256, string='Supplier Ref',
129 readonly=True),
130- 'imp_transport_mode': fields.selection(selection=TRANSPORT_TYPE,
131+ 'imp_transport_type': fields.selection(selection=TRANSPORT_TYPE,
132 string='Transport mode',
133 readonly=True),
134 'imp_ready_to_ship_date': fields.date(string='RTS Date',
135@@ -838,17 +838,17 @@
136 # Nothing to do
137
138 # Line 9: Transport mode
139- transport_mode = values.get(9, [])[1]
140- if transport_mode:
141- transport_select = self.fields_get(cr, uid, ['imp_transport_mode'], context=context)
142- for x in transport_select['imp_transport_mode']['selection']:
143- if x[1] == transport_mode:
144- header_values['imp_transport_mode'] = x[0]
145+ transport_type = values.get(9, [])[1]
146+ if transport_type:
147+ transport_select = self.fields_get(cr, uid, ['imp_transport_type'], context=context)
148+ for x in transport_select['imp_transport_type']['selection']:
149+ if x[1] == transport_type:
150+ header_values['imp_transport_type'] = x[0]
151 break
152 else:
153- possible_mode = ', '.join(x[1] for x in transport_select['imp_transport_mode']['selection'] if x[1])
154+ possible_type = ', '.join(x[1] for x in transport_select['imp_transport_type']['selection'] if x[1])
155 err_msg = _('Line 9 of the file: The transport mode \'%s\' is not \
156-a valid transport mode. Valid transport modes: %s') % (transport_mode, possible_mode)
157+a valid transport mode. Valid transport modes: %s') % (transport_type, possible_type)
158 values_header_errors.append(err_msg)
159
160
161
162=== modified file 'bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen_view.xml'
163--- bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen_view.xml 2019-03-29 17:02:16 +0000
164+++ bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen_view.xml 2019-07-15 07:19:17 +0000
165@@ -45,8 +45,8 @@
166 <field name="in_supplier_ref" />
167 <field name="imp_supplier_ref" nolabel="1" />
168 <label> </label>
169- <field name="in_transport_mode" />
170- <field name="imp_transport_mode" nolabel="1" />
171+ <field name="in_transport_type" />
172+ <field name="imp_transport_type" nolabel="1" />
173 <label> </label>
174 <field name="in_ready_to_ship_date" />
175 <field name="imp_ready_to_ship_date" nolabel="1" />
176
177=== modified file 'bin/addons/msf_order_date/__init__.py'
178--- bin/addons/msf_order_date/__init__.py 2011-12-09 09:45:44 +0000
179+++ bin/addons/msf_order_date/__init__.py 2019-07-15 07:19:17 +0000
180@@ -19,7 +19,7 @@
181 #
182 ##############################################################################
183
184-TRANSPORT_TYPE = [('',''), ('sea', 'Sea'), ('air', 'Air'), ('road', 'Road'),] #[('flight', 'By Flight'), ('road', 'By Road'), ('boat', 'By Boat')]
185+TRANSPORT_TYPE = [('',''), ('express','Express'), ('hand','Hand carry'), ('sea', 'Sea'), ('air', 'Air'), ('road', 'Road'),] #[('flight', 'By Flight'), ('road', 'By Road'), ('boat', 'By Boat')]
186 ZONE_SELECTION = [('national','National'),('international','International')]
187
188 import order_dates
189
190=== modified file 'bin/addons/msf_profile/i18n/allmsf.pot'
191--- bin/addons/msf_profile/i18n/allmsf.pot 2017-09-28 14:05:02 +0000
192+++ bin/addons/msf_profile/i18n/allmsf.pot 2019-07-15 07:19:17 +0000
193@@ -4535,12 +4535,6 @@
194 msgid "OpenERP Tweets"
195 msgstr ""
196
197-#. module: transport_mgmt
198-#: selection:international.transport.cost.report,transport_mode:0
199-#: selection:purchase.order,transport_mode:0
200-msgid "Air regular"
201-msgstr ""
202-
203 #. module: analytic_distribution
204 #: field:mass.reallocation.verification.wizard,nb_error:0
205 msgid "Lines in error"
206@@ -23335,12 +23329,6 @@
207 msgid "Module Upgrade"
208 msgstr ""
209
210-#. module: transport_mgmt
211-#: selection:international.transport.cost.report,transport_mode:0
212-#: selection:purchase.order,transport_mode:0
213-msgid "Air express"
214-msgstr ""
215-
216 #. module: msf_outgoing
217 #: model:ir.actions.report.xml,name:msf_outgoing.report_cargo_manifest
218 msgid "Cargo Manifest"
219@@ -24784,9 +24772,7 @@
220 msgstr ""
221
222 #. module: transport_mgmt
223-#: field:international.transport.cost.report,transport_mode:0
224 #: field:local.transport.cost.report,transport_mode:0
225-#: field:purchase.order,transport_mode:0
226 msgid "Transport mode"
227 msgstr ""
228
229@@ -29573,8 +29559,6 @@
230 #: selection:res.partner,transport_0:0
231 #: selection:res.partner,transport_1:0
232 #: selection:res.partner,transport_2:0
233-#: selection:international.transport.cost.report,transport_mode:0
234-#: selection:purchase.order,transport_mode:0
235 msgid "Sea"
236 msgstr ""
237
238@@ -32211,12 +32195,6 @@
239 "A group_by specification must be a list of valid fields."
240 msgstr ""
241
242-#. module: transport_mgmt
243-#: selection:international.transport.cost.report,transport_mode:0
244-#: selection:purchase.order,transport_mode:0
245-msgid "Air FFC"
246-msgstr ""
247-
248 #. module: msf_outgoing
249 #: field:stock.picking,previous_step_id:0
250 msgid "Previous step"
251@@ -40793,8 +40771,6 @@
252 #: selection:res.partner,transport_0:0
253 #: selection:res.partner,transport_1:0
254 #: selection:res.partner,transport_2:0
255-#: selection:international.transport.cost.report,transport_mode:0
256-#: selection:purchase.order,transport_mode:0
257 msgid "Road"
258 msgstr ""
259
260@@ -41086,12 +41062,6 @@
261 msgid "Free 2"
262 msgstr ""
263
264-#. module: transport_mgmt
265-#: selection:international.transport.cost.report,transport_mode:0
266-#: selection:purchase.order,transport_mode:0
267-msgid "Hand carry"
268-msgstr ""
269-
270 #. modules: delivery_mechanism, purchase, stock_override, product_asset, specific_rules, stock
271 #: model:ir.model,name:delivery_mechanism.model_stock_partial_picking
272 #: model:ir.model,name:product_asset.model_stock_partial_picking
273
274=== modified file 'bin/addons/msf_profile/i18n/es_MF.po'
275--- bin/addons/msf_profile/i18n/es_MF.po 2019-04-08 15:13:52 +0000
276+++ bin/addons/msf_profile/i18n/es_MF.po 2019-07-15 07:19:17 +0000
277@@ -13969,9 +13969,7 @@
278 msgstr "Códigos de impuestos"
279
280 #. module: transport_mgmt
281-#: field:international.transport.cost.report,transport_mode:0
282 #: field:local.transport.cost.report,transport_mode:0
283-#: field:purchase.order,transport_mode:0
284 msgid "Transport mode"
285 msgstr "Modo de transporte"
286
287@@ -15780,12 +15778,6 @@
288 msgid "You try to assign a lot which is not from the same product"
289 msgstr "Está intentando asignar un lote que no es del mismo producto"
290
291-#. module: transport_mgmt
292-#: selection:international.transport.cost.report,transport_mode:0
293-#: selection:purchase.order,transport_mode:0
294-msgid "Air regular"
295-msgstr "Aéreo regular"
296-
297 #. module: account_voucher
298 #: view:account.voucher:0
299 msgid "Supplier Voucher"
300@@ -29552,12 +29544,6 @@
301 msgid "New Jersey"
302 msgstr "Nueva Jersey"
303
304-#. module: transport_mgmt
305-#: selection:international.transport.cost.report,transport_mode:0
306-#: selection:purchase.order,transport_mode:0
307-msgid "Air express"
308-msgstr "Air express"
309-
310 #. module: product_attributes
311 #: code:addons/product_attributes/product_attributes.py:446
312 #, python-format
313@@ -36530,12 +36516,6 @@
314 msgid "Owner"
315 msgstr "Propietario"
316
317-#. module: transport_mgmt
318-#: selection:international.transport.cost.report,transport_mode:0
319-#: selection:purchase.order,transport_mode:0
320-msgid "Air FFC"
321-msgstr "Aire FFC"
322-
323 #. module: resource
324 #: field:resource.calendar.attendance,hour_from:0
325 msgid "Work from"
326@@ -41573,8 +41553,6 @@
327 #: selection:res.partner,transport_0:0
328 #: selection:res.partner,transport_1:0
329 #: selection:res.partner,transport_2:0
330-#: selection:international.transport.cost.report,transport_mode:0
331-#: selection:purchase.order,transport_mode:0
332 msgid "Sea"
333 msgstr "Mar"
334
335@@ -46484,12 +46462,6 @@
336 msgid "Nomenclature level"
337 msgstr "Nivel de nomenclatura"
338
339-#. module: transport_mgmt
340-#: selection:international.transport.cost.report,transport_mode:0
341-#: selection:purchase.order,transport_mode:0
342-msgid "Hand carry"
343-msgstr "Transportado en mano"
344-
345 #. module: account
346 #: model:process.transition,note:account.process_transition_invoiceimport0
347 msgid "Import of the statement in the system from a supplier or customer invoice"
348@@ -49784,8 +49756,6 @@
349 #: selection:res.partner,transport_0:0
350 #: selection:res.partner,transport_1:0
351 #: selection:res.partner,transport_2:0
352-#: selection:international.transport.cost.report,transport_mode:0
353-#: selection:purchase.order,transport_mode:0
354 msgid "Road"
355 msgstr "Tierra"
356
357
358=== modified file 'bin/addons/msf_profile/i18n/fr_MF.po'
359--- bin/addons/msf_profile/i18n/fr_MF.po 2019-06-20 14:24:33 +0000
360+++ bin/addons/msf_profile/i18n/fr_MF.po 2019-07-15 07:19:17 +0000
361@@ -39297,9 +39297,6 @@
362
363 #. modules: msf_order_date, purchase, msf_outgoing, partner_modification, transport_mgmt, msf_doc_import
364 #: selection:purchase.import.xml.line,transport_type:0
365-#: selection:wizard.import.in.simulation.screen,transport_mode:0
366-#: selection:wizard.import.po.simulation.screen,imp_transport_mode:0
367-#: selection:wizard.import.po.simulation.screen,in_transport_mode:0
368 #: selection:sale.order,transport_type:0
369 #: selection:return.pack.shipment.processor,transport_type:0
370 #: selection:return.shipment.processor,transport_type:0
371@@ -39309,8 +39306,6 @@
372 #: selection:res.partner,transport_1:0
373 #: selection:res.partner,transport_2:0
374 #: selection:purchase.order,transport_type:0
375-#: selection:international.transport.cost.report,transport_mode:0
376-#: selection:purchase.order,transport_mode:0
377 msgid "Sea"
378 msgstr "Mer"
379
380@@ -49883,9 +49878,6 @@
381
382 #. modules: msf_order_date, msf_doc_import, msf_outgoing, partner_modification, purchase
383 #: selection:purchase.import.xml.line,transport_type:0
384-#: selection:wizard.import.in.simulation.screen,transport_mode:0
385-#: selection:wizard.import.po.simulation.screen,imp_transport_mode:0
386-#: selection:wizard.import.po.simulation.screen,in_transport_mode:0
387 #: selection:sale.order,transport_type:0
388 #: selection:return.pack.shipment.processor,transport_type:0
389 #: selection:return.shipment.processor,transport_type:0
390@@ -53896,12 +53888,6 @@
391 msgid "Problem in configuration `Record Id` in Server Action!"
392 msgstr "Problème dans la configuration `Record Id` sous Action Server!"
393
394-#. module: transport_mgmt
395-#: selection:international.transport.cost.report,transport_mode:0
396-#: selection:purchase.order,transport_mode:0
397-msgid "Air regular"
398-msgstr "Air - régulier "
399-
400 #. module: account
401 #: field:account.move.line.reconcile,credit:0
402 msgid "Credit amount"
403@@ -76232,12 +76218,6 @@
404 msgid "Price List Version"
405 msgstr "Prix - Version de Liste"
406
407-#. module: transport_mgmt
408-#: selection:international.transport.cost.report,transport_mode:0
409-#: selection:purchase.order,transport_mode:0
410-msgid "Hand carry"
411-msgstr "Transport en bagage à main"
412-
413 #. module: account_corrections
414 #: view:wizard.journal.items.corrections:0
415 #: view:analytic.distribution.wizard:0
416@@ -77421,16 +77401,16 @@
417 #. modules: msf_doc_import, transport_mgmt, msf_supply_doc_export
418 #: report:addons/msf_doc_import/report/in_simulation_screen_xls_report.mako:139
419 #: code:addons/msf_doc_import/wizard/wizard_in_simulation_screen.py:60
420-#: field:wizard.import.in.simulation.screen,imp_transport_mode:0
421-#: field:wizard.import.in.simulation.screen,transport_mode:0
422-#: field:wizard.import.po.simulation.screen,imp_transport_mode:0
423-#: field:wizard.import.po.simulation.screen,in_transport_mode:0
424-#: field:international.transport.cost.report,transport_mode:0
425 #: field:local.transport.cost.report,transport_mode:0
426-#: field:purchase.order,transport_mode:0
427 #: report:addons/msf_supply_doc_export/report/report_incoming_shipment_xls.mako:124
428 #: report:addons/msf_supply_doc_export/report/report_validated_purchase_order_xls.mako:118
429 #: report:addons/msf_supply_doc_export/report/report_pick_export_xls.mako:136
430+#: code:addons/msf_doc_import/wizard/wizard_import_ppl_to_create_ship.py:73
431+#: field:wizard.import.in.simulation.screen,imp_transport_type:0
432+#: field:wizard.import.in.simulation.screen,transport_type:0
433+#: field:wizard.import.po.simulation.screen,imp_transport_type:0
434+#: field:wizard.import.po.simulation.screen,in_transport_type:0
435+#: field:international.transport.cost.report,transport_type:0
436 #, python-format
437 msgid "Transport mode"
438 msgstr "Mode de transport"
439@@ -81745,12 +81725,6 @@
440 msgid "Validated by"
441 msgstr "Validé par"
442
443-#. module: transport_mgmt
444-#: selection:international.transport.cost.report,transport_mode:0
445-#: selection:purchase.order,transport_mode:0
446-msgid "Air FFC"
447-msgstr "Air - FFC"
448-
449 #. modules: base_setup, unifield_setup
450 #: selection:base.setup.company,state_id:0
451 #: selection:base.setup.company,bill_state_id:0
452@@ -83482,12 +83456,6 @@
453 #: selection:res.partner,transport_1:0
454 #: selection:res.partner,transport_2:0
455 #: selection:purchase.order,transport_type:0
456-#: selection:international.transport.cost.report,transport_mode:0
457-#: selection:purchase.order,transport_mode:0
458-#: selection:purchase.import.xml.line,transport_type:0
459-#: selection:wizard.import.in.simulation.screen,transport_mode:0
460-#: selection:wizard.import.po.simulation.screen,imp_transport_mode:0
461-#: selection:wizard.import.po.simulation.screen,in_transport_mode:0
462 #: selection:return.pack.shipment.processor,transport_type:0
463 #: selection:return.shipment.processor,transport_type:0
464 #: selection:shipment,transport_type:0
465@@ -85934,12 +85902,6 @@
466 msgid "Load"
467 msgstr "Charger"
468
469-#. module: transport_mgmt
470-#: selection:international.transport.cost.report,transport_mode:0
471-#: selection:purchase.order,transport_mode:0
472-msgid "Air express"
473-msgstr "Air - express"
474-
475 #. module: hr
476 #: model:hr.employee.marital.status,name:hr.hr_employee_marital_status_single
477 msgid "Single"
478@@ -106827,3 +106789,21 @@
479 msgid "Stop report"
480 msgstr "Arrêter le rapport"
481
482+#. module: purchase
483+#: view:purchase.order:0
484+msgid "Estimated transport costs : "
485+msgstr "Estimation des coûts du transport : "
486+
487+#. modules: msf_order_date, purchase, msf_outgoing, partner_modification, transport_mgmt, msf_doc_import
488+#: selection:sale.order,transport_type:0
489+#: selection:return.pack.shipment.processor,transport_type:0
490+#: selection:return.shipment.processor,transport_type:0
491+#: selection:shipment,transport_type:0
492+#: selection:shipment.processor,transport_type:0
493+#: selection:res.partner,transport_0:0
494+#: selection:res.partner,transport_1:0
495+#: selection:res.partner,transport_2:0
496+#: selection:purchase.order,transport_type:0
497+#: selection:international.transport.cost.report,transport_type:0
498+msgid "Hand carry"
499+msgstr "Transport en bagage à main"
500
501=== modified file 'bin/addons/msf_profile/user_rights/msf_field_access_rights.field_access_rule_line.csv'
502--- bin/addons/msf_profile/user_rights/msf_field_access_rights.field_access_rule_line.csv 2019-03-27 11:23:15 +0000
503+++ bin/addons/msf_profile/user_rights/msf_field_access_rights.field_access_rule_line.csv 2019-07-15 07:19:17 +0000
504@@ -82,7 +82,6 @@
505 PO Coordo,transport_mgmt.field_purchase_order_total_price_include_transport,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/82
506 PO Coordo,transport_mgmt.field_purchase_order_transport_cost,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/83
507 PO Coordo,transport_mgmt.field_purchase_order_transport_currency_id,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/84
508-PO Coordo,transport_mgmt.field_purchase_order_transport_mode,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/85
509 PO Coordo,transport_mgmt.field_purchase_order_transport_order_id,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/86
510 PO Coordo,msf_order_date.field_sale_order_transport_type,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/87
511 PO Coordo,purchase.field_purchase_order_unallocation_ok,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/88
512@@ -173,7 +172,6 @@
513 PO Project,transport_mgmt.field_purchase_order_total_price_include_transport,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/174
514 PO Project,transport_mgmt.field_purchase_order_transport_cost,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/175
515 PO Project,transport_mgmt.field_purchase_order_transport_currency_id,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/176
516-PO Project,transport_mgmt.field_purchase_order_transport_mode,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/177
517 PO Project,transport_mgmt.field_purchase_order_transport_order_id,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/178
518 PO Project,msf_order_date.field_sale_order_transport_type,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/179
519 PO Project,purchase.field_purchase_order_unallocation_ok,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/180
520@@ -264,7 +262,6 @@
521 PO HQ,transport_mgmt.field_purchase_order_total_price_include_transport,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/266
522 PO HQ,transport_mgmt.field_purchase_order_transport_cost,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/267
523 PO HQ,transport_mgmt.field_purchase_order_transport_currency_id,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/268
524-PO HQ,transport_mgmt.field_purchase_order_transport_mode,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/269
525 PO HQ,transport_mgmt.field_purchase_order_transport_order_id,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/270
526 PO HQ,msf_order_date.field_sale_order_transport_type,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/271
527 PO HQ,purchase.field_purchase_order_unallocation_ok,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/272
528
529=== modified file 'bin/addons/msf_supply_doc_export/report/report_incoming_shipment_xml.mako'
530--- bin/addons/msf_supply_doc_export/report/report_incoming_shipment_xml.mako 2018-11-28 09:12:03 +0000
531+++ bin/addons/msf_supply_doc_export/report/report_incoming_shipment_xml.mako 2019-07-15 07:19:17 +0000
532@@ -8,7 +8,7 @@
533 <field name="partner_id" key="name">
534 <field name="name">${o.partner_id and o.partner_id.name or ''}</field>
535 </field>
536- <field name="transport_mode">${(o.purchase_id and getSel(o.purchase_id, 'transport_type') or '')|x}</field>
537+ <field name="transport_type">${(o.purchase_id and getSel(o.purchase_id, 'transport_type') or '')|x}</field>
538 <field name="note">${o.note or ''}</field>
539 <field name="message_esc"></field>
540 <field name="move_lines">
541
542=== modified file 'bin/addons/msf_supply_doc_export/wizard/wizard_pick_import.py'
543--- bin/addons/msf_supply_doc_export/wizard/wizard_pick_import.py 2019-02-25 14:54:54 +0000
544+++ bin/addons/msf_supply_doc_export/wizard/wizard_pick_import.py 2019-07-15 07:19:17 +0000
545@@ -39,7 +39,7 @@
546 7: 'packing_date',
547 8: 'total_items',
548 9: 'content',
549- 10: 'transport_mode',
550+ 10: 'transport_type',
551 11: 'priority',
552 12: 'rts_date',
553 }
554
555=== modified file 'bin/addons/purchase/purchase_order.py'
556--- bin/addons/purchase/purchase_order.py 2019-05-28 14:47:52 +0000
557+++ bin/addons/purchase/purchase_order.py 2019-07-15 07:19:17 +0000
558@@ -1510,7 +1510,7 @@
559 'categ', 'priority', 'internal_type', 'arrival_date',
560 'transport_type', 'shipment_date', 'ready_to_ship_date',
561 'cross_docking_ok', 'delivery_confirmed_date',
562- 'est_transport_lead_time', 'transport_mode', 'location_id',
563+ 'est_transport_lead_time', 'location_id',
564 'dest_address_id', 'incoterm_id']
565
566
567
568=== modified file 'bin/addons/purchase/purchase_view.xml'
569--- bin/addons/purchase/purchase_view.xml 2019-05-27 14:37:03 +0000
570+++ bin/addons/purchase/purchase_view.xml 2019-07-15 07:19:17 +0000
571@@ -162,7 +162,7 @@
572 <field name="partner_ref" invisible="1"/>
573 <field name="short_partner_ref" on_change="onchange_short_partner_ref(short_partner_ref)" attrs="{'readonly': ['|', ('partner_type', 'not in', ['external', 'esc']), ('state', 'not in', ['draft', 'draft_p', 'validated'])]}"/>
574 <field name="shipped" attrs="{'invisible':[('state', 'in', ('draft', 'draft_p', 'validated', 'validated_p'))]}" readonly="1"/>
575- <field name="shipped_rate" invisible="True"/>
576+ <field name="shipped_rate" invisible="True" widget="boolean"/> <!-- Put to boolean for the conditions below -->
577 <field name="push_fo" invisible="1"/>
578 <field name="is_a_counterpart" invisible="1"/>
579 <field name="order_type" on_change="onchange_internal_type(order_type, partner_id, categ, dest_partner_id, warehouse_id, delivery_requested_date)" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
580@@ -325,7 +325,7 @@
581 <field name="est_transport_lead_time" attrs="{'readonly': [('state', 'not in', ['draft', 'draft_p', 'validated'])]}"/>
582 <field name="ready_to_ship_date" attrs="{'readonly': ['|', ('shipped', '=', True), ('state', 'not in', ['draft', 'draft_p', 'validated'])], 'invisible': [('partner_type', '=', 'external')]}"/>
583 <field name="shipment_date" attrs="{'readonly': ['|', ('shipped', '=', True), ('state', 'not in', ['draft', 'draft_p', 'validated'])], 'invisible': [('partner_type', '=', 'external')]}"/>
584- <field name="arrival_date" attrs="{'readonly': ['|', ('shipped_rate', '!=', 0.0), ('state', '=', 'done')], 'invisible': [('internal_type', '!=', 'international')]}"/>
585+ <field name="arrival_date" attrs="{'readonly': ['|', ('shipped_rate', '=', True), ('state', '=', 'done')], 'invisible': [('internal_type', '!=', 'international')]}"/>
586 </group>
587 <group colspan="2" col="2">
588 <separator string="Delivery" colspan="2"/>
589@@ -393,10 +393,10 @@
590 <group colspan="12" col="19" attrs="{'invisible': ['|', ('categ', '=', 'transport'), ('display_intl_transport_ok', '=', False)]}">
591 <field name="display_intl_transport_ok" invisible="1"/>
592 <field name="intl_supplier_ok" invisible="1"/>
593- <field name="transport_mode" attrs="{'invisible': [('display_intl_transport_ok', '=', False)], 'readonly': [('shipped_rate', '!=', 0.00)]}"/>
594- <label colspan="15"/>
595- <field name="transport_cost" attrs="{'invisible': [('display_intl_transport_ok', '=', False)], 'required': [('intl_supplier_ok', '=', True)], 'readonly': [('shipped_rate', '!=', 0.00)]}" nolabel="1"/>
596- <field name="transport_currency_id" domain="[('is_po_functional', '=', pricelist_id)]" attrs="{'invisible': [('display_intl_transport_ok', '=', False)], 'required': [('intl_supplier_ok', '=', True)],'readonly': [('shipped_rate', '!=', 0.00)]}" nolabel="1"/>
597+ <label align="1.0" string="Estimated transport costs : " colspan="3"/>
598+ <field name="transport_cost" attrs="{'invisible': [('display_intl_transport_ok', '=', False)], 'required': [('intl_supplier_ok', '=', True)], 'readonly': [('shipped_rate', '=', True)]}" nolabel="1"/>
599+ <field name="transport_currency_id" domain="[('is_po_functional', '=', pricelist_id)]" attrs="{'invisible': [('display_intl_transport_ok', '=', False)], 'required': [('intl_supplier_ok', '=', True)],'readonly': [('shipped_rate', '=', True)]}" nolabel="1"/>
600+ <label colspan="13"/>
601 <separator colspan="19" attrs="{'invisible': [('display_intl_transport_ok', '=', False)]}"/>
602 </group>
603 <field name="currency_id" readonly="1"/>
604
605=== modified file 'bin/addons/transport_mgmt/purchase.py'
606--- bin/addons/transport_mgmt/purchase.py 2019-02-11 10:13:34 +0000
607+++ bin/addons/transport_mgmt/purchase.py 2019-07-15 07:19:17 +0000
608@@ -101,9 +101,6 @@
609 _columns = {
610 'display_intl_transport_ok': fields.boolean(string='Displayed intl transport'),
611 'intl_supplier_ok': fields.boolean(string='International Supplier'),
612- 'transport_mode': fields.selection([('regular_air', 'Air regular'), ('express_air', 'Air express'),
613- ('ffc_air', 'Air FFC'), ('sea', 'Sea'),
614- ('road', 'Road'), ('hand', 'Hand carry'),], string='Transport mode'),
615 'transport_cost': fields.float(string='Transport cost', digits_compute=dp.get_precision('Purchase Price')),
616 'transport_currency_id': fields.many2one('res.currency', string='Currency'),
617 'total_price_include_transport': fields.function(_get_include_transport, method=True, string="Total incl. transport", type='float', digits_compute=dp.get_precision('Purchase Price'), readonly=True, multi='cost'),
618
619=== modified file 'bin/addons/transport_mgmt/report/intl_transport.py'
620--- bin/addons/transport_mgmt/report/intl_transport.py 2015-05-26 14:25:23 +0000
621+++ bin/addons/transport_mgmt/report/intl_transport.py 2019-07-15 07:19:17 +0000
622@@ -23,18 +23,18 @@
623 from osv import fields
624
625 import tools
626+from msf_order_date import TRANSPORT_TYPE
627+
628
629 class international_transport_cost_report(osv.osv):
630 _name = 'international.transport.cost.report'
631 _rec_name = 'order_id'
632 _description = 'International Transport Costs'
633 _auto = False
634- _order = 'date_order desc, delivery_confirmed_date desc, partner_id, transport_mode'
635+ _order = 'date_order desc, delivery_confirmed_date desc, partner_id, transport_type'
636
637 _columns = {
638- 'transport_mode': fields.selection([('regular_air', 'Air regular'), ('express_air', 'Air express'),
639- ('ffc_air', 'Air FFC'), ('sea', 'Sea'),
640- ('road', 'Road'), ('hand', 'Hand carry'),], string='Transport mode'),
641+ 'transport_type': fields.selection(selection=TRANSPORT_TYPE, string='Transport mode'),
642 'func_transport_cost': fields.float(digits=(16,2), string='Func. Transport cost'),
643 'func_currency_id': fields.many2one('res.currency', string='Func. Currency'),
644 'transport_cost': fields.float(digits=(16,2), string='Transport cost'),
645@@ -55,7 +55,7 @@
646 min(po.id) as id,
647 po.id as order_id,
648 count(po.id) as nb_order,
649- po.transport_mode as transport_mode,
650+ po.transport_type as transport_type,
651 sum(round((po.transport_cost*(to_rate.rate/fr_rate.rate)/to_cur.rounding))*to_cur.rounding) as func_transport_cost,
652 po.transport_cost as transport_cost,
653 po.transport_currency_id as transport_currency_id,
654@@ -93,7 +93,7 @@
655 po.transport_cost > 0.00
656 GROUP BY
657 po.id,
658- po.transport_mode,
659+ po.transport_type,
660 po.transport_cost,
661 po.transport_currency_id,
662 po.date_order,
663
664=== modified file 'bin/addons/transport_mgmt/report/intl_transport_view.xml'
665--- bin/addons/transport_mgmt/report/intl_transport_view.xml 2012-01-20 10:38:08 +0000
666+++ bin/addons/transport_mgmt/report/intl_transport_view.xml 2019-07-15 07:19:17 +0000
667@@ -14,7 +14,7 @@
668 <field name="date_order" />
669 <field name="delivery_confirmed_date" />
670 <field name="partner_id" />
671- <field name="transport_mode" />
672+ <field name="transport_type" />
673 <field name="func_transport_cost" sum="Transport cost" />
674 <field name="func_currency_id" />
675 <field name="transport_cost" />
676@@ -33,7 +33,7 @@
677 <filter icon="terp-check" name="approved" string="Confirmed" domain="[('order_state','=','approved')]" separator="1" />
678 <filter icon="gtk-yes" name="done" string="Closed" domain="[('order_state','=','done')]" separator="1" />
679 <separator orientation="vertical" />
680- <field name="transport_mode" />
681+ <field name="transport_type" />
682 <field name="transport_cost" />
683 <field name="order_id" />
684 <field name="date_order" />
685@@ -42,7 +42,7 @@
686 </group>
687 <newline />
688 <group expand="1" string="Group By..." colspan="10" col="12">
689- <filter string="Transport Mode" name="group_transport_mode" icon="terp-accessories-archiver" context="{'group_by': 'transport_mode'}" />
690+ <filter string="Transport Mode" name="group_transport_type" icon="terp-accessories-archiver" context="{'group_by': 'transport_type'}" />
691 <separator orientation="vertical" />
692 <filter string="Supplier" name="group_partner_id" icon="terp-personal" context="{'group_by':'partner_id'}"/>
693 </group>
694@@ -55,7 +55,7 @@
695 <field name="res_model">international.transport.cost.report</field>
696 <field name="view_type">form</field>
697 <field name="view_mode">tree</field>
698- <field name="context">{'search_default_group_transport_mode':1, 'search_default_group_partner_id':1, 'search_default_group_transport_currency_id':1, 'group_by':[], 'group_by_no_leaf':0}</field>
699+ <field name="context">{'search_default_group_transport_type':1, 'search_default_group_partner_id':1, 'search_default_group_transport_currency_id':1, 'group_by':[], 'group_by_no_leaf':0}</field>
700 </record>
701
702 <menuitem action="action_intl_transport_cost_action" id="menu_intl_transport_cost_report" parent="menu_transport_cost_reports"/>

Subscribers

People subscribed via source and target branches