Commit 386d74d3 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_travel_expense: attach document for invoice

parent af589e34
......@@ -27,6 +27,10 @@ transaction = portal.accounting_module.newContent(
causality=context.getRelativeUrl(),
)
document = context.getFollowUpRelatedValue(portal_type=['PDF', 'Image'])
if document:
document.setFollowUpValueList(document.getFollowUpValueList() + [transaction])
transaction.newContent(
portal_type='Purchase Invoice Transaction Line',
destination=mission_account,
......
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