Commit c1388c25 authored by Łukasz Nowak's avatar Łukasz Nowak

Drop not needed condition.

Builder is used to create one and only one invoice.
parent abb1c9e7
......@@ -59,13 +59,7 @@ if related_simulation_movement_path_list is None:\n
raise RuntimeError, \'related_simulation_movement_path_list is missing. Update ERP5 Product.\'\n
\n
invoice = context\n
\n
# if installed erp5_simplified_invoicing, set resource from price currency\n
#if not invoice.Invoice_isAdvanced():\n
if 1:\n
if not invoice.getResource():\n
invoice.setResource(invoice.getPriceCurrency())\n
\n
invoice.setResource(invoice.getPriceCurrency())\n
comment = translateString(\'Initialised by Delivery Builder.\')\n
invoice.plan(comment=comment)\n
invoice.confirm(comment=comment)\n
......
114
\ No newline at end of file
115
\ No newline at end of file
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