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
=== modified file 'bin/addons/documents_done/documents_done.py'
--- bin/addons/documents_done/documents_done.py 2014-10-10 12:00:01 +0000
+++ bin/addons/documents_done/documents_done.py 2017-03-27 11:41:27 +0000
@@ -470,7 +470,7 @@
470 FROM470 FROM
471 purchase_order po471 purchase_order po
472 WHERE472 WHERE
473 state NOT IN ('draft', 'done', 'cancel')473 state NOT IN ('draft', 'done', 'cancel', 'split')
474 AND474 AND
475 rfq_ok = False)475 rfq_ok = False)
476 UNION476 UNION
477477
=== modified file 'bin/addons/msf_outgoing/msf_outgoing_view.xml'
--- bin/addons/msf_outgoing/msf_outgoing_view.xml 2017-03-10 15:44:31 +0000
+++ bin/addons/msf_outgoing/msf_outgoing_view.xml 2017-03-27 11:41:27 +0000
@@ -1472,7 +1472,7 @@
1472 <field name="type">search</field>1472 <field name="type">search</field>
1473 <field name="arch" type="xml">1473 <field name="arch" type="xml">
1474 <search string="Shipment">1474 <search string="Shipment">
1475 <field name="name"/>1475 <field name="product_id"/>
1476 <field name="picking_id" string="Pack" domain="[('already_shipped','=',True), ('shipment_id','!=',False)]"/>1476 <field name="picking_id" string="Pack" domain="[('already_shipped','=',True), ('shipment_id','!=',False)]"/>
1477 <field name="pick_shipment_id" string="Shipment" />1477 <field name="pick_shipment_id" string="Shipment" />
1478 <field name="origin"/>1478 <field name="origin"/>
14791479
=== modified file 'bin/addons/msf_printed_documents/report/report_reception.py'
--- bin/addons/msf_printed_documents/report/report_reception.py 2016-03-08 15:32:40 +0000
+++ bin/addons/msf_printed_documents/report/report_reception.py 2017-03-27 11:41:27 +0000
@@ -93,14 +93,14 @@
9393
94 def getQtyPO(self,line):94 def getQtyPO(self,line):
95 # line amount from the PO, always the same on all INs for a given PO95 # line amount from the PO, always the same on all INs for a given PO
96 val = line.purchase_line_id.product_qty if line.purchase_line_id else 096 val = line.purchase_line_id.product_qty if line.purchase_line_id else line.product_qty
97 return "{0:.2f}".format(val)97 return "{0:.2f}".format(val)
9898
99 def getQtyBO(self,line,o):99 def getQtyBO(self,line,o):
100 # Back Order amount = PO amount - all receipts100 # Back Order amount = PO amount - all receipts
101101
102 # get PO qty102 # get PO qty
103 qtyPO = line.purchase_line_id.product_qty if line.purchase_line_id else 0103 qtyPO = line.purchase_line_id.product_qty if line.purchase_line_id else line.product_qty
104 # get received qty (current and previous INs)104 # get received qty (current and previous INs)
105 cr, uid = self.cr, self.uid105 cr, uid = self.cr, self.uid
106 val = 0.00106 val = 0.00
@@ -147,16 +147,34 @@
147 return time.strftime('%d/%m/%Y', time.strptime(o.min_date,'%Y-%m-%d %H:%M:%S'))147 return time.strftime('%d/%m/%Y', time.strptime(o.min_date,'%Y-%m-%d %H:%M:%S'))
148148
149 def getPartnerCity(self,o):149 def getPartnerCity(self,o):
150 return o.purchase_id and o.purchase_id.partner_address_id and o.purchase_id.partner_address_id.city or False150 if o.purchase_id:
151 return o.purchase_id and o.purchase_id.partner_address_id and o.purchase_id.partner_address_id.city or False
152 elif o.partner_id and len(o.partner_id.address):
153 return o.partner_id.address[0].city
154 else:
155 return False
151156
152 def getPartnerPhone(self,o):157 def getPartnerPhone(self,o):
153 return o.purchase_id and o.purchase_id.partner_address_id and o.purchase_id.partner_address_id.phone or False158 if o.purchase_id:
159 return o.purchase_id and o.purchase_id.partner_address_id and o.purchase_id.partner_address_id.phone or False
160 elif o.partner_id and len(o.partner_id.address):
161 return o.partner_id.address[0].phone
162 else:
163 return False
154164
155 def getPartnerName(self,o):165 def getPartnerName(self,o):
156 return o.purchase_id and o.purchase_id.partner_id and o.purchase_id.partner_id.name or False166 if o.purchase_id:
167 return o.purchase_id and o.purchase_id.partner_id and o.purchase_id.partner_id.name or False
168 elif o.partner_id:
169 return o.partner_id.name
170 else:
171 return False
157172
158 def getPartnerAddress(self,o):173 def getPartnerAddress(self,o):
159 temp = o.purchase_id and o.purchase_id.partner_address_id.name_get()174 if o.purchase_id:
175 temp = o.purchase_id and o.purchase_id.partner_address_id.name_get()
176 elif o.partner_id and len(o.partner_id.address):
177 temp = o.partner_id.address[0].name_get()
160 if temp:178 if temp:
161 return temp[0][1]179 return temp[0][1]
162180
@@ -205,7 +223,12 @@
205 if o.state == 'assigned':223 if o.state == 'assigned':
206 actual_receipt_date = ''224 actual_receipt_date = ''
207 else:225 else:
208 actual_receipt_date = time.strftime('%d/%m/%Y', time.strptime(o.date,'%Y-%m-%d %H:%M:%S'))226 ard = time.strptime(o.date, '%Y-%m-%d %H:%M:%S')
227 for move in o.move_lines:
228 mard = time.strptime(move.date, '%Y-%m-%d %H:%M:%S')
229 if mard < ard:
230 ard = mard
231 actual_receipt_date = time.strftime('%d/%m/%Y', ard)
209 return actual_receipt_date232 return actual_receipt_date
210233
211 def get_lines(self, o):234 def get_lines(self, o):
212235
=== modified file 'bin/addons/msf_supply_doc_export/msf_supply_doc_export.py'
--- bin/addons/msf_supply_doc_export/msf_supply_doc_export.py 2017-02-17 15:16:45 +0000
+++ bin/addons/msf_supply_doc_export/msf_supply_doc_export.py 2017-03-27 11:41:27 +0000
@@ -122,6 +122,9 @@
122# VALIDATED PURCHASE ORDER (Excel XML)122# VALIDATED PURCHASE ORDER (Excel XML)
123class validated_purchase_order_report_xls(report_sxw.rml_parse):123class validated_purchase_order_report_xls(report_sxw.rml_parse):
124 def __init__(self, cr, uid, name, context):124 def __init__(self, cr, uid, name, context):
125 if context is None:
126 context = {}
127 context['lang'] = 'en_MF'
125 super(validated_purchase_order_report_xls, self).__init__(cr, uid, name, context=context)128 super(validated_purchase_order_report_xls, self).__init__(cr, uid, name, context=context)
126 self.localcontext.update({129 self.localcontext.update({
127 'time': time,130 'time': time,
@@ -146,6 +149,9 @@
146# VALIDATE PURCHASE ORDER (Pure XML)149# VALIDATE PURCHASE ORDER (Pure XML)
147class parser_validated_purchase_order_report_xml(report_sxw.rml_parse):150class parser_validated_purchase_order_report_xml(report_sxw.rml_parse):
148 def __init__(self, cr, uid, name, context):151 def __init__(self, cr, uid, name, context):
152 if context is None:
153 context = {}
154 context['lang'] = 'en_MF'
149 super(parser_validated_purchase_order_report_xml, self).__init__(cr, uid, name, context=context)155 super(parser_validated_purchase_order_report_xml, self).__init__(cr, uid, name, context=context)
150 self.localcontext.update({156 self.localcontext.update({
151 'time': time,157 'time': time,
152158
=== modified file 'bin/addons/stock/stock_view.xml'
--- bin/addons/stock/stock_view.xml 2016-11-25 14:15:34 +0000
+++ bin/addons/stock/stock_view.xml 2017-03-27 11:41:27 +0000
@@ -171,7 +171,7 @@
171 <field name="state"/>171 <field name="state"/>
172 </group>172 </group>
173 <group col="3" colspan="2">173 <group col="3" colspan="2">
174 <button name="action_cancel_inventary" states="draft,confirm,done" string="Cancel Inventory" type="object" icon="gtk-cancel"/>174 <button name="action_cancel_inventary" states="draft,confirm" string="Cancel Inventory" type="object" icon="gtk-cancel"/>
175 <button name="action_confirm" states="draft" string="Confirm Inventory" type="object" icon="gtk-apply"/>175 <button name="action_confirm" states="draft" string="Confirm Inventory" type="object" icon="gtk-apply"/>
176 <button name="action_done" states="confirm" string="Validate Inventory" type="object" icon="gtk-jump-to"/>176 <button name="action_done" states="confirm" string="Validate Inventory" type="object" icon="gtk-jump-to"/>
177 <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" icon="gtk-convert"/>177 <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" icon="gtk-convert"/>
178178
=== modified file 'bin/addons/stock_override/report/report_stock_move.py'
--- bin/addons/stock_override/report/report_stock_move.py 2016-08-18 08:32:03 +0000
+++ bin/addons/stock_override/report/report_stock_move.py 2017-03-27 11:41:27 +0000
@@ -357,7 +357,7 @@
357 if isinstance(ids, (int, long)):357 if isinstance(ids, (int, long)):
358 ids = [ids]358 ids = [ids]
359359
360 loc_usage = ['supplier', 'customer', 'internal']360 loc_usage = ['supplier', 'customer', 'internal', 'inventory', 'procurement', 'production']
361 for report in self.browse(cr, uid, ids, context=context):361 for report in self.browse(cr, uid, ids, context=context):
362 domain = [362 domain = [
363 ('location_id.usage', 'in', loc_usage),363 ('location_id.usage', 'in', loc_usage),
364364
=== modified file 'bin/addons/stock_override/stock_view.xml'
--- bin/addons/stock_override/stock_view.xml 2017-03-10 15:44:31 +0000
+++ bin/addons/stock_override/stock_view.xml 2017-03-27 11:41:27 +0000
@@ -1166,7 +1166,7 @@
1166 <field name="state"/>1166 <field name="state"/>
1167 </group>1167 </group>
1168 <group col="3" colspan="2">1168 <group col="3" colspan="2">
1169 <button name="action_cancel_inventary" states="draft,confirm,done" string="Cancel Inventory" type="object" icon="gtk-cancel"/>1169 <button name="action_cancel_inventary" states="draft,confirm" string="Cancel Inventory" type="object" icon="gtk-cancel"/>
1170 <button name="action_confirm" states="draft" string="Validate Inventory" type="object" icon="gtk-apply"/>1170 <button name="action_confirm" states="draft" string="Validate Inventory" type="object" icon="gtk-apply"/>
1171 <button name="action_done" states="confirm" string="Confirm Inventory" type="object" icon="gtk-jump-to"/>1171 <button name="action_done" states="confirm" string="Confirm Inventory" type="object" icon="gtk-jump-to"/>
1172 <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" icon="gtk-convert"/>1172 <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: