diff --git a/account_payment_return/models/account_move.py b/account_payment_return/models/account_move.py index 35ca7850bad8..3688ad7179f7 100644 --- a/account_payment_return/models/account_move.py +++ b/account_payment_return/models/account_move.py @@ -12,6 +12,7 @@ class AccountMove(models.Model): returned_payment = fields.Boolean( string="Payment returned", help="Invoice has been included on a payment that has been returned later.", + copy=False, ) def check_payment_return(self): diff --git a/account_payment_return/models/payment_return.py b/account_payment_return/models/payment_return.py index e819ae785ec9..2c7b56d4de81 100644 --- a/account_payment_return/models/payment_return.py +++ b/account_payment_return/models/payment_return.py @@ -50,6 +50,7 @@ class PaymentReturn(models.Model): comodel_name="account.move", string="Reference to the created journal entry", states={"done": [("readonly", True)], "cancelled": [("readonly", True)]}, + copy=False, ) total_amount = fields.Float( compute="_compute_total_amount",