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