Fix bug test.
This commit is contained in:
parent
3d01d6a8ef
commit
2ff4828cad
|
@ -101,3 +101,9 @@ class Invoice(metaclass=PoolMeta):
|
|||
# Remove links to lines which actually do not pay the invoice
|
||||
if to_save:
|
||||
cls._clean_payments(to_save)
|
||||
|
||||
@classmethod
|
||||
def check_modify(cls, invoices):
|
||||
if Transaction().context.get('invoice_posted2draft', False):
|
||||
return
|
||||
return super().check_modify(invoices)
|
||||
|
|
Loading…
Reference in New Issue