Commit 9b5f7b11 authored by Jérome Perrin's avatar Jérome Perrin

Do not copy id from original movement, this make path longer and is no longer necessary


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3706 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f61ee11d
...@@ -34,7 +34,7 @@ from zLOG import LOG ...@@ -34,7 +34,7 @@ from zLOG import LOG
class InvoiceRule(Rule): class InvoiceRule(Rule):
""" """
Invoice Rule object make sure an Invoice in the similation Invoice Rule object make sure an Invoice in the simulation
is consistent with the real invoice is consistent with the real invoice
WARNING: what to do with movement split ? WARNING: what to do with movement split ?
...@@ -120,10 +120,10 @@ class InvoiceRule(Rule): ...@@ -120,10 +120,10 @@ class InvoiceRule(Rule):
if c.getUid() not in existing_uid_list: if c.getUid() not in existing_uid_list:
new_id = invoice_line_object.getId() + '_' + c.getId() new_id = invoice_line_object.getId() + '_' + c.getId()
#LOG('Create Cell', 0, str(new_id)) #LOG('Create Cell', 0, str(new_id))
applied_rule.newContent(id=new_id applied_rule.newContent(
, portal_type = invoice_line_type portal_type = invoice_line_type
, delivery_value = c , delivery_value = c
, deliverable = 1 , deliverable = 1
) )
#LOG('After Create Cell', 0, str(new_id)) #LOG('After Create Cell', 0, str(new_id))
else: else:
...@@ -131,10 +131,9 @@ class InvoiceRule(Rule): ...@@ -131,10 +131,9 @@ class InvoiceRule(Rule):
new_id = invoice_line_object.getId() new_id = invoice_line_object.getId()
#LOG('Create Line', 0, str(new_id)) #LOG('Create Line', 0, str(new_id))
applied_rule.newContent( applied_rule.newContent(
id = new_id portal_type = invoice_line_type
, portal_type = invoice_line_type , delivery_value = invoice_line_object
, delivery_value = invoice_line_object , deliverable = 1
, deliverable = 1
) )
#LOG('After Create Line', 0, str(new_id)) #LOG('After Create Line', 0, str(new_id))
# Source, Destination, Quantity, Date, etc. are # Source, Destination, Quantity, Date, etc. are
......
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