Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1841)

Unified Diff: shipment.py

Issue 141058: Add missing planned date when creating inventory and outgoin moves (Closed)
Patch Set: Don't allow all states if stock_date_end is max datetime Created 14 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « product.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shipment.py
===================================================================
--- a/shipment.py
+++ b/shipment.py
@@ -312,6 +312,9 @@
res['to_location'] = incoming_move.shipment_in.warehouse.\
storage_location.id
res['state'] = 'draft'
+ # Product will be considered in stock only when the inventory
+ # move will be made:
+ res['planned_date'] = False
res['company'] = incoming_move.company.id
return res
@@ -797,6 +800,7 @@
'quantity': out_quantity,
'shipment_out': shipment.id,
'state': 'draft',
+ 'planned_date': shipment.planned_date,
'company': move.company.id,
'currency': move.company.currency.id,
'unit_price': unit_price,
@@ -869,6 +873,7 @@
'uom': move.uom.id,
'quantity': move.quantity,
'shipment_out': shipment.id,
+ 'planned_date': move.planned_date,
'state': 'draft',
'company': move.company.id,
}, context=context)
@@ -1212,6 +1217,9 @@
res['to_location'] = incoming_move.shipment_out_return.warehouse.\
storage_location.id
res['state'] = 'draft'
+ # Product will be considered in stock only when the inventory
+ # move will be made:
+ res['planned_date'] = False
res['company'] = incoming_move.company.id
return res
« no previous file with comments | « product.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b