Skip to content

Conversation

@apami0111
Copy link
Contributor

Migration of purchase_allowed_product to Odoo 19.0.
Updated _search method to the new API, adapted views to v19 changes, refreshed tests, and updated module metadata. No functional changes.

mourad-ehm and others added 30 commits November 24, 2025 22:48
OCA Transbot updated translations from Transifex
[UPD] Update purchase_allowed_product.pot
Currently translated at 46.2% (6 of 13 strings)

Translation: purchase-workflow-12.0/purchase-workflow-12.0-purchase_allowed_product
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-12-0/purchase-workflow-12-0-purchase_allowed_product/sl/

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: purchase-workflow-12.0/purchase-workflow-12.0-purchase_allowed_product
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-12-0/purchase-workflow-12-0-purchase_allowed_product/
Currently translated at 84.6% (11 of 13 strings)

Translation: purchase-workflow-12.0/purchase-workflow-12.0-purchase_allowed_product
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-12-0/purchase-workflow-12-0-purchase_allowed_product/fr/
Currently translated at 92.3% (12 of 13 strings)

Translation: purchase-workflow-12.0/purchase-workflow-12.0-purchase_allowed_product
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-12-0/purchase-workflow-12-0-purchase_allowed_product/fr/
Currently translated at 40.0% (6 of 15 strings)

Translation: purchase-workflow-12.0/purchase-workflow-12.0-purchase_allowed_product
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-12-0/purchase-workflow-12-0-purchase_allowed_product/pt_BR/
Currently translated at 40.0% (6 of 15 strings)

Translation: purchase-workflow-12.0/purchase-workflow-12.0-purchase_allowed_product
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-12-0/purchase-workflow-12-0-purchase_allowed_product/pt/
[UPD] Update purchase_allowed_product.pot

[UPD] README.rst
Currently translated at 100.0% (15 of 15 strings)

Translation: purchase-workflow-13.0/purchase-workflow-13.0-purchase_allowed_product
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-13-0/purchase-workflow-13-0-purchase_allowed_product/zh_CN/
Currently translated at 100.0% (15 of 15 strings)

Translation: purchase-workflow-14.0/purchase-workflow-14.0-purchase_allowed_product
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-14-0/purchase-workflow-14-0-purchase_allowed_product/fr/
Currently translated at 40.0% (6 of 15 strings)

Translation: purchase-workflow-14.0/purchase-workflow-14.0-purchase_allowed_product
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-14-0/purchase-workflow-14-0-purchase_allowed_product/pt_BR/
Currently translated at 33.3% (5 of 15 strings)

Translation: purchase-workflow-14.0/purchase-workflow-14.0-purchase_allowed_product
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-14-0/purchase-workflow-14-0-purchase_allowed_product/it/
Currently translated at 100.0% (15 of 15 strings)

Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_allowed_product
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_allowed_product/it/
Currently translated at 93.3% (14 of 15 strings)

Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_allowed_product
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_allowed_product/hr/
Currently translated at 100.0% (11 of 11 strings)

Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_allowed_product
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_allowed_product/pt_BR/
Currently translated at 100.0% (11 of 11 strings)

Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_allowed_product
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_allowed_product/es/
Currently translated at 100.0% (11 of 11 strings)

Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_allowed_product
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_allowed_product/es/
Currently translated at 100.0% (11 of 11 strings)

Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_allowed_product
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_allowed_product/it/
- Make use_only_supplied_product field computed, stored and not readonly
- Propagation of use_only_supplied_product field to invoices
You always can add products to purchase order, so makes sense to be able to see the check/switch always
Copy link
Member

@StefanRijnhart StefanRijnhart left a comment

Choose a reason for hiding this comment

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

Thanks! Can you fix the pre-commit, and do you have any idea what's going on with the test job? Maybe try a rebase?

supplierinfos = self.env["product.supplierinfo"].search(
[("partner_id", "=", seller.id)]
)
domain += [
Copy link
Member

Choose a reason for hiding this comment

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

Maybe this code can be improved a little bit by joining the passed domain and the additional domain with fields.Domain.AND.

@StefanRijnhart
Copy link
Member

/ocabot migration purchase_allowed_product

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Dec 8, 2025
@OCA-git-bot OCA-git-bot mentioned this pull request Dec 8, 2025
76 tasks
@StefanRijnhart
Copy link
Member

Oh, it's the dependency on base_view_inheritance_extension. Is there an open PR for the migration of this module to 19.0?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.