Skip to content

[19.0][MIG] account_payment_term_extension: Migration to 19.0#903

Merged
OCA-git-bot merged 56 commits into
OCA:19.0from
Studio73:19.0-mig-account_payment_term_extension
May 5, 2026
Merged

[19.0][MIG] account_payment_term_extension: Migration to 19.0#903
OCA-git-bot merged 56 commits into
OCA:19.0from
Studio73:19.0-mig-account_payment_term_extension

Conversation

@pablo-cort-s73

Copy link
Copy Markdown
  • The module version was updated to 19.0.1.0.0 in the manifest.
  • In the account_payment_term_holiday model, the check_holiday constraint was refactored to use the new odoo.fields.Domain API and marked as @api.private.
  • Tests were modified to create the necessary data programmatically instead of relying on external data records, following new best practices.

Alexis de Lattre and others added 30 commits November 11, 2025 15:27
…_term_extension

Add support for months and weeks in account.payment.term.line
Add unittest
PEP8 validation
Fix and add a feature for apply a chronological order on lines
Merge of the 'account_payment_term_multi_day' module
Add icon to module
[UPD] Update account_payment_term_extension.pot
Currently translated at 100.0% (28 of 28 strings)

Translation: account-invoicing-12.0/account-invoicing-12.0-account_payment_term_extension
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-account_payment_term_extension/es/
Currently translated at 100.0% (28 of 28 strings)

Translation: account-invoicing-12.0/account-invoicing-12.0-account_payment_term_extension
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-account_payment_term_extension/pt_BR/
Currently translated at 100.0% (28 of 28 strings)

Translation: account-invoicing-12.0/account-invoicing-12.0-account_payment_term_extension
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-account_payment_term_extension/fr/
Currently translated at 100.0% (28 of 28 strings)

Translation: account-invoicing-12.0/account-invoicing-12.0-account_payment_term_extension
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-account_payment_term_extension/fr_CH/
Currently translated at 85.7% (24 of 28 strings)

Translation: account-invoicing-12.0/account-invoicing-12.0-account_payment_term_extension
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-account_payment_term_extension/hr/
Currently translated at 100.0% (28 of 28 strings)

Translation: account-payment-13.0/account-payment-13.0-account_payment_term_extension
Translate-URL: https://translation.odoo-community.org/projects/account-payment-13-0/account-payment-13-0-account_payment_term_extension/es_AR/
…re resilient

* A `account.journal` record was being searched and used to create invoices, even though it was not necessary.
 This introduced the problem of finding more than one record that satisfied the search query, breaking the test for a singleton error.
 This removes the need for that.
* Extract a method for creating the invoice.
* Don't depend on variable year for tests.

TT27288

Co-Authored-By: Pedro M. Baeza <pedro.baeza@tecnativa.com>
* Standard procedure
* Adapt code
* Adapt tests
* Convert tests to SavepointCase

[UPD] Update account_payment_term_extension.pot
reformat
add test months
black
Currently translated at 100.0% (34 of 34 strings)

Translation: account-payment-14.0/account-payment-14.0-account_payment_term_extension
Translate-URL: https://translation.odoo-community.org/projects/account-payment-14-0/account-payment-14-0-account_payment_term_extension/es_AR/
@pablo-cort-s73 pablo-cort-s73 force-pushed the 19.0-mig-account_payment_term_extension branch from 08c7679 to 17e6b27 Compare November 28, 2025 06:55
@odooNextev

Copy link
Copy Markdown

Hi @pablo-cort-s73,
we opened an issue for a major issue in v18.0 that appears to be impacting this migration as well: #919
I created a PR to solve it and it's close to merge: #920

@pablo-cort-s73

Copy link
Copy Markdown
Author

Of course @odooNextev right now I add the commit to the migration. Thanks a lot

@pablo-cort-s73 pablo-cort-s73 force-pushed the 19.0-mig-account_payment_term_extension branch from 17e6b27 to 9fd4dd3 Compare January 19, 2026 07:39

@Borruso Borruso left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pablo-cort-s73

Copy link
Copy Markdown
Author

@odooNextev fix commit added before migration commit. Can you check it, pls?

@odooNextev

Copy link
Copy Markdown

@odooNextev fix commit added before migration commit. Can you check it, pls?

Code looks good, but I cannot try it on runboat cause it doesn't work.

@pablo-cort-s73 pablo-cort-s73 force-pushed the 19.0-mig-account_payment_term_extension branch from 9fd4dd3 to ce4e5b5 Compare February 23, 2026 16:17
@pablo-cort-s73

Copy link
Copy Markdown
Author

@odooNextev fix commit added before migration commit. Can you check it, pls?

Code looks good, but I cannot try it on runboat cause it doesn't work.

@odooNextev Runboat on. 👍

@odooNextev odooNextev left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Issue solved: #919

@svilaLevel4 svilaLevel4 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mmircoli-nexapp

Copy link
Copy Markdown

is it ready to merge?

@mmircoli-nexapp

Copy link
Copy Markdown

@pedrobaeza is it possible merge?

Thank you so much in advance for your help

@pedrobaeza

Copy link
Copy Markdown
Member

@etobella has requested changes.

@etobella

etobella commented May 5, 2026

Copy link
Copy Markdown
Member

/ocabot merge nobump

1 similar comment
@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 19.0-ocabot-merge-pr-903-by-etobella-bump-nobump, awaiting test results.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 19.0-ocabot-merge-pr-903-by-pedrobaeza-bump-nobump, awaiting test results.

@pedrobaeza

Copy link
Copy Markdown
Member

Cancelling my merge 🤦

@OCA-git-bot

Copy link
Copy Markdown
Contributor

@pedrobaeza your merge command was aborted due to failed check(s), which you can inspect on this commit of 19.0-ocabot-merge-pr-903-by-pedrobaeza-bump-nobump.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@OCA-git-bot OCA-git-bot merged commit 30f0c4f into OCA:19.0 May 5, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 8a69af1. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.