Commit 5b1de002 authored by Papa Tamsir Kane's avatar Papa Tamsir Kane Committed by Papa Tamsir Kane

erp5_curation_request: Use less deceptive variable name for curation request line

parent da4b246c
curation_record = context.curation_record_module.newContent(portal_type='Curation Record') curation_record = context.curation_record_module.newContent(portal_type='Curation Record')
curation_record_line = context.newContent(portal_type='Curation Request Line', curation_request_line = context.newContent(portal_type='Curation Request Line',
aggregate_value=curation_record, aggregate_value=curation_record,
quantity=1) quantity=1)
# set reference # set reference
curation_record_line.Object_getIncrementalReference(generator_id_group='curation_request_line_reference') curation_request_line.Object_getIncrementalReference(generator_id_group='curation_request_line_reference')
if context.getAggregateRelatedValue() is None: if context.getAggregateRelatedValue() is None:
curation_request = context.curation_request_module.newContent(portal_type='Curation Request') curation_request = context.curation_request_module.newContent(portal_type='Curation Request')
curation_record_line = curation_request.newContent(portal_type='Curation Request Line', curation_request_line = curation_request.newContent(portal_type='Curation Request Line',
aggregate_value=context) aggregate_value=context)
context.submit() context.submit()
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