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
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
WARNING: what to do with movement split ?
......@@ -120,8 +120,8 @@ class InvoiceRule(Rule):
if c.getUid() not in existing_uid_list:
new_id = invoice_line_object.getId() + '_' + c.getId()
#LOG('Create Cell', 0, str(new_id))
applied_rule.newContent(id=new_id
, portal_type = invoice_line_type
applied_rule.newContent(
portal_type = invoice_line_type
, delivery_value = c
, deliverable = 1
)
......@@ -131,8 +131,7 @@ class InvoiceRule(Rule):
new_id = invoice_line_object.getId()
#LOG('Create Line', 0, str(new_id))
applied_rule.newContent(
id = new_id
, portal_type = invoice_line_type
portal_type = invoice_line_type
, delivery_value = invoice_line_object
, deliverable = 1
)
......
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