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
=== modified file 'bin/addons/msf_doc_import/report/in_simulation_screen_xls_report.mako'
--- bin/addons/msf_doc_import/report/in_simulation_screen_xls_report.mako 2018-07-18 09:51:56 +0000
+++ bin/addons/msf_doc_import/report/in_simulation_screen_xls_report.mako 2019-07-15 07:19:17 +0000
@@ -137,11 +137,11 @@
137137
138 <Row>138 <Row>
139 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Transport mode')}</Data></Cell>139 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Transport mode')}</Data></Cell>
140 <Cell ss:StyleID="line" ><Data ss:Type="String">${(getSel(o, 'transport_mode') or '')|x}</Data></Cell>140 <Cell ss:StyleID="line" ><Data ss:Type="String">${(getSel(o, 'transport_type') or '')|x}</Data></Cell>
141 % if o.imp_transport_mode != o.transport_mode:141 % if o.imp_transport_type != o.transport_type:
142 <Cell ss:StyleID="line" ><Data ss:Type="String">${(getSel(o, 'imp_transport_mode') or '')|x}</Data></Cell>142 <Cell ss:StyleID="line" ><Data ss:Type="String">${(getSel(o, 'imp_transport_type') or '')|x}</Data></Cell>
143 % else:143 % else:
144 <Cell ss:StyleID="line" ><Data ss:Type="String">${(getSel(o, 'imp_transport_mode') or '')|x}</Data></Cell>144 <Cell ss:StyleID="line" ><Data ss:Type="String">${(getSel(o, 'imp_transport_type') or '')|x}</Data></Cell>
145 % endif145 % endif
146 </Row>146 </Row>
147147
148148
=== modified file 'bin/addons/msf_doc_import/report/po_simulation_screen_report.rml'
--- bin/addons/msf_doc_import/report/po_simulation_screen_report.rml 2014-01-15 10:47:43 +0000
+++ bin/addons/msf_doc_import/report/po_simulation_screen_report.rml 2019-07-15 07:19:17 +0000
@@ -99,10 +99,10 @@
99 <para style="HeaderDiffNameRight">Transport mode:</para>99 <para style="HeaderDiffNameRight">Transport mode:</para>
100 </td>100 </td>
101 <td>101 <td>
102 <para style="HeaderDiffValue">[[ getSel(o, 'in_transport_mode') ]]</para>102 <para style="HeaderDiffValue">[[ getSel(o, 'in_transport_type') ]]</para>
103 </td>103 </td>
104 <td>104 <td>
105 <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>105 <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>
106 </td>106 </td>
107 </tr>107 </tr>
108 <tr>108 <tr>
109109
=== modified file 'bin/addons/msf_doc_import/report/po_simulation_screen_xls_report.mako'
--- bin/addons/msf_doc_import/report/po_simulation_screen_xls_report.mako 2018-08-10 09:51:23 +0000
+++ bin/addons/msf_doc_import/report/po_simulation_screen_xls_report.mako 2019-07-15 07:19:17 +0000
@@ -124,11 +124,11 @@
124124
125 <Row>125 <Row>
126 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Transport Mode')}</Data></Cell>126 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Transport Mode')}</Data></Cell>
127 <Cell ss:StyleID="line" ><Data ss:Type="String">${getSel(o, 'in_transport_mode') or ''|x}</Data></Cell>127 <Cell ss:StyleID="line" ><Data ss:Type="String">${getSel(o, 'in_transport_type') or ''|x}</Data></Cell>
128 % if o.imp_transport_mode != o.in_transport_mode:128 % if o.imp_transport_type != o.in_transport_type:
129 <Cell ss:StyleID="line_change" ss:MergeAcross="1" ><Data ss:Type="String">${getSel(o, 'imp_transport_mode') or ''|x}</Data></Cell>129 <Cell ss:StyleID="line_change" ss:MergeAcross="1" ><Data ss:Type="String">${getSel(o, 'imp_transport_type') or ''|x}</Data></Cell>
130 % else:130 % else:
131 <Cell ss:StyleID="line" ss:MergeAcross="1" ><Data ss:Type="String">${getSel(o, 'imp_transport_mode')or ''|x}</Data></Cell>131 <Cell ss:StyleID="line" ss:MergeAcross="1" ><Data ss:Type="String">${getSel(o, 'imp_transport_type')or ''|x}</Data></Cell>
132 % endif132 % endif
133 </Row>133 </Row>
134134
135135
=== modified file 'bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen.py'
--- bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen.py 2019-04-25 15:25:38 +0000
+++ bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen.py 2019-07-15 07:19:17 +0000
@@ -102,7 +102,7 @@
102 'backorder_id': simu.picking_id.backorder_id and simu.picking_id.backorder_id.id or False,102 'backorder_id': simu.picking_id.backorder_id and simu.picking_id.backorder_id.id or False,
103 'header_notes': simu.picking_id.note,103 'header_notes': simu.picking_id.note,
104 'freight_number': simu.picking_id.shipment_ref,104 'freight_number': simu.picking_id.shipment_ref,
105 'transport_mode': simu.picking_id and simu.picking_id.purchase_id and simu.picking_id.purchase_id.transport_type or False}105 'transport_type': simu.picking_id and simu.picking_id.purchase_id and simu.picking_id.purchase_id.transport_type or False}
106106
107 return res107 return res
108108
@@ -147,14 +147,14 @@
147 readonly=True, type='text', multi='related'),147 readonly=True, type='text', multi='related'),
148 'freight_number': fields.function(_get_related_values, method=True, string='Freight number',148 'freight_number': fields.function(_get_related_values, method=True, string='Freight number',
149 readonly=True, type='char', size=128, multi='related'),149 readonly=True, type='char', size=128, multi='related'),
150 'transport_mode': fields.function(_get_related_values, method=True, string='Transport mode',150 'transport_type': fields.function(_get_related_values, method=True, string='Transport mode',
151 readonly=True, type='selection', selection=TRANSPORT_TYPE, multi='related'),151 readonly=True, type='selection', selection=TRANSPORT_TYPE, multi='related'),
152 # Import fields152 # Import fields
153 'imp_notes': fields.text(string='Notes', readonly=True),153 'imp_notes': fields.text(string='Notes', readonly=True),
154 'message_esc': fields.text(string='Message ESC', readonly=True),154 'message_esc': fields.text(string='Message ESC', readonly=True),
155 'imp_origin': fields.char(size=128, string='Origin', readonly=True),155 'imp_origin': fields.char(size=128, string='Origin', readonly=True),
156 'imp_freight_number': fields.char(size=128, string='Freight number', readonly=True),156 'imp_freight_number': fields.char(size=128, string='Freight number', readonly=True),
157 'imp_transport_mode': fields.char(string='Transport mode', size=128, readonly=True),157 'imp_transport_type': fields.char(string='Transport mode', size=128, readonly=True),
158 # Lines158 # Lines
159 'line_ids': fields.one2many('wizard.import.in.line.simulation.screen', 'simu_id', string='Stock moves'),159 'line_ids': fields.one2many('wizard.import.in.line.simulation.screen', 'simu_id', string='Stock moves'),
160 'with_pack': fields.boolean('With Pack Info'),160 'with_pack': fields.boolean('With Pack Info'),
@@ -664,8 +664,8 @@
664 header_values['imp_origin'] = wiz.origin664 header_values['imp_origin'] = wiz.origin
665665
666 # Line 5: Transport mode666 # Line 5: Transport mode
667 transport_mode = values.get(5, ['', ''])[1]667 transport_type = values.get(5, ['', ''])[1]
668 header_values['imp_transport_mode'] = transport_mode668 header_values['imp_transport_type'] = transport_type
669669
670 # Line 6: Notes670 # Line 6: Notes
671 imp_notes = values.get(6, ['', ''])[1]671 imp_notes = values.get(6, ['', ''])[1]
672672
=== modified file 'bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen_view.xml'
--- bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen_view.xml 2018-10-02 14:02:43 +0000
+++ bin/addons/msf_doc_import/wizard/wizard_in_simulation_screen_view.xml 2019-07-15 07:19:17 +0000
@@ -49,8 +49,8 @@
49 <separator colspan="2" string="Imported values"/>49 <separator colspan="2" string="Imported values"/>
50 <field name="freight_number" />50 <field name="freight_number" />
51 <field name="imp_freight_number" />51 <field name="imp_freight_number" />
52 <field name="transport_mode" />52 <field name="transport_type" />
53 <field name="imp_transport_mode" />53 <field name="imp_transport_type" />
54 <separator colspan="2" string="Original notes" />54 <separator colspan="2" string="Original notes" />
55 <separator colspan="2" string="Imported notes" />55 <separator colspan="2" string="Imported notes" />
56 <field name="header_notes" colspan="2" nolabel="1" />56 <field name="header_notes" colspan="2" nolabel="1" />
5757
=== modified file 'bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen.py'
--- bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen.py 2019-05-28 07:30:48 +0000
+++ bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen.py 2019-07-15 07:19:17 +0000
@@ -198,7 +198,7 @@
198 relation='res.partner.address',198 relation='res.partner.address',
199 string='Destination Address',199 string='Destination Address',
200 readonly=True),200 readonly=True),
201 'in_transport_mode': fields.related('order_id', 'transport_type',201 'in_transport_type': fields.related('order_id', 'transport_type',
202 type='selection',202 type='selection',
203 selection=TRANSPORT_TYPE,203 selection=TRANSPORT_TYPE,
204 string='Transport mode',204 string='Transport mode',
@@ -238,7 +238,7 @@
238 # Import fiels238 # Import fiels
239 'imp_supplier_ref': fields.char(size=256, string='Supplier Ref',239 'imp_supplier_ref': fields.char(size=256, string='Supplier Ref',
240 readonly=True),240 readonly=True),
241 'imp_transport_mode': fields.selection(selection=TRANSPORT_TYPE,241 'imp_transport_type': fields.selection(selection=TRANSPORT_TYPE,
242 string='Transport mode',242 string='Transport mode',
243 readonly=True),243 readonly=True),
244 'imp_ready_to_ship_date': fields.date(string='RTS Date',244 'imp_ready_to_ship_date': fields.date(string='RTS Date',
@@ -838,17 +838,17 @@
838 # Nothing to do838 # Nothing to do
839839
840 # Line 9: Transport mode840 # Line 9: Transport mode
841 transport_mode = values.get(9, [])[1]841 transport_type = values.get(9, [])[1]
842 if transport_mode:842 if transport_type:
843 transport_select = self.fields_get(cr, uid, ['imp_transport_mode'], context=context)843 transport_select = self.fields_get(cr, uid, ['imp_transport_type'], context=context)
844 for x in transport_select['imp_transport_mode']['selection']:844 for x in transport_select['imp_transport_type']['selection']:
845 if x[1] == transport_mode:845 if x[1] == transport_type:
846 header_values['imp_transport_mode'] = x[0]846 header_values['imp_transport_type'] = x[0]
847 break847 break
848 else:848 else:
849 possible_mode = ', '.join(x[1] for x in transport_select['imp_transport_mode']['selection'] if x[1])849 possible_type = ', '.join(x[1] for x in transport_select['imp_transport_type']['selection'] if x[1])
850 err_msg = _('Line 9 of the file: The transport mode \'%s\' is not \850 err_msg = _('Line 9 of the file: The transport mode \'%s\' is not \
851a valid transport mode. Valid transport modes: %s') % (transport_mode, possible_mode)851a valid transport mode. Valid transport modes: %s') % (transport_type, possible_type)
852 values_header_errors.append(err_msg)852 values_header_errors.append(err_msg)
853853
854854
855855
=== modified file 'bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen_view.xml'
--- bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen_view.xml 2019-03-29 17:02:16 +0000
+++ bin/addons/msf_doc_import/wizard/wizard_po_simulation_screen_view.xml 2019-07-15 07:19:17 +0000
@@ -45,8 +45,8 @@
45 <field name="in_supplier_ref" />45 <field name="in_supplier_ref" />
46 <field name="imp_supplier_ref" nolabel="1" />46 <field name="imp_supplier_ref" nolabel="1" />
47 <label> </label>47 <label> </label>
48 <field name="in_transport_mode" />48 <field name="in_transport_type" />
49 <field name="imp_transport_mode" nolabel="1" />49 <field name="imp_transport_type" nolabel="1" />
50 <label> </label>50 <label> </label>
51 <field name="in_ready_to_ship_date" />51 <field name="in_ready_to_ship_date" />
52 <field name="imp_ready_to_ship_date" nolabel="1" />52 <field name="imp_ready_to_ship_date" nolabel="1" />
5353
=== modified file 'bin/addons/msf_order_date/__init__.py'
--- bin/addons/msf_order_date/__init__.py 2011-12-09 09:45:44 +0000
+++ bin/addons/msf_order_date/__init__.py 2019-07-15 07:19:17 +0000
@@ -19,7 +19,7 @@
19#19#
20##############################################################################20##############################################################################
2121
22TRANSPORT_TYPE = [('',''), ('sea', 'Sea'), ('air', 'Air'), ('road', 'Road'),] #[('flight', 'By Flight'), ('road', 'By Road'), ('boat', 'By Boat')]22TRANSPORT_TYPE = [('',''), ('express','Express'), ('hand','Hand carry'), ('sea', 'Sea'), ('air', 'Air'), ('road', 'Road'),] #[('flight', 'By Flight'), ('road', 'By Road'), ('boat', 'By Boat')]
23ZONE_SELECTION = [('national','National'),('international','International')]23ZONE_SELECTION = [('national','National'),('international','International')]
2424
25import order_dates25import order_dates
2626
=== modified file 'bin/addons/msf_profile/i18n/allmsf.pot'
--- bin/addons/msf_profile/i18n/allmsf.pot 2017-09-28 14:05:02 +0000
+++ bin/addons/msf_profile/i18n/allmsf.pot 2019-07-15 07:19:17 +0000
@@ -4535,12 +4535,6 @@
4535msgid "OpenERP Tweets"4535msgid "OpenERP Tweets"
4536msgstr ""4536msgstr ""
45374537
4538#. module: transport_mgmt
4539#: selection:international.transport.cost.report,transport_mode:0
4540#: selection:purchase.order,transport_mode:0
4541msgid "Air regular"
4542msgstr ""
4543
4544#. module: analytic_distribution4538#. module: analytic_distribution
4545#: field:mass.reallocation.verification.wizard,nb_error:04539#: field:mass.reallocation.verification.wizard,nb_error:0
4546msgid "Lines in error"4540msgid "Lines in error"
@@ -23335,12 +23329,6 @@
23335msgid "Module Upgrade"23329msgid "Module Upgrade"
23336msgstr ""23330msgstr ""
2333723331
23338#. module: transport_mgmt
23339#: selection:international.transport.cost.report,transport_mode:0
23340#: selection:purchase.order,transport_mode:0
23341msgid "Air express"
23342msgstr ""
23343
23344#. module: msf_outgoing23332#. module: msf_outgoing
23345#: model:ir.actions.report.xml,name:msf_outgoing.report_cargo_manifest23333#: model:ir.actions.report.xml,name:msf_outgoing.report_cargo_manifest
23346msgid "Cargo Manifest"23334msgid "Cargo Manifest"
@@ -24784,9 +24772,7 @@
24784msgstr ""24772msgstr ""
2478524773
24786#. module: transport_mgmt24774#. module: transport_mgmt
24787#: field:international.transport.cost.report,transport_mode:0
24788#: field:local.transport.cost.report,transport_mode:024775#: field:local.transport.cost.report,transport_mode:0
24789#: field:purchase.order,transport_mode:0
24790msgid "Transport mode"24776msgid "Transport mode"
24791msgstr ""24777msgstr ""
2479224778
@@ -29573,8 +29559,6 @@
29573#: selection:res.partner,transport_0:029559#: selection:res.partner,transport_0:0
29574#: selection:res.partner,transport_1:029560#: selection:res.partner,transport_1:0
29575#: selection:res.partner,transport_2:029561#: selection:res.partner,transport_2:0
29576#: selection:international.transport.cost.report,transport_mode:0
29577#: selection:purchase.order,transport_mode:0
29578msgid "Sea"29562msgid "Sea"
29579msgstr ""29563msgstr ""
2958029564
@@ -32211,12 +32195,6 @@
32211"A group_by specification must be a list of valid fields."32195"A group_by specification must be a list of valid fields."
32212msgstr ""32196msgstr ""
3221332197
32214#. module: transport_mgmt
32215#: selection:international.transport.cost.report,transport_mode:0
32216#: selection:purchase.order,transport_mode:0
32217msgid "Air FFC"
32218msgstr ""
32219
32220#. module: msf_outgoing32198#. module: msf_outgoing
32221#: field:stock.picking,previous_step_id:032199#: field:stock.picking,previous_step_id:0
32222msgid "Previous step"32200msgid "Previous step"
@@ -40793,8 +40771,6 @@
40793#: selection:res.partner,transport_0:040771#: selection:res.partner,transport_0:0
40794#: selection:res.partner,transport_1:040772#: selection:res.partner,transport_1:0
40795#: selection:res.partner,transport_2:040773#: selection:res.partner,transport_2:0
40796#: selection:international.transport.cost.report,transport_mode:0
40797#: selection:purchase.order,transport_mode:0
40798msgid "Road"40774msgid "Road"
40799msgstr ""40775msgstr ""
4080040776
@@ -41086,12 +41062,6 @@
41086msgid "Free 2"41062msgid "Free 2"
41087msgstr ""41063msgstr ""
4108841064
41089#. module: transport_mgmt
41090#: selection:international.transport.cost.report,transport_mode:0
41091#: selection:purchase.order,transport_mode:0
41092msgid "Hand carry"
41093msgstr ""
41094
41095#. modules: delivery_mechanism, purchase, stock_override, product_asset, specific_rules, stock41065#. modules: delivery_mechanism, purchase, stock_override, product_asset, specific_rules, stock
41096#: model:ir.model,name:delivery_mechanism.model_stock_partial_picking41066#: model:ir.model,name:delivery_mechanism.model_stock_partial_picking
41097#: model:ir.model,name:product_asset.model_stock_partial_picking41067#: model:ir.model,name:product_asset.model_stock_partial_picking
4109841068
=== modified file 'bin/addons/msf_profile/i18n/es_MF.po'
--- bin/addons/msf_profile/i18n/es_MF.po 2019-04-08 15:13:52 +0000
+++ bin/addons/msf_profile/i18n/es_MF.po 2019-07-15 07:19:17 +0000
@@ -13969,9 +13969,7 @@
13969msgstr "Códigos de impuestos"13969msgstr "Códigos de impuestos"
1397013970
13971#. module: transport_mgmt13971#. module: transport_mgmt
13972#: field:international.transport.cost.report,transport_mode:0
13973#: field:local.transport.cost.report,transport_mode:013972#: field:local.transport.cost.report,transport_mode:0
13974#: field:purchase.order,transport_mode:0
13975msgid "Transport mode"13973msgid "Transport mode"
13976msgstr "Modo de transporte"13974msgstr "Modo de transporte"
1397713975
@@ -15780,12 +15778,6 @@
15780msgid "You try to assign a lot which is not from the same product"15778msgid "You try to assign a lot which is not from the same product"
15781msgstr "Está intentando asignar un lote que no es del mismo producto"15779msgstr "Está intentando asignar un lote que no es del mismo producto"
1578215780
15783#. module: transport_mgmt
15784#: selection:international.transport.cost.report,transport_mode:0
15785#: selection:purchase.order,transport_mode:0
15786msgid "Air regular"
15787msgstr "Aéreo regular"
15788
15789#. module: account_voucher15781#. module: account_voucher
15790#: view:account.voucher:015782#: view:account.voucher:0
15791msgid "Supplier Voucher"15783msgid "Supplier Voucher"
@@ -29552,12 +29544,6 @@
29552msgid "New Jersey"29544msgid "New Jersey"
29553msgstr "Nueva Jersey"29545msgstr "Nueva Jersey"
2955429546
29555#. module: transport_mgmt
29556#: selection:international.transport.cost.report,transport_mode:0
29557#: selection:purchase.order,transport_mode:0
29558msgid "Air express"
29559msgstr "Air express"
29560
29561#. module: product_attributes29547#. module: product_attributes
29562#: code:addons/product_attributes/product_attributes.py:44629548#: code:addons/product_attributes/product_attributes.py:446
29563#, python-format29549#, python-format
@@ -36530,12 +36516,6 @@
36530msgid "Owner"36516msgid "Owner"
36531msgstr "Propietario"36517msgstr "Propietario"
3653236518
36533#. module: transport_mgmt
36534#: selection:international.transport.cost.report,transport_mode:0
36535#: selection:purchase.order,transport_mode:0
36536msgid "Air FFC"
36537msgstr "Aire FFC"
36538
36539#. module: resource36519#. module: resource
36540#: field:resource.calendar.attendance,hour_from:036520#: field:resource.calendar.attendance,hour_from:0
36541msgid "Work from"36521msgid "Work from"
@@ -41573,8 +41553,6 @@
41573#: selection:res.partner,transport_0:041553#: selection:res.partner,transport_0:0
41574#: selection:res.partner,transport_1:041554#: selection:res.partner,transport_1:0
41575#: selection:res.partner,transport_2:041555#: selection:res.partner,transport_2:0
41576#: selection:international.transport.cost.report,transport_mode:0
41577#: selection:purchase.order,transport_mode:0
41578msgid "Sea"41556msgid "Sea"
41579msgstr "Mar"41557msgstr "Mar"
4158041558
@@ -46484,12 +46462,6 @@
46484msgid "Nomenclature level"46462msgid "Nomenclature level"
46485msgstr "Nivel de nomenclatura"46463msgstr "Nivel de nomenclatura"
4648646464
46487#. module: transport_mgmt
46488#: selection:international.transport.cost.report,transport_mode:0
46489#: selection:purchase.order,transport_mode:0
46490msgid "Hand carry"
46491msgstr "Transportado en mano"
46492
46493#. module: account46465#. module: account
46494#: model:process.transition,note:account.process_transition_invoiceimport046466#: model:process.transition,note:account.process_transition_invoiceimport0
46495msgid "Import of the statement in the system from a supplier or customer invoice"46467msgid "Import of the statement in the system from a supplier or customer invoice"
@@ -49784,8 +49756,6 @@
49784#: selection:res.partner,transport_0:049756#: selection:res.partner,transport_0:0
49785#: selection:res.partner,transport_1:049757#: selection:res.partner,transport_1:0
49786#: selection:res.partner,transport_2:049758#: selection:res.partner,transport_2:0
49787#: selection:international.transport.cost.report,transport_mode:0
49788#: selection:purchase.order,transport_mode:0
49789msgid "Road"49759msgid "Road"
49790msgstr "Tierra"49760msgstr "Tierra"
4979149761
4979249762
=== modified file 'bin/addons/msf_profile/i18n/fr_MF.po'
--- bin/addons/msf_profile/i18n/fr_MF.po 2019-06-20 14:24:33 +0000
+++ bin/addons/msf_profile/i18n/fr_MF.po 2019-07-15 07:19:17 +0000
@@ -39297,9 +39297,6 @@
3929739297
39298#. modules: msf_order_date, purchase, msf_outgoing, partner_modification, transport_mgmt, msf_doc_import39298#. modules: msf_order_date, purchase, msf_outgoing, partner_modification, transport_mgmt, msf_doc_import
39299#: selection:purchase.import.xml.line,transport_type:039299#: selection:purchase.import.xml.line,transport_type:0
39300#: selection:wizard.import.in.simulation.screen,transport_mode:0
39301#: selection:wizard.import.po.simulation.screen,imp_transport_mode:0
39302#: selection:wizard.import.po.simulation.screen,in_transport_mode:0
39303#: selection:sale.order,transport_type:039300#: selection:sale.order,transport_type:0
39304#: selection:return.pack.shipment.processor,transport_type:039301#: selection:return.pack.shipment.processor,transport_type:0
39305#: selection:return.shipment.processor,transport_type:039302#: selection:return.shipment.processor,transport_type:0
@@ -39309,8 +39306,6 @@
39309#: selection:res.partner,transport_1:039306#: selection:res.partner,transport_1:0
39310#: selection:res.partner,transport_2:039307#: selection:res.partner,transport_2:0
39311#: selection:purchase.order,transport_type:039308#: selection:purchase.order,transport_type:0
39312#: selection:international.transport.cost.report,transport_mode:0
39313#: selection:purchase.order,transport_mode:0
39314msgid "Sea"39309msgid "Sea"
39315msgstr "Mer"39310msgstr "Mer"
3931639311
@@ -49883,9 +49878,6 @@
4988349878
49884#. modules: msf_order_date, msf_doc_import, msf_outgoing, partner_modification, purchase49879#. modules: msf_order_date, msf_doc_import, msf_outgoing, partner_modification, purchase
49885#: selection:purchase.import.xml.line,transport_type:049880#: selection:purchase.import.xml.line,transport_type:0
49886#: selection:wizard.import.in.simulation.screen,transport_mode:0
49887#: selection:wizard.import.po.simulation.screen,imp_transport_mode:0
49888#: selection:wizard.import.po.simulation.screen,in_transport_mode:0
49889#: selection:sale.order,transport_type:049881#: selection:sale.order,transport_type:0
49890#: selection:return.pack.shipment.processor,transport_type:049882#: selection:return.pack.shipment.processor,transport_type:0
49891#: selection:return.shipment.processor,transport_type:049883#: selection:return.shipment.processor,transport_type:0
@@ -53896,12 +53888,6 @@
53896msgid "Problem in configuration `Record Id` in Server Action!"53888msgid "Problem in configuration `Record Id` in Server Action!"
53897msgstr "Problème dans la configuration `Record Id` sous Action Server!"53889msgstr "Problème dans la configuration `Record Id` sous Action Server!"
5389853890
53899#. module: transport_mgmt
53900#: selection:international.transport.cost.report,transport_mode:0
53901#: selection:purchase.order,transport_mode:0
53902msgid "Air regular"
53903msgstr "Air - régulier "
53904
53905#. module: account53891#. module: account
53906#: field:account.move.line.reconcile,credit:053892#: field:account.move.line.reconcile,credit:0
53907msgid "Credit amount"53893msgid "Credit amount"
@@ -76232,12 +76218,6 @@
76232msgid "Price List Version"76218msgid "Price List Version"
76233msgstr "Prix - Version de Liste"76219msgstr "Prix - Version de Liste"
7623476220
76235#. module: transport_mgmt
76236#: selection:international.transport.cost.report,transport_mode:0
76237#: selection:purchase.order,transport_mode:0
76238msgid "Hand carry"
76239msgstr "Transport en bagage à main"
76240
76241#. module: account_corrections76221#. module: account_corrections
76242#: view:wizard.journal.items.corrections:076222#: view:wizard.journal.items.corrections:0
76243#: view:analytic.distribution.wizard:076223#: view:analytic.distribution.wizard:0
@@ -77421,16 +77401,16 @@
77421#. modules: msf_doc_import, transport_mgmt, msf_supply_doc_export77401#. modules: msf_doc_import, transport_mgmt, msf_supply_doc_export
77422#: report:addons/msf_doc_import/report/in_simulation_screen_xls_report.mako:13977402#: report:addons/msf_doc_import/report/in_simulation_screen_xls_report.mako:139
77423#: code:addons/msf_doc_import/wizard/wizard_in_simulation_screen.py:6077403#: code:addons/msf_doc_import/wizard/wizard_in_simulation_screen.py:60
77424#: field:wizard.import.in.simulation.screen,imp_transport_mode:0
77425#: field:wizard.import.in.simulation.screen,transport_mode:0
77426#: field:wizard.import.po.simulation.screen,imp_transport_mode:0
77427#: field:wizard.import.po.simulation.screen,in_transport_mode:0
77428#: field:international.transport.cost.report,transport_mode:0
77429#: field:local.transport.cost.report,transport_mode:077404#: field:local.transport.cost.report,transport_mode:0
77430#: field:purchase.order,transport_mode:0
77431#: report:addons/msf_supply_doc_export/report/report_incoming_shipment_xls.mako:12477405#: report:addons/msf_supply_doc_export/report/report_incoming_shipment_xls.mako:124
77432#: report:addons/msf_supply_doc_export/report/report_validated_purchase_order_xls.mako:11877406#: report:addons/msf_supply_doc_export/report/report_validated_purchase_order_xls.mako:118
77433#: report:addons/msf_supply_doc_export/report/report_pick_export_xls.mako:13677407#: report:addons/msf_supply_doc_export/report/report_pick_export_xls.mako:136
77408#: code:addons/msf_doc_import/wizard/wizard_import_ppl_to_create_ship.py:73
77409#: field:wizard.import.in.simulation.screen,imp_transport_type:0
77410#: field:wizard.import.in.simulation.screen,transport_type:0
77411#: field:wizard.import.po.simulation.screen,imp_transport_type:0
77412#: field:wizard.import.po.simulation.screen,in_transport_type:0
77413#: field:international.transport.cost.report,transport_type:0
77434#, python-format77414#, python-format
77435msgid "Transport mode"77415msgid "Transport mode"
77436msgstr "Mode de transport"77416msgstr "Mode de transport"
@@ -81745,12 +81725,6 @@
81745msgid "Validated by"81725msgid "Validated by"
81746msgstr "Validé par"81726msgstr "Validé par"
8174781727
81748#. module: transport_mgmt
81749#: selection:international.transport.cost.report,transport_mode:0
81750#: selection:purchase.order,transport_mode:0
81751msgid "Air FFC"
81752msgstr "Air - FFC"
81753
81754#. modules: base_setup, unifield_setup81728#. modules: base_setup, unifield_setup
81755#: selection:base.setup.company,state_id:081729#: selection:base.setup.company,state_id:0
81756#: selection:base.setup.company,bill_state_id:081730#: selection:base.setup.company,bill_state_id:0
@@ -83482,12 +83456,6 @@
83482#: selection:res.partner,transport_1:083456#: selection:res.partner,transport_1:0
83483#: selection:res.partner,transport_2:083457#: selection:res.partner,transport_2:0
83484#: selection:purchase.order,transport_type:083458#: selection:purchase.order,transport_type:0
83485#: selection:international.transport.cost.report,transport_mode:0
83486#: selection:purchase.order,transport_mode:0
83487#: selection:purchase.import.xml.line,transport_type:0
83488#: selection:wizard.import.in.simulation.screen,transport_mode:0
83489#: selection:wizard.import.po.simulation.screen,imp_transport_mode:0
83490#: selection:wizard.import.po.simulation.screen,in_transport_mode:0
83491#: selection:return.pack.shipment.processor,transport_type:083459#: selection:return.pack.shipment.processor,transport_type:0
83492#: selection:return.shipment.processor,transport_type:083460#: selection:return.shipment.processor,transport_type:0
83493#: selection:shipment,transport_type:083461#: selection:shipment,transport_type:0
@@ -85934,12 +85902,6 @@
85934msgid "Load"85902msgid "Load"
85935msgstr "Charger"85903msgstr "Charger"
8593685904
85937#. module: transport_mgmt
85938#: selection:international.transport.cost.report,transport_mode:0
85939#: selection:purchase.order,transport_mode:0
85940msgid "Air express"
85941msgstr "Air - express"
85942
85943#. module: hr85905#. module: hr
85944#: model:hr.employee.marital.status,name:hr.hr_employee_marital_status_single85906#: model:hr.employee.marital.status,name:hr.hr_employee_marital_status_single
85945msgid "Single"85907msgid "Single"
@@ -106827,3 +106789,21 @@
106827msgid "Stop report"106789msgid "Stop report"
106828msgstr "Arrêter le rapport"106790msgstr "Arrêter le rapport"
106829106791
106792#. module: purchase
106793#: view:purchase.order:0
106794msgid "Estimated transport costs : "
106795msgstr "Estimation des coûts du transport : "
106796
106797#. modules: msf_order_date, purchase, msf_outgoing, partner_modification, transport_mgmt, msf_doc_import
106798#: selection:sale.order,transport_type:0
106799#: selection:return.pack.shipment.processor,transport_type:0
106800#: selection:return.shipment.processor,transport_type:0
106801#: selection:shipment,transport_type:0
106802#: selection:shipment.processor,transport_type:0
106803#: selection:res.partner,transport_0:0
106804#: selection:res.partner,transport_1:0
106805#: selection:res.partner,transport_2:0
106806#: selection:purchase.order,transport_type:0
106807#: selection:international.transport.cost.report,transport_type:0
106808msgid "Hand carry"
106809msgstr "Transport en bagage à main"
106830106810
=== modified file 'bin/addons/msf_profile/user_rights/msf_field_access_rights.field_access_rule_line.csv'
--- bin/addons/msf_profile/user_rights/msf_field_access_rights.field_access_rule_line.csv 2019-03-27 11:23:15 +0000
+++ bin/addons/msf_profile/user_rights/msf_field_access_rights.field_access_rule_line.csv 2019-07-15 07:19:17 +0000
@@ -82,7 +82,6 @@
82PO Coordo,transport_mgmt.field_purchase_order_total_price_include_transport,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/8282PO Coordo,transport_mgmt.field_purchase_order_total_price_include_transport,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/82
83PO Coordo,transport_mgmt.field_purchase_order_transport_cost,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/8383PO Coordo,transport_mgmt.field_purchase_order_transport_cost,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/83
84PO Coordo,transport_mgmt.field_purchase_order_transport_currency_id,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/8484PO Coordo,transport_mgmt.field_purchase_order_transport_currency_id,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/84
85PO Coordo,transport_mgmt.field_purchase_order_transport_mode,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/85
86PO Coordo,transport_mgmt.field_purchase_order_transport_order_id,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/8685PO Coordo,transport_mgmt.field_purchase_order_transport_order_id,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/86
87PO Coordo,msf_order_date.field_sale_order_transport_type,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/8786PO Coordo,msf_order_date.field_sale_order_transport_type,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/87
88PO Coordo,purchase.field_purchase_order_unallocation_ok,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/8887PO Coordo,purchase.field_purchase_order_unallocation_ok,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/88
@@ -173,7 +172,6 @@
173PO Project,transport_mgmt.field_purchase_order_total_price_include_transport,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/174172PO Project,transport_mgmt.field_purchase_order_total_price_include_transport,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/174
174PO Project,transport_mgmt.field_purchase_order_transport_cost,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/175173PO Project,transport_mgmt.field_purchase_order_transport_cost,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/175
175PO Project,transport_mgmt.field_purchase_order_transport_currency_id,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/176174PO Project,transport_mgmt.field_purchase_order_transport_currency_id,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/176
176PO Project,transport_mgmt.field_purchase_order_transport_mode,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/177
177PO Project,transport_mgmt.field_purchase_order_transport_order_id,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/178175PO Project,transport_mgmt.field_purchase_order_transport_order_id,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/178
178PO Project,msf_order_date.field_sale_order_transport_type,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/179176PO Project,msf_order_date.field_sale_order_transport_type,TRUE,FALSE,FALSE,msf_profile/field_access_rule_line/179
179PO Project,purchase.field_purchase_order_unallocation_ok,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/180177PO Project,purchase.field_purchase_order_unallocation_ok,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/180
@@ -264,7 +262,6 @@
264PO HQ,transport_mgmt.field_purchase_order_total_price_include_transport,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/266262PO HQ,transport_mgmt.field_purchase_order_total_price_include_transport,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/266
265PO HQ,transport_mgmt.field_purchase_order_transport_cost,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/267263PO HQ,transport_mgmt.field_purchase_order_transport_cost,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/267
266PO HQ,transport_mgmt.field_purchase_order_transport_currency_id,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/268264PO HQ,transport_mgmt.field_purchase_order_transport_currency_id,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/268
267PO HQ,transport_mgmt.field_purchase_order_transport_mode,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/269
268PO HQ,transport_mgmt.field_purchase_order_transport_order_id,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/270265PO HQ,transport_mgmt.field_purchase_order_transport_order_id,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/270
269PO HQ,msf_order_date.field_sale_order_transport_type,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/271266PO HQ,msf_order_date.field_sale_order_transport_type,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/271
270PO HQ,purchase.field_purchase_order_unallocation_ok,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/272267PO HQ,purchase.field_purchase_order_unallocation_ok,FALSE,FALSE,FALSE,msf_profile/field_access_rule_line/272
271268
=== modified file 'bin/addons/msf_supply_doc_export/report/report_incoming_shipment_xml.mako'
--- bin/addons/msf_supply_doc_export/report/report_incoming_shipment_xml.mako 2018-11-28 09:12:03 +0000
+++ bin/addons/msf_supply_doc_export/report/report_incoming_shipment_xml.mako 2019-07-15 07:19:17 +0000
@@ -8,7 +8,7 @@
8 <field name="partner_id" key="name">8 <field name="partner_id" key="name">
9 <field name="name">${o.partner_id and o.partner_id.name or ''}</field>9 <field name="name">${o.partner_id and o.partner_id.name or ''}</field>
10 </field>10 </field>
11 <field name="transport_mode">${(o.purchase_id and getSel(o.purchase_id, 'transport_type') or '')|x}</field>11 <field name="transport_type">${(o.purchase_id and getSel(o.purchase_id, 'transport_type') or '')|x}</field>
12 <field name="note">${o.note or ''}</field>12 <field name="note">${o.note or ''}</field>
13 <field name="message_esc"></field>13 <field name="message_esc"></field>
14 <field name="move_lines">14 <field name="move_lines">
1515
=== modified file 'bin/addons/msf_supply_doc_export/wizard/wizard_pick_import.py'
--- bin/addons/msf_supply_doc_export/wizard/wizard_pick_import.py 2019-02-25 14:54:54 +0000
+++ bin/addons/msf_supply_doc_export/wizard/wizard_pick_import.py 2019-07-15 07:19:17 +0000
@@ -39,7 +39,7 @@
39 7: 'packing_date',39 7: 'packing_date',
40 8: 'total_items',40 8: 'total_items',
41 9: 'content',41 9: 'content',
42 10: 'transport_mode',42 10: 'transport_type',
43 11: 'priority',43 11: 'priority',
44 12: 'rts_date',44 12: 'rts_date',
45}45}
4646
=== modified file 'bin/addons/purchase/purchase_order.py'
--- bin/addons/purchase/purchase_order.py 2019-05-28 14:47:52 +0000
+++ bin/addons/purchase/purchase_order.py 2019-07-15 07:19:17 +0000
@@ -1510,7 +1510,7 @@
1510 'categ', 'priority', 'internal_type', 'arrival_date',1510 'categ', 'priority', 'internal_type', 'arrival_date',
1511 'transport_type', 'shipment_date', 'ready_to_ship_date',1511 'transport_type', 'shipment_date', 'ready_to_ship_date',
1512 'cross_docking_ok', 'delivery_confirmed_date',1512 'cross_docking_ok', 'delivery_confirmed_date',
1513 'est_transport_lead_time', 'transport_mode', 'location_id',1513 'est_transport_lead_time', 'location_id',
1514 'dest_address_id', 'incoterm_id']1514 'dest_address_id', 'incoterm_id']
15151515
15161516
15171517
=== modified file 'bin/addons/purchase/purchase_view.xml'
--- bin/addons/purchase/purchase_view.xml 2019-05-27 14:37:03 +0000
+++ bin/addons/purchase/purchase_view.xml 2019-07-15 07:19:17 +0000
@@ -162,7 +162,7 @@
162 <field name="partner_ref" invisible="1"/>162 <field name="partner_ref" invisible="1"/>
163 <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'])]}"/>163 <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'])]}"/>
164 <field name="shipped" attrs="{'invisible':[('state', 'in', ('draft', 'draft_p', 'validated', 'validated_p'))]}" readonly="1"/>164 <field name="shipped" attrs="{'invisible':[('state', 'in', ('draft', 'draft_p', 'validated', 'validated_p'))]}" readonly="1"/>
165 <field name="shipped_rate" invisible="True"/>165 <field name="shipped_rate" invisible="True" widget="boolean"/> <!-- Put to boolean for the conditions below -->
166 <field name="push_fo" invisible="1"/>166 <field name="push_fo" invisible="1"/>
167 <field name="is_a_counterpart" invisible="1"/>167 <field name="is_a_counterpart" invisible="1"/>
168 <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')]}"/>168 <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')]}"/>
@@ -325,7 +325,7 @@
325 <field name="est_transport_lead_time" attrs="{'readonly': [('state', 'not in', ['draft', 'draft_p', 'validated'])]}"/>325 <field name="est_transport_lead_time" attrs="{'readonly': [('state', 'not in', ['draft', 'draft_p', 'validated'])]}"/>
326 <field name="ready_to_ship_date" attrs="{'readonly': ['|', ('shipped', '=', True), ('state', 'not in', ['draft', 'draft_p', 'validated'])], 'invisible': [('partner_type', '=', 'external')]}"/>326 <field name="ready_to_ship_date" attrs="{'readonly': ['|', ('shipped', '=', True), ('state', 'not in', ['draft', 'draft_p', 'validated'])], 'invisible': [('partner_type', '=', 'external')]}"/>
327 <field name="shipment_date" attrs="{'readonly': ['|', ('shipped', '=', True), ('state', 'not in', ['draft', 'draft_p', 'validated'])], 'invisible': [('partner_type', '=', 'external')]}"/>327 <field name="shipment_date" attrs="{'readonly': ['|', ('shipped', '=', True), ('state', 'not in', ['draft', 'draft_p', 'validated'])], 'invisible': [('partner_type', '=', 'external')]}"/>
328 <field name="arrival_date" attrs="{'readonly': ['|', ('shipped_rate', '!=', 0.0), ('state', '=', 'done')], 'invisible': [('internal_type', '!=', 'international')]}"/>328 <field name="arrival_date" attrs="{'readonly': ['|', ('shipped_rate', '=', True), ('state', '=', 'done')], 'invisible': [('internal_type', '!=', 'international')]}"/>
329 </group>329 </group>
330 <group colspan="2" col="2">330 <group colspan="2" col="2">
331 <separator string="Delivery" colspan="2"/>331 <separator string="Delivery" colspan="2"/>
@@ -393,10 +393,10 @@
393 <group colspan="12" col="19" attrs="{'invisible': ['|', ('categ', '=', 'transport'), ('display_intl_transport_ok', '=', False)]}">393 <group colspan="12" col="19" attrs="{'invisible': ['|', ('categ', '=', 'transport'), ('display_intl_transport_ok', '=', False)]}">
394 <field name="display_intl_transport_ok" invisible="1"/>394 <field name="display_intl_transport_ok" invisible="1"/>
395 <field name="intl_supplier_ok" invisible="1"/>395 <field name="intl_supplier_ok" invisible="1"/>
396 <field name="transport_mode" attrs="{'invisible': [('display_intl_transport_ok', '=', False)], 'readonly': [('shipped_rate', '!=', 0.00)]}"/>396 <label align="1.0" string="Estimated transport costs : " colspan="3"/>
397 <label colspan="15"/>397 <field name="transport_cost" attrs="{'invisible': [('display_intl_transport_ok', '=', False)], 'required': [('intl_supplier_ok', '=', True)], 'readonly': [('shipped_rate', '=', True)]}" nolabel="1"/>
398 <field name="transport_cost" attrs="{'invisible': [('display_intl_transport_ok', '=', False)], 'required': [('intl_supplier_ok', '=', True)], 'readonly': [('shipped_rate', '!=', 0.00)]}" nolabel="1"/>398 <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"/>
399 <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"/>399 <label colspan="13"/>
400 <separator colspan="19" attrs="{'invisible': [('display_intl_transport_ok', '=', False)]}"/>400 <separator colspan="19" attrs="{'invisible': [('display_intl_transport_ok', '=', False)]}"/>
401 </group>401 </group>
402 <field name="currency_id" readonly="1"/>402 <field name="currency_id" readonly="1"/>
403403
=== modified file 'bin/addons/transport_mgmt/purchase.py'
--- bin/addons/transport_mgmt/purchase.py 2019-02-11 10:13:34 +0000
+++ bin/addons/transport_mgmt/purchase.py 2019-07-15 07:19:17 +0000
@@ -101,9 +101,6 @@
101 _columns = {101 _columns = {
102 'display_intl_transport_ok': fields.boolean(string='Displayed intl transport'),102 'display_intl_transport_ok': fields.boolean(string='Displayed intl transport'),
103 'intl_supplier_ok': fields.boolean(string='International Supplier'),103 'intl_supplier_ok': fields.boolean(string='International Supplier'),
104 'transport_mode': fields.selection([('regular_air', 'Air regular'), ('express_air', 'Air express'),
105 ('ffc_air', 'Air FFC'), ('sea', 'Sea'),
106 ('road', 'Road'), ('hand', 'Hand carry'),], string='Transport mode'),
107 'transport_cost': fields.float(string='Transport cost', digits_compute=dp.get_precision('Purchase Price')),104 'transport_cost': fields.float(string='Transport cost', digits_compute=dp.get_precision('Purchase Price')),
108 'transport_currency_id': fields.many2one('res.currency', string='Currency'),105 'transport_currency_id': fields.many2one('res.currency', string='Currency'),
109 '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'),106 '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'),
110107
=== modified file 'bin/addons/transport_mgmt/report/intl_transport.py'
--- bin/addons/transport_mgmt/report/intl_transport.py 2015-05-26 14:25:23 +0000
+++ bin/addons/transport_mgmt/report/intl_transport.py 2019-07-15 07:19:17 +0000
@@ -23,18 +23,18 @@
23from osv import fields23from osv import fields
2424
25import tools25import tools
26from msf_order_date import TRANSPORT_TYPE
27
2628
27class international_transport_cost_report(osv.osv):29class international_transport_cost_report(osv.osv):
28 _name = 'international.transport.cost.report'30 _name = 'international.transport.cost.report'
29 _rec_name = 'order_id'31 _rec_name = 'order_id'
30 _description = 'International Transport Costs'32 _description = 'International Transport Costs'
31 _auto = False33 _auto = False
32 _order = 'date_order desc, delivery_confirmed_date desc, partner_id, transport_mode'34 _order = 'date_order desc, delivery_confirmed_date desc, partner_id, transport_type'
3335
34 _columns = {36 _columns = {
35 'transport_mode': fields.selection([('regular_air', 'Air regular'), ('express_air', 'Air express'),37 'transport_type': fields.selection(selection=TRANSPORT_TYPE, string='Transport mode'),
36 ('ffc_air', 'Air FFC'), ('sea', 'Sea'),
37 ('road', 'Road'), ('hand', 'Hand carry'),], string='Transport mode'),
38 'func_transport_cost': fields.float(digits=(16,2), string='Func. Transport cost'),38 'func_transport_cost': fields.float(digits=(16,2), string='Func. Transport cost'),
39 'func_currency_id': fields.many2one('res.currency', string='Func. Currency'),39 'func_currency_id': fields.many2one('res.currency', string='Func. Currency'),
40 'transport_cost': fields.float(digits=(16,2), string='Transport cost'),40 'transport_cost': fields.float(digits=(16,2), string='Transport cost'),
@@ -55,7 +55,7 @@
55 min(po.id) as id,55 min(po.id) as id,
56 po.id as order_id,56 po.id as order_id,
57 count(po.id) as nb_order,57 count(po.id) as nb_order,
58 po.transport_mode as transport_mode,58 po.transport_type as transport_type,
59 sum(round((po.transport_cost*(to_rate.rate/fr_rate.rate)/to_cur.rounding))*to_cur.rounding) as func_transport_cost,59 sum(round((po.transport_cost*(to_rate.rate/fr_rate.rate)/to_cur.rounding))*to_cur.rounding) as func_transport_cost,
60 po.transport_cost as transport_cost,60 po.transport_cost as transport_cost,
61 po.transport_currency_id as transport_currency_id,61 po.transport_currency_id as transport_currency_id,
@@ -93,7 +93,7 @@
93 po.transport_cost > 0.0093 po.transport_cost > 0.00
94 GROUP BY94 GROUP BY
95 po.id,95 po.id,
96 po.transport_mode,96 po.transport_type,
97 po.transport_cost,97 po.transport_cost,
98 po.transport_currency_id,98 po.transport_currency_id,
99 po.date_order,99 po.date_order,
100100
=== modified file 'bin/addons/transport_mgmt/report/intl_transport_view.xml'
--- bin/addons/transport_mgmt/report/intl_transport_view.xml 2012-01-20 10:38:08 +0000
+++ bin/addons/transport_mgmt/report/intl_transport_view.xml 2019-07-15 07:19:17 +0000
@@ -14,7 +14,7 @@
14 <field name="date_order" />14 <field name="date_order" />
15 <field name="delivery_confirmed_date" />15 <field name="delivery_confirmed_date" />
16 <field name="partner_id" />16 <field name="partner_id" />
17 <field name="transport_mode" />17 <field name="transport_type" />
18 <field name="func_transport_cost" sum="Transport cost" />18 <field name="func_transport_cost" sum="Transport cost" />
19 <field name="func_currency_id" />19 <field name="func_currency_id" />
20 <field name="transport_cost" />20 <field name="transport_cost" />
@@ -33,7 +33,7 @@
33 <filter icon="terp-check" name="approved" string="Confirmed" domain="[('order_state','=','approved')]" separator="1" />33 <filter icon="terp-check" name="approved" string="Confirmed" domain="[('order_state','=','approved')]" separator="1" />
34 <filter icon="gtk-yes" name="done" string="Closed" domain="[('order_state','=','done')]" separator="1" />34 <filter icon="gtk-yes" name="done" string="Closed" domain="[('order_state','=','done')]" separator="1" />
35 <separator orientation="vertical" />35 <separator orientation="vertical" />
36 <field name="transport_mode" />36 <field name="transport_type" />
37 <field name="transport_cost" />37 <field name="transport_cost" />
38 <field name="order_id" />38 <field name="order_id" />
39 <field name="date_order" />39 <field name="date_order" />
@@ -42,7 +42,7 @@
42 </group>42 </group>
43 <newline />43 <newline />
44 <group expand="1" string="Group By..." colspan="10" col="12">44 <group expand="1" string="Group By..." colspan="10" col="12">
45 <filter string="Transport Mode" name="group_transport_mode" icon="terp-accessories-archiver" context="{'group_by': 'transport_mode'}" />45 <filter string="Transport Mode" name="group_transport_type" icon="terp-accessories-archiver" context="{'group_by': 'transport_type'}" />
46 <separator orientation="vertical" />46 <separator orientation="vertical" />
47 <filter string="Supplier" name="group_partner_id" icon="terp-personal" context="{'group_by':'partner_id'}"/>47 <filter string="Supplier" name="group_partner_id" icon="terp-personal" context="{'group_by':'partner_id'}"/>
48 </group>48 </group>
@@ -55,7 +55,7 @@
55 <field name="res_model">international.transport.cost.report</field>55 <field name="res_model">international.transport.cost.report</field>
56 <field name="view_type">form</field>56 <field name="view_type">form</field>
57 <field name="view_mode">tree</field>57 <field name="view_mode">tree</field>
58 <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>58 <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>
59 </record>59 </record>
6060
61 <menuitem action="action_intl_transport_cost_action" id="menu_intl_transport_cost_report" parent="menu_transport_cost_reports"/>61 <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