Commit e333c0a5 authored by Yusei Tahara's avatar Yusei Tahara

erp5_trade: Fix PackingList_getODTDataDict.py. Get source reference from...

erp5_trade: Fix PackingList_getODTDataDict.py. Get source reference from supply paths. Movements are not predicates.
parent 246f5c12
def getSourceReference(line):
category_list = line.getAcquiredCategoryList()
portal_type_list = ('Purchase Packing List Line',
'Purchase Packing List Cell',
'Sale Packing List Line',
'Sale Packing List Cell',)
portal_type_list = ('Purchase Supply Line',
'Purchase Supply Cell',
'Sale Supply Line',
'Sale Supply Cell',)
tmp_context = line.asContext(context=line, categories=category_list)
predicate_list = context.portal_domains.searchPredicateList(tmp_context, portal_type=portal_type_list)
for predicate in predicate_list:
......
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