Commit fe69e4e9 authored by Romain Courteaud's avatar Romain Courteaud

Builder create by default payzen related invoice.

parent efd0b05d
......@@ -62,6 +62,8 @@ invoice = context\n
price_currency = invoice.getPriceCurrency()\n
if invoice.getResource() != price_currency:\n
invoice.setResource(price_currency)\n
if invoice.getPaymentMode("") == "":\n
invoice.setPaymentModeValue(invoice.getPortalObject().portal_categories.payment_mode.payzen)\n
comment = translateString(\'Initialised by Delivery Builder.\')\n
if invoice.portal_workflow.isTransitionPossible(invoice, \'plan\'):\n
invoice.plan(comment=comment)\n
......
......@@ -341,7 +341,7 @@ class TestSlapOSSaleInvoiceBuilder(TestSlapOSSalePackingListBuilder):
invoice_kw = dict(delivery_portal_type='Sale Invoice Transaction',
simulation_state='confirmed')
category_list = ['resource/currency_module/EUR']
category_list = ['resource/currency_module/EUR', 'payment_mode/payzen']
self.checkDelivery(invoice_movement_1, invoice_1,
category_list=category_list + convertCategoryList('causality',
[delivery_1.getRelativeUrl()]), **invoice_kw)
......
249
\ No newline at end of file
250
\ 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