Commit 728ccae9 authored by Aurel's avatar Aurel

add method to generate source_reference on document


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10067 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c3a03f10
......@@ -590,6 +590,14 @@ class TestERP5BankingMixin:
# a default date
self.date = DateTime()
def setDocumentSourceReference(self, doc):
"""
Compute and set the source reference for a document
"""
# document must have a date defined
doc.edit(start_date=DateTime())
# call script to set source reference
doc.Baobab_getUniqueReference()
def createPerson(self, id, first_name, last_name):
......@@ -667,6 +675,7 @@ class TestERP5BankingMixin:
quantity=25,title='100')
return model
def createCheckModel(self, id):
"""
Create a checkbook for the given bank account
......@@ -689,7 +698,6 @@ class TestERP5BankingMixin:
check.confirm()
return check
def createCashContainer(self, document, container_portal_type, global_dict, line_list, delivery_line_type='Cash Delivery Line'):
"""
Create a cash container
......
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