Clear employee fields when duplicating invoices
Closes #13471 (grafted from 2ee778466a0b0fd54426404cec4088425d0b028a) --HG-- branch : 7.0
This commit is contained in:
1 parent
0976daa68d
commit
2dab614b8b
1 file changed
+2
@@ -1432,6 +1432,8 @@ class Invoice(Workflow, ModelSQL, ModelView, TaxableMixin, InvoiceReportMixin):
|
||||
default.setdefault('total_amount_cache', None)
|
||||
default.setdefault('untaxed_amount_cache', None)
|
||||
default.setdefault('tax_amount_cache', None)
|
||||
default.setdefault('validated_by')
|
||||
default.setdefault('posted_by')
|
||||
return super(Invoice, cls).copy(invoices, default=default)
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in new issue
Block a user