-
-
Notifications
You must be signed in to change notification settings - Fork 533
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
[9.0][ADD] account_payment_order_return #395
[9.0][ADD] account_payment_order_return #395
Conversation
3457fa9
to
fcc910b
Compare
{ | ||
'name': 'Account Payment Order Return', | ||
'version': '9.0.1.0.0', | ||
'category': 'Project Management', |
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.
Change category
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.
Category changed
I con not try in runbot... i think now is very busy jeje... OCA Codesprint... |
8b364d2
to
db8febe
Compare
Runbot OK again ! |
class AccountPaymentLineCreate(models.TransientModel): | ||
_inherit = 'account.payment.line.create' | ||
|
||
avoid_returned = fields.Boolean( |
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.
Make the contrary logic: put a field called include_returned
and unless this is checked, you include in the domain the new condition.
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.
Done
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.
@cubells @chienandalu please review
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.
Tested on runbot 👍
Please migrate it to v10/v11 |
* [ADD] account_payment_order_return (OCA#395) * [MIG] account_payment_order_return: Migration to 11.0 * [12.0][MIG] account_payment_order_return :100644 100644 d46b1318 a23b471a M account_payment_order_return/README.rst :100644 100644 340d1c77 1235bcb1 M account_payment_order_return/__manifest__.py :100644 100644 a341cc9d be7d7bbb M account_payment_order_return/i18n/account_payment_order_return.pot :100644 100644 60be6ab8 e6b32b37 M account_payment_order_return/readme/CONTRIBUTORS.rst :100644 100644 a8591d03 826c26df M account_payment_order_return/readme/USAGE.rst :100644 100644 450f2d9e a5f5d975 M account_payment_order_return/static/description/index.html * fix domain in payment_order_return fix domain in payment_order_return in order to avoid problems with moves without associated invoice as discused at OCA#718 * [IMP] account_payment_order_return: black, isort, prettier * [MIG] account_payment_order_return: Migration to 13.0 TT27858 * [FIX] account_payment_order_return: Set correct journal in tests to prevent error * [FIX] account_payment_order_return: Fix tests * [MIG] account_payment_order_return: Migration to 14.0 TT28728 * [FIX] account_payment_order_return: Fix tests Don't post the invoice if it is already posted. See odoo/odoo@80c2818 * account_payment_order_return 14.0.1.0.1 * [FIX] account_payment_order_return: Don't fail due to tz When the test hour is around midnight, and demo data using CET/CEST timezones, current code fails due to some asserts not having this into consideration. This fix avoids such problem, and irons the execution no matter the hour. * [MIG][15.0]account_payment_order_return:Migration to 15.0 * [IMP] account_payment_order_return: test performance improvement - Include context keys for avoiding mail operations overhead. * [BOT] post-merge updates * [MIG] account_payment_order_return: Migration to 16.0 * [BOT] post-merge updates * Added translation using Weblate (Italian) * Translated using Weblate (Italian) Currently translated at 100.0% (2 of 2 strings) Translation: bank-payment-16.0/bank-payment-16.0-account_payment_order_return Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_payment_order_return/it/ * [IMP] account_payment_order_return: pre-commit auto fixes * [MIG] account_payment_order_return: Migration to 17.0 --------- Co-authored-by: Luis M. Ontalba <[email protected]> Co-authored-by: cubells <[email protected]> Co-authored-by: Kitti U <[email protected]> Co-authored-by: Javier Colmeiro <[email protected]> Co-authored-by: João Marques <[email protected]> Co-authored-by: Víctor Martínez <[email protected]> Co-authored-by: OCA-git-bot <[email protected]> Co-authored-by: Pedro M. Baeza <[email protected]> Co-authored-by: Ruchir Shukla <[email protected]> Co-authored-by: josep-tecnativa <[email protected]> Co-authored-by: mymage <[email protected]>
* [ADD] account_payment_order_return (OCA#395) * [MIG] account_payment_order_return: Migration to 11.0 * [12.0][MIG] account_payment_order_return :100644 100644 d46b1318 a23b471a M account_payment_order_return/README.rst :100644 100644 340d1c77 1235bcb1 M account_payment_order_return/__manifest__.py :100644 100644 a341cc9d be7d7bbb M account_payment_order_return/i18n/account_payment_order_return.pot :100644 100644 60be6ab8 e6b32b37 M account_payment_order_return/readme/CONTRIBUTORS.rst :100644 100644 a8591d03 826c26df M account_payment_order_return/readme/USAGE.rst :100644 100644 450f2d9e a5f5d975 M account_payment_order_return/static/description/index.html * fix domain in payment_order_return fix domain in payment_order_return in order to avoid problems with moves without associated invoice as discused at OCA#718 * [IMP] account_payment_order_return: black, isort, prettier * [MIG] account_payment_order_return: Migration to 13.0 TT27858 * [FIX] account_payment_order_return: Set correct journal in tests to prevent error * [FIX] account_payment_order_return: Fix tests * [MIG] account_payment_order_return: Migration to 14.0 TT28728 * [FIX] account_payment_order_return: Fix tests Don't post the invoice if it is already posted. See odoo/odoo@80c2818 * account_payment_order_return 14.0.1.0.1 * [FIX] account_payment_order_return: Don't fail due to tz When the test hour is around midnight, and demo data using CET/CEST timezones, current code fails due to some asserts not having this into consideration. This fix avoids such problem, and irons the execution no matter the hour. * [MIG][15.0]account_payment_order_return:Migration to 15.0 * [IMP] account_payment_order_return: test performance improvement - Include context keys for avoiding mail operations overhead. * [BOT] post-merge updates * [MIG] account_payment_order_return: Migration to 16.0 * [BOT] post-merge updates * Added translation using Weblate (Italian) * Translated using Weblate (Italian) Currently translated at 100.0% (2 of 2 strings) Translation: bank-payment-16.0/bank-payment-16.0-account_payment_order_return Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_payment_order_return/it/ * [IMP] account_payment_order_return: pre-commit auto fixes * [MIG] account_payment_order_return: Migration to 17.0 --------- Co-authored-by: Luis M. Ontalba <[email protected]> Co-authored-by: cubells <[email protected]> Co-authored-by: Kitti U <[email protected]> Co-authored-by: Javier Colmeiro <[email protected]> Co-authored-by: João Marques <[email protected]> Co-authored-by: Víctor Martínez <[email protected]> Co-authored-by: OCA-git-bot <[email protected]> Co-authored-by: Pedro M. Baeza <[email protected]> Co-authored-by: Ruchir Shukla <[email protected]> Co-authored-by: josep-tecnativa <[email protected]> Co-authored-by: mymage <[email protected]>
* [ADD] account_payment_order_return (OCA#395) * [MIG] account_payment_order_return: Migration to 11.0 * [12.0][MIG] account_payment_order_return :100644 100644 d46b1318 a23b471a M account_payment_order_return/README.rst :100644 100644 340d1c77 1235bcb1 M account_payment_order_return/__manifest__.py :100644 100644 a341cc9d be7d7bbb M account_payment_order_return/i18n/account_payment_order_return.pot :100644 100644 60be6ab8 e6b32b37 M account_payment_order_return/readme/CONTRIBUTORS.rst :100644 100644 a8591d03 826c26df M account_payment_order_return/readme/USAGE.rst :100644 100644 450f2d9e a5f5d975 M account_payment_order_return/static/description/index.html * fix domain in payment_order_return fix domain in payment_order_return in order to avoid problems with moves without associated invoice as discused at OCA#718 * [IMP] account_payment_order_return: black, isort, prettier * [MIG] account_payment_order_return: Migration to 13.0 TT27858 * [FIX] account_payment_order_return: Set correct journal in tests to prevent error * [FIX] account_payment_order_return: Fix tests * [MIG] account_payment_order_return: Migration to 14.0 TT28728 * [FIX] account_payment_order_return: Fix tests Don't post the invoice if it is already posted. See odoo/odoo@80c2818 * account_payment_order_return 14.0.1.0.1 * [FIX] account_payment_order_return: Don't fail due to tz When the test hour is around midnight, and demo data using CET/CEST timezones, current code fails due to some asserts not having this into consideration. This fix avoids such problem, and irons the execution no matter the hour. * [MIG][15.0]account_payment_order_return:Migration to 15.0 * [IMP] account_payment_order_return: test performance improvement - Include context keys for avoiding mail operations overhead. * [BOT] post-merge updates * [MIG] account_payment_order_return: Migration to 16.0 * [BOT] post-merge updates * Added translation using Weblate (Italian) * Translated using Weblate (Italian) Currently translated at 100.0% (2 of 2 strings) Translation: bank-payment-16.0/bank-payment-16.0-account_payment_order_return Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_payment_order_return/it/ * [IMP] account_payment_order_return: pre-commit auto fixes * [MIG] account_payment_order_return: Migration to 17.0 --------- Co-authored-by: Luis M. Ontalba <[email protected]> Co-authored-by: cubells <[email protected]> Co-authored-by: Kitti U <[email protected]> Co-authored-by: Javier Colmeiro <[email protected]> Co-authored-by: João Marques <[email protected]> Co-authored-by: Víctor Martínez <[email protected]> Co-authored-by: OCA-git-bot <[email protected]> Co-authored-by: Pedro M. Baeza <[email protected]> Co-authored-by: Ruchir Shukla <[email protected]> Co-authored-by: josep-tecnativa <[email protected]> Co-authored-by: mymage <[email protected]>
* [ADD] account_payment_order_return (OCA#395) * [MIG] account_payment_order_return: Migration to 11.0 * [12.0][MIG] account_payment_order_return :100644 100644 d46b1318 a23b471a M account_payment_order_return/README.rst :100644 100644 340d1c77 1235bcb1 M account_payment_order_return/__manifest__.py :100644 100644 a341cc9d be7d7bbb M account_payment_order_return/i18n/account_payment_order_return.pot :100644 100644 60be6ab8 e6b32b37 M account_payment_order_return/readme/CONTRIBUTORS.rst :100644 100644 a8591d03 826c26df M account_payment_order_return/readme/USAGE.rst :100644 100644 450f2d9e a5f5d975 M account_payment_order_return/static/description/index.html * fix domain in payment_order_return fix domain in payment_order_return in order to avoid problems with moves without associated invoice as discused at OCA#718 * [IMP] account_payment_order_return: black, isort, prettier * [MIG] account_payment_order_return: Migration to 13.0 TT27858 * [FIX] account_payment_order_return: Set correct journal in tests to prevent error * [FIX] account_payment_order_return: Fix tests * [MIG] account_payment_order_return: Migration to 14.0 TT28728 * [FIX] account_payment_order_return: Fix tests Don't post the invoice if it is already posted. See odoo/odoo@80c2818 * account_payment_order_return 14.0.1.0.1 * [FIX] account_payment_order_return: Don't fail due to tz When the test hour is around midnight, and demo data using CET/CEST timezones, current code fails due to some asserts not having this into consideration. This fix avoids such problem, and irons the execution no matter the hour. * [MIG][15.0]account_payment_order_return:Migration to 15.0 * [IMP] account_payment_order_return: test performance improvement - Include context keys for avoiding mail operations overhead. * [BOT] post-merge updates * [MIG] account_payment_order_return: Migration to 16.0 * [BOT] post-merge updates * Added translation using Weblate (Italian) * Translated using Weblate (Italian) Currently translated at 100.0% (2 of 2 strings) Translation: bank-payment-16.0/bank-payment-16.0-account_payment_order_return Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_payment_order_return/it/ * [IMP] account_payment_order_return: pre-commit auto fixes * [MIG] account_payment_order_return: Migration to 17.0 --------- Co-authored-by: Luis M. Ontalba <[email protected]> Co-authored-by: cubells <[email protected]> Co-authored-by: Kitti U <[email protected]> Co-authored-by: Javier Colmeiro <[email protected]> Co-authored-by: João Marques <[email protected]> Co-authored-by: Víctor Martínez <[email protected]> Co-authored-by: OCA-git-bot <[email protected]> Co-authored-by: Pedro M. Baeza <[email protected]> Co-authored-by: Ruchir Shukla <[email protected]> Co-authored-by: josep-tecnativa <[email protected]> Co-authored-by: mymage <[email protected]>
Account Payment Order Return
This module adds a check in the wizard where move lines are imported into
payment order.
This check lets avoid selecting lines from invoices linked to a payment return.
Usage
wizard.
cc @Tecnativa