-
-
Notifications
You must be signed in to change notification settings - Fork 534
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
[18.0][MIG] account_invoice_select_for_payment: Migration to 18.0 #1374
base: 18.0
Are you sure you want to change the base?
[18.0][MIG] account_invoice_select_for_payment: Migration to 18.0 #1374
Conversation
This module allows to mark invoices as "selected for payment". This can be done in the list view of invoices using a button in the first column of the view which shows the selection status. This selection persists until a payment is registered.
Currently translated at 100.0% (8 of 8 strings) Translation: bank-payment-14.0/bank-payment-14.0-account_invoice_select_for_payment Translate-URL: https://translation.odoo-community.org/projects/bank-payment-14-0/bank-payment-14-0-account_invoice_select_for_payment/sv/
Currently translated at 100.0% (8 of 8 strings) Translation: bank-payment-14.0/bank-payment-14.0-account_invoice_select_for_payment Translate-URL: https://translation.odoo-community.org/projects/bank-payment-14-0/bank-payment-14-0-account_invoice_select_for_payment/es/
Currently translated at 100.0% (8 of 8 strings) Translation: bank-payment-14.0/bank-payment-14.0-account_invoice_select_for_payment Translate-URL: https://translation.odoo-community.org/projects/bank-payment-14-0/bank-payment-14-0-account_invoice_select_for_payment/it/
dd535b9
to
47ebee1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know there was none, but a test is welcome, especially to check if the payment removes the flag from the invoices.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the mig.
Can you please add a small test as suggested by @sebalix ?
2ba1fc0
to
a322a59
Compare
Hello @grindtildeath, @sebalix, I updated by your comments |
802abbc
to
4799428
Compare
@@ -13,5 +13,4 @@ def action_register_payment(self): | |||
invoices = self.env["account.move"].search( | |||
[("id", "in", active_ids), ("selected_for_payment", "=", True)] | |||
) | |||
invoices.write({"selected_for_payment": False}) | |||
return super().action_register_payment() | |||
return invoices.write({"selected_for_payment": False}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why loose the call to super and could the invoices
variable be unassigned ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @TDu, I checked again and found out that this function has been moved to the account.move
module since Odoo 14.0
. I updated the PR. Thank for your comment.
4799428
to
2c6df2a
Compare
Change in 18.0: