Merge lp:~unifield-team/unifield-server/uf5-little-fixes into lp:unifield-server

Proposed by jftempo
Status: Rejected
Rejected by: jftempo
Proposed branch: lp:~unifield-team/unifield-server/uf5-little-fixes
Merge into: lp:unifield-server
Diff against target: 162 lines (+41/-12)
7 files modified
bin/addons/documents_done/documents_done.py (+1/-1)
bin/addons/msf_outgoing/msf_outgoing_view.xml (+1/-1)
bin/addons/msf_printed_documents/report/report_reception.py (+30/-7)
bin/addons/msf_supply_doc_export/msf_supply_doc_export.py (+6/-0)
bin/addons/stock/stock_view.xml (+1/-1)
bin/addons/stock_override/report/report_stock_move.py (+1/-1)
bin/addons/stock_override/stock_view.xml (+1/-1)
To merge this branch: bzr merge lp:~unifield-team/unifield-server/uf5-little-fixes
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+320361@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Jeff Allen (jr.allen) :
4287. By Quentin THEURET @Amaris

US-2050 [FIX] Don't display cancel button on done inventory

4288. By Quentin THEURET @Amaris

US-2053 [FIX] Fix issue with reception report if there is no lines in INcoming shipment

Unmerged revisions

4288. By Quentin THEURET @Amaris

US-2053 [FIX] Fix issue with reception report if there is no lines in INcoming shipment

4287. By Quentin THEURET @Amaris

US-2050 [FIX] Don't display cancel button on done inventory

4286. By Quentin THEURET @Amaris

US-2529 [FIX] Split Purchase orders were displayed in Documents In progress

4285. By Quentin THEURET @Amaris

US-2053 [FIX] Display the min. Actual Receipt Date of all lines on the Reception report header

4284. By Quentin THEURET @Amaris

US-2050 [FIX] Remove the cancel button on the stock inventory when the inventory is done

4283. By Quentin THEURET @Amaris

US-1972 [FIX] Be able to search Closed Shipment List by product

4282. By Quentin THEURET @Amaris

US-2211 [FIX] Include Inventory / Production / Procurement locations into the export moves analysis report

4281. By Quentin THEURET @Amaris

US-2415 [FIX] In case of IN from scratch, display quantities in PDF report

4280. By Quentin THEURET @Amaris

US-2275 [FIX] Display the export validated PO in English only

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/addons/documents_done/documents_done.py'
2--- bin/addons/documents_done/documents_done.py 2014-10-10 12:00:01 +0000
3+++ bin/addons/documents_done/documents_done.py 2017-03-27 11:41:27 +0000
4@@ -470,7 +470,7 @@
5 FROM
6 purchase_order po
7 WHERE
8- state NOT IN ('draft', 'done', 'cancel')
9+ state NOT IN ('draft', 'done', 'cancel', 'split')
10 AND
11 rfq_ok = False)
12 UNION
13
14=== modified file 'bin/addons/msf_outgoing/msf_outgoing_view.xml'
15--- bin/addons/msf_outgoing/msf_outgoing_view.xml 2017-03-10 15:44:31 +0000
16+++ bin/addons/msf_outgoing/msf_outgoing_view.xml 2017-03-27 11:41:27 +0000
17@@ -1472,7 +1472,7 @@
18 <field name="type">search</field>
19 <field name="arch" type="xml">
20 <search string="Shipment">
21- <field name="name"/>
22+ <field name="product_id"/>
23 <field name="picking_id" string="Pack" domain="[('already_shipped','=',True), ('shipment_id','!=',False)]"/>
24 <field name="pick_shipment_id" string="Shipment" />
25 <field name="origin"/>
26
27=== modified file 'bin/addons/msf_printed_documents/report/report_reception.py'
28--- bin/addons/msf_printed_documents/report/report_reception.py 2016-03-08 15:32:40 +0000
29+++ bin/addons/msf_printed_documents/report/report_reception.py 2017-03-27 11:41:27 +0000
30@@ -93,14 +93,14 @@
31
32 def getQtyPO(self,line):
33 # line amount from the PO, always the same on all INs for a given PO
34- val = line.purchase_line_id.product_qty if line.purchase_line_id else 0
35+ val = line.purchase_line_id.product_qty if line.purchase_line_id else line.product_qty
36 return "{0:.2f}".format(val)
37
38 def getQtyBO(self,line,o):
39 # Back Order amount = PO amount - all receipts
40
41 # get PO qty
42- qtyPO = line.purchase_line_id.product_qty if line.purchase_line_id else 0
43+ qtyPO = line.purchase_line_id.product_qty if line.purchase_line_id else line.product_qty
44 # get received qty (current and previous INs)
45 cr, uid = self.cr, self.uid
46 val = 0.00
47@@ -147,16 +147,34 @@
48 return time.strftime('%d/%m/%Y', time.strptime(o.min_date,'%Y-%m-%d %H:%M:%S'))
49
50 def getPartnerCity(self,o):
51- return o.purchase_id and o.purchase_id.partner_address_id and o.purchase_id.partner_address_id.city or False
52+ if o.purchase_id:
53+ return o.purchase_id and o.purchase_id.partner_address_id and o.purchase_id.partner_address_id.city or False
54+ elif o.partner_id and len(o.partner_id.address):
55+ return o.partner_id.address[0].city
56+ else:
57+ return False
58
59 def getPartnerPhone(self,o):
60- return o.purchase_id and o.purchase_id.partner_address_id and o.purchase_id.partner_address_id.phone or False
61+ if o.purchase_id:
62+ return o.purchase_id and o.purchase_id.partner_address_id and o.purchase_id.partner_address_id.phone or False
63+ elif o.partner_id and len(o.partner_id.address):
64+ return o.partner_id.address[0].phone
65+ else:
66+ return False
67
68 def getPartnerName(self,o):
69- return o.purchase_id and o.purchase_id.partner_id and o.purchase_id.partner_id.name or False
70+ if o.purchase_id:
71+ return o.purchase_id and o.purchase_id.partner_id and o.purchase_id.partner_id.name or False
72+ elif o.partner_id:
73+ return o.partner_id.name
74+ else:
75+ return False
76
77 def getPartnerAddress(self,o):
78- temp = o.purchase_id and o.purchase_id.partner_address_id.name_get()
79+ if o.purchase_id:
80+ temp = o.purchase_id and o.purchase_id.partner_address_id.name_get()
81+ elif o.partner_id and len(o.partner_id.address):
82+ temp = o.partner_id.address[0].name_get()
83 if temp:
84 return temp[0][1]
85
86@@ -205,7 +223,12 @@
87 if o.state == 'assigned':
88 actual_receipt_date = ''
89 else:
90- actual_receipt_date = time.strftime('%d/%m/%Y', time.strptime(o.date,'%Y-%m-%d %H:%M:%S'))
91+ ard = time.strptime(o.date, '%Y-%m-%d %H:%M:%S')
92+ for move in o.move_lines:
93+ mard = time.strptime(move.date, '%Y-%m-%d %H:%M:%S')
94+ if mard < ard:
95+ ard = mard
96+ actual_receipt_date = time.strftime('%d/%m/%Y', ard)
97 return actual_receipt_date
98
99 def get_lines(self, o):
100
101=== modified file 'bin/addons/msf_supply_doc_export/msf_supply_doc_export.py'
102--- bin/addons/msf_supply_doc_export/msf_supply_doc_export.py 2017-02-17 15:16:45 +0000
103+++ bin/addons/msf_supply_doc_export/msf_supply_doc_export.py 2017-03-27 11:41:27 +0000
104@@ -122,6 +122,9 @@
105 # VALIDATED PURCHASE ORDER (Excel XML)
106 class validated_purchase_order_report_xls(report_sxw.rml_parse):
107 def __init__(self, cr, uid, name, context):
108+ if context is None:
109+ context = {}
110+ context['lang'] = 'en_MF'
111 super(validated_purchase_order_report_xls, self).__init__(cr, uid, name, context=context)
112 self.localcontext.update({
113 'time': time,
114@@ -146,6 +149,9 @@
115 # VALIDATE PURCHASE ORDER (Pure XML)
116 class parser_validated_purchase_order_report_xml(report_sxw.rml_parse):
117 def __init__(self, cr, uid, name, context):
118+ if context is None:
119+ context = {}
120+ context['lang'] = 'en_MF'
121 super(parser_validated_purchase_order_report_xml, self).__init__(cr, uid, name, context=context)
122 self.localcontext.update({
123 'time': time,
124
125=== modified file 'bin/addons/stock/stock_view.xml'
126--- bin/addons/stock/stock_view.xml 2016-11-25 14:15:34 +0000
127+++ bin/addons/stock/stock_view.xml 2017-03-27 11:41:27 +0000
128@@ -171,7 +171,7 @@
129 <field name="state"/>
130 </group>
131 <group col="3" colspan="2">
132- <button name="action_cancel_inventary" states="draft,confirm,done" string="Cancel Inventory" type="object" icon="gtk-cancel"/>
133+ <button name="action_cancel_inventary" states="draft,confirm" string="Cancel Inventory" type="object" icon="gtk-cancel"/>
134 <button name="action_confirm" states="draft" string="Confirm Inventory" type="object" icon="gtk-apply"/>
135 <button name="action_done" states="confirm" string="Validate Inventory" type="object" icon="gtk-jump-to"/>
136 <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" icon="gtk-convert"/>
137
138=== modified file 'bin/addons/stock_override/report/report_stock_move.py'
139--- bin/addons/stock_override/report/report_stock_move.py 2016-08-18 08:32:03 +0000
140+++ bin/addons/stock_override/report/report_stock_move.py 2017-03-27 11:41:27 +0000
141@@ -357,7 +357,7 @@
142 if isinstance(ids, (int, long)):
143 ids = [ids]
144
145- loc_usage = ['supplier', 'customer', 'internal']
146+ loc_usage = ['supplier', 'customer', 'internal', 'inventory', 'procurement', 'production']
147 for report in self.browse(cr, uid, ids, context=context):
148 domain = [
149 ('location_id.usage', 'in', loc_usage),
150
151=== modified file 'bin/addons/stock_override/stock_view.xml'
152--- bin/addons/stock_override/stock_view.xml 2017-03-10 15:44:31 +0000
153+++ bin/addons/stock_override/stock_view.xml 2017-03-27 11:41:27 +0000
154@@ -1166,7 +1166,7 @@
155 <field name="state"/>
156 </group>
157 <group col="3" colspan="2">
158- <button name="action_cancel_inventary" states="draft,confirm,done" string="Cancel Inventory" type="object" icon="gtk-cancel"/>
159+ <button name="action_cancel_inventary" states="draft,confirm" string="Cancel Inventory" type="object" icon="gtk-cancel"/>
160 <button name="action_confirm" states="draft" string="Validate Inventory" type="object" icon="gtk-apply"/>
161 <button name="action_done" states="confirm" string="Confirm Inventory" type="object" icon="gtk-jump-to"/>
162 <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" icon="gtk-convert"/>

Subscribers

People subscribed via source and target branches

to all changes: