[19.0][MIG] sale_invoice_policy: Migration to 19.0#4071
[19.0][MIG] sale_invoice_policy: Migration to 19.0#4071therbin200 wants to merge 62 commits intoOCA:19.0from
Conversation
…status computation
…y is required on Sale Orders
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: sale-workflow-12.0/sale-workflow-12.0-sale_invoice_policy Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_invoice_policy/
Currently translated at 100.0% (17 of 17 strings) Translation: sale-workflow-12.0/sale-workflow-12.0-sale_invoice_policy Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_invoice_policy/ca/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: sale-workflow-12.0/sale-workflow-12.0-sale_invoice_policy Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_invoice_policy/
Currently translated at 100.0% (17 of 17 strings) Translation: sale-workflow-12.0/sale-workflow-12.0-sale_invoice_policy Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_invoice_policy/pt/
Currently translated at 70.6% (12 of 17 strings) Translation: sale-workflow-12.0/sale-workflow-12.0-sale_invoice_policy Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_invoice_policy/fr/
Currently translated at 100.0% (17 of 17 strings) Translation: sale-workflow-12.0/sale-workflow-12.0-sale_invoice_policy Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_invoice_policy/fr/
Currently translated at 100.0% (17 of 17 strings) Translation: sale-workflow-13.0/sale-workflow-13.0-sale_invoice_policy Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-13-0/sale-workflow-13-0-sale_invoice_policy/es_MX/
Mark the SO invoicing policy on order when the SO lines are forced to order by the automatic invoicing
pre init hook depends on openupgradelib
cba46fd to
3e4e629
Compare
|
The precommit doesn't generat requirements.txt file. And if I try to make it manually, pre-commit automatically deletes it |
| requires = ["whool"] | ||
| build-backend = "whool.buildapi" | ||
| [project] | ||
| name = "odoo-addons-oca-base_partition" |
There was a problem hiding this comment.
@therbin200 You should not do that.
To include open PR's dependencies, you should follow: https://github.com/OCA/maintainer-tools/wiki/Use-temporary-reference%28s%29-to-another-pull-request%28s%29
Thanks
3e4e629 to
234b0ea
Compare
|
/ocabot migration sale_invoice_policy |
That's normal. The dependent addon is not yet merged. |
So the pre-commit looks for the github repository dependencies, and not the local one on my computer ? How do I do in this case to pass the check on the PR ? |
37a357a to
bfb933c
Compare
bfb933c to
e05a008
Compare
|
Okay, everything must be okay now :) |
alexey-pelykh
left a comment
There was a problem hiding this comment.
Thanks for the migration, @therbin200.
The code is a clean port from 18.0 -- models, views, hooks, and tests are all unchanged, which is exactly what you want for a straightforward migration. Tests pass on both Odoo and OCB, pre-commit is green, and the pyproject.toml issue @rousseldenis flagged has been addressed.
One thing to clean up:
"base"was added todependsin__manifest__.py, but it's redundant sincesale_stockalready pulls it in transitively. The 18.0 manifest doesn't include it either. Removing it keeps the dependency tree accurate.
Minor observations (non-blocking):
- The
.potranslation files still carry references to the oldinvoice_policy_required/sale_invoice_policy_requiredfields that were removed in the 18.0 refactor. Not harmful (Odoo ignores orphaned translations), but they could be cleaned up with a freshmsgmergeagainst the updated.pot. - The "Detect unreleased dependencies" CI failure is expected since
base_partition(OCA/server-tools#3465) hasn't been merged yet. Thetest-requirements.txtworkaround is set up correctly.
Overall this looks good -- just the "base" dependency to drop.
| "category": "Sales Management", | ||
| "version": "19.0.1.0.0", | ||
| "license": "AGPL-3", | ||
| "depends": ["base", "sale_stock", "base_partition"], |
There was a problem hiding this comment.
"base" is redundant here -- sale_stock already depends on it transitively. The 18.0 version doesn't list it either. Suggest removing it to keep the dependency declaration accurate.
alexey-pelykh
left a comment
There was a problem hiding this comment.
Thanks for the work on this, @therbin200. As noted in my earlier comment, there's still one item to address before this can be approved:
The "base" dependency in __manifest__.py is redundant -- sale_stock already depends on it transitively, and the 18.0 manifest doesn't include it. Please remove it to keep the dependency tree clean.
Everything else looks solid: the models, views, hooks, and tests are a clean port from 18.0, tests pass on both Odoo and OCB, and pre-commit is green.
Dependency PR for module :
base_partition: #3465