Commit 923481ff authored by Sebastien Robin's avatar Sebastien Robin

do not define a new date if a date is already defined

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14030 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c87a5f4c
...@@ -693,6 +693,7 @@ class TestERP5BankingMixin: ...@@ -693,6 +693,7 @@ class TestERP5BankingMixin:
Compute and set the source reference for a document Compute and set the source reference for a document
""" """
# document must have a date defined # document must have a date defined
if doc.getStartDate() is None:
doc.edit(start_date=DateTime()) doc.edit(start_date=DateTime())
# call script to set source reference # call script to set source reference
doc.Baobab_getUniqueReference() doc.Baobab_getUniqueReference()
......
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