Commit c3b81961 authored by Jérome Perrin's avatar Jérome Perrin

'type_name' parameter is portal_type= for newContent


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17034 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 18086cee
......@@ -106,14 +106,14 @@ class PaymentRule(Rule):
bank_movement = applied_rule[bank_id]
else:
bank_movement = applied_rule.newContent(
type_name = payment_line_type,
portal_type=payment_line_type,
id = bank_id)
receivable_id = 'receivable'
if receivable_id in applied_rule.objectIds():
receivable_movement = applied_rule[receivable_id]
else:
receivable_movement = applied_rule.newContent(
type_name = payment_line_type,
portal_type=payment_line_type,
id = receivable_id)
# TODO: specify this using a rule in portal_rules
......
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