Commit 04b2265f authored by Gabriel Monnerat's avatar Gabriel Monnerat

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 4581ab85
...@@ -292,6 +292,8 @@ class TestOrderMixin(SubcontentReindexingWrapper): ...@@ -292,6 +292,8 @@ class TestOrderMixin(SubcontentReindexingWrapper):
bank_account = organisation.newContent(id='bank', bank_account = organisation.newContent(id='bank',
portal_type='Bank Account', portal_type='Bank Account',
title='bank%s' % organisation.getId()) title='bank%s' % organisation.getId())
organisation.setDefaultAddressStreetAddress('rue xv')
organisation.setDefaultAddressZipCode('12345')
if title is None: if title is None:
organisation.edit(title='organisation%s' % organisation.getId()) organisation.edit(title='organisation%s' % organisation.getId())
sequence.edit(organisation=organisation) 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