Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][FIX] account_payment_return: don't copy some fields #757

Merged
merged 1 commit into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions account_payment_return/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
1 change: 1 addition & 0 deletions account_payment_return/models/payment_return.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading