Commit 1c553641 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Xiaowu Zhang

erp5_travel_expense: Have Projects availables in Expense, define group on...

erp5_travel_expense: Have Projects availables in Expense, define group on images and set source_section
parent a86f4ffe
......@@ -82,6 +82,7 @@ if photo_data:
filename="tmp.png",
follow_up=ticket.getRelativeUrl(),
publication_section=publication_section.getRelativeUrl(),
group=ticket.getDestinationDecisionValue().getGroup()
)
image.share()
......
......@@ -18,8 +18,8 @@ transaction = portal.accounting_module.newContent(
portal_type="Purchase Invoice Transaction",
title="""Frais %s""" % (context.getReference()),
source_section=context.getDestinationDecision(),
source_project=context.getSourceProject(),
destination_section=context.getDestinationSection(),
destination_project=context.getSourceProject(),
destination_section=context.getSourceSection(),
resource=context.getPriceCurrency(),
created_by_builder=1, # XXX this prevent init script from creating lines.
start_date=context.getStartDate(),
......
......@@ -92,6 +92,10 @@
<string>Travel Request</string>
<string>Travel Request</string>
</tuple>
<tuple>
<string>Project</string>
<string>Project</string>
</tuple>
</list>
</value>
</item>
......
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