Reset open_date when copying for issue907
This commit is contained in:
1 parent
995f921a52
commit
8dec0808b3
1 file changed
+10
+10
@@ -38,4 +38,14 @@ class Invoice(ModelWorkflow, ModelSQL, ModelView):
|
||||
}, context=context)
|
||||
return res
|
||||
|
||||
def copy(self, cursor, user, ids, default=None, context=None):
|
||||
if default is None:
|
||||
default = {}
|
||||
|
||||
default = default.copy()
|
||||
default['open_date'] = False
|
||||
|
||||
return super(Invoice, self).copy(cursor, user, ids, default=default,
|
||||
context=context)
|
||||
|
||||
Invoice()
|
||||
Reference in new issue
Block a user