Commit 7cb77458 authored by Sebastien Robin's avatar Sebastien Robin

make sure to create inventories before documents

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17677 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d0e3125d
......@@ -976,7 +976,7 @@ class TestERP5BankingMixin:
inventory_group_id = 'inventory_group_%s_%s%s' % \
(destination.getParentValue().getUid(),destination.getId(),extra_id)
if start_date is None:
start_date = DateTime()
start_date = DateTime()-1
if not hasattr(self, inventory_group_id):
inventory_group = self.cash_inventory_module.newContent(id=inventory_group_id,
portal_type='Cash Inventory Group',
......
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