Commit e9e5eef4 authored by Kevin Deldycke's avatar Kevin Deldycke

Reset reference property on paste to let the workflow set the right reference value.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6317 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 141a5bf1
...@@ -87,3 +87,8 @@ class Invoice(AccountingTransaction): ...@@ -87,3 +87,8 @@ class Invoice(AccountingTransaction):
raise NotImplemented raise NotImplemented
return self.Invoice_zGetTotalNetPrice() return self.Invoice_zGetTotalNetPrice()
def manage_afterClone(self, item):
# Reset reference on paste
if self.getReference != None:
self.setReference(None)
AccountingTransaction.manage_afterClone(self, item)
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