Commit 21abbe35 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Merge remote-tracking branch 'perso/manufacturing-all' into manufacturing-all

parents f643d908 0fdf463b
......@@ -291,7 +291,8 @@ class BuilderMixin(XMLObject, Amount, Predicate):
**kw):
from Products.ERP5Type.Document import newTempMovement
portal = self.getPortalObject()
from_date = DateTime().earliestTime()
if not from_date:
from_date = DateTime().earliestTime()
# Initiate Conditions taken from Yusei T. Original Script
# XXX to be cleaned
......@@ -396,6 +397,10 @@ class BuilderMixin(XMLObject, Amount, Predicate):
start_date=start_date,
stop_date=stop_date,
reference=resource_value.getReference(),
source_reference=supply.getSourceReference(),
destination_reference=supply.getDestinationReference(),
source_trade=supply.getSourceTrade(),
destination_trade=supply.getDestinationTrade(),
)
return movement
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment