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

Proposed by jftempo
Status: Merged
Merged at revision: 5599
Proposed branch: lp:~dorian-kemps/unifield-server/US-6537
Merge into: lp:unifield-server
Diff against target: 80 lines (+14/-2)
4 files modified
bin/addons/msf_profile/i18n/fr_MF.po (+4/-0)
bin/addons/purchase/purchase_workflow.py (+1/-0)
bin/addons/stock/report/stock_reception_report.py (+5/-2)
bin/addons/stock/report/stock_reception_report_xls.mako (+4/-0)
To merge this branch: bzr merge lp:~dorian-kemps/unifield-server/US-6537
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+378105@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_profile/i18n/fr_MF.po'
2--- bin/addons/msf_profile/i18n/fr_MF.po 2019-11-21 16:33:04 +0000
3+++ bin/addons/msf_profile/i18n/fr_MF.po 2020-01-27 10:41:38 +0000
4@@ -106586,3 +106586,7 @@
5 msgid "Funding Pool not found."
6 msgstr "Funding Pool non trouvé."
7
8+#. module: stock
9+#: report:addons/stock/report/stock_reception_report_xls.mako:255
10+msgid "INT Ref."
11+msgstr "Réf. du INT"
12
13=== modified file 'bin/addons/purchase/purchase_workflow.py'
14--- bin/addons/purchase/purchase_workflow.py 2019-11-07 13:30:08 +0000
15+++ bin/addons/purchase/purchase_workflow.py 2020-01-27 10:41:38 +0000
16@@ -177,6 +177,7 @@
17 'type': 'make_to_order',
18 'is_line_split': pol.is_line_split,
19 'original_line_id': pol.original_line_id.linked_sol_id.id if pol.original_line_id else False,
20+ 'procurement_request': sale_order.procurement_request,
21 }
22
23 # update modification comment if it is set
24
25=== modified file 'bin/addons/stock/report/stock_reception_report.py'
26--- bin/addons/stock/report/stock_reception_report.py 2019-10-30 14:14:52 +0000
27+++ bin/addons/stock/report/stock_reception_report.py 2020-01-27 10:41:38 +0000
28@@ -30,7 +30,9 @@
29 pick = move.picking_id
30 pol = move.purchase_line_id
31 po = pol.order_id
32- sol = move.purchase_line_id.sale_order_line_id
33+ sol = move.purchase_line_id.linked_sol_id
34+ int_name = move.move_dest_id and move.move_dest_id.picking_id.type == 'internal' and \
35+ move.move_dest_id.picking_id.subtype == 'standard' and move.move_dest_id.picking_id.name or ''
36 func_price_unit = move.price_unit
37 if move.company_id.currency_id.id != po.pricelist_id.currency_id.id:
38 self.localcontext['currency_date'] = move.date
39@@ -58,11 +60,12 @@
40 'total_cost': move.product_qty * move.price_unit,
41 'total_cost_func': move.product_qty * func_price_unit,
42 'dest_loc': move.location_dest_id and move.location_dest_id.name or '',
43- 'final_dest_loc': sol and (sol.procurement_request and sol.order_id.location_requestor_id.name or sol.order_id.partner_id.name)
44+ 'final_dest_loc': sol and (sol.order_id.procurement_request and sol.order_id.location_requestor_id.name or sol.order_id.partner_id.name)
45 or move.location_dest_id and move.location_dest_id.name or '',
46 'exp_receipt_date': move.date_expected,
47 'actual_receipt_date': move.date,
48 'phys_recep_date': pick.physical_reception_date,
49+ 'int_name': int_name,
50 })
51
52 return res
53
54=== modified file 'bin/addons/stock/report/stock_reception_report_xls.mako'
55--- bin/addons/stock/report/stock_reception_report_xls.mako 2019-06-27 13:24:11 +0000
56+++ bin/addons/stock/report/stock_reception_report_xls.mako 2020-01-27 10:41:38 +0000
57@@ -155,6 +155,8 @@
58 <Column ss:AutoFitWidth="1" ss:Width="60.0" />
59 ## Physical Reception Date
60 <Column ss:AutoFitWidth="1" ss:Width="60.0" />
61+ ## INT Ref.
62+ <Column ss:AutoFitWidth="1" ss:Width="80.0" />
63
64 ## WORKSHEET HEADER
65 <Row>
66@@ -250,6 +252,7 @@
67 _('Expected Receipt Date'),
68 _('Actual Receipt Date'),
69 _('Physical Reception Date'),
70+ _('INT Ref.'),
71 ]
72 %>
73 <Row>
74@@ -306,6 +309,7 @@
75 % else:
76 <Cell ss:StyleID="line_center"><Data ss:Type="String"></Data></Cell>
77 % endif
78+ <Cell ss:StyleID="line_center"><Data ss:Type="String">${move['int_name']|x}</Data></Cell>
79 </Row>
80 % endfor
81

Subscribers

People subscribed via source and target branches