Commit 79656b59 authored by Gabriel Monnerat's avatar Gabriel Monnerat Committed by Jérome Perrin

testOrder: create default address in entities to not fail when call...

testOrder: create default address in entities to not fail when call Invoice_viewAsODT to generate invoices
parent 728df139
......@@ -292,6 +292,8 @@ class TestOrderMixin(SubcontentReindexingWrapper):
bank_account = organisation.newContent(id='bank',
portal_type='Bank Account',
title='bank%s' % organisation.getId())
organisation.newContent(id='default_address', portal_type='Address',
stress_address='rue xv', zip_code="12345")
if title is None:
organisation.edit(title='organisation%s' % organisation.getId())
sequence.edit(organisation=organisation)
......
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