Skip to content

Conversation

@Hudson5577
Copy link

@Hudson5577 Hudson5577 commented Oct 24, 2025

Changed 1 line in purchase_order model:

raise ValidationError(_("Document's company and type's company mismatch"))

into

raise ValidationError(self.env._("Document's company and type's company mismatch")

Guewen Baconnier and others added 30 commits October 23, 2025 15:53
Add a type of purchase orders
[FIX] bugs

[FIX] in purchase_order.py

[FIX] string in field purchase_type
[UPD] Update purchase_order_type.pot
* remove coding info and fix reference
* added tests
* add sequence is mandatory
Currently translated at 21.7% (5 of 23 strings)

Translation: purchase-workflow-14.0/purchase-workflow-14.0-purchase_order_type
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-14-0/purchase-workflow-14-0-purchase_order_type/fr_FR/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: purchase-workflow-14.0/purchase-workflow-14.0-purchase_order_type
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-14-0/purchase-workflow-14-0-purchase_order_type/
Currently translated at 96.1% (25 of 26 strings)

Translation: purchase-workflow-14.0/purchase-workflow-14.0-purchase_order_type
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-14-0/purchase-workflow-14-0-purchase_order_type/it/
Currently translated at 42.3% (11 of 26 strings)

Translation: purchase-workflow-15.0/purchase-workflow-15.0-purchase_order_type
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-15-0/purchase-workflow-15-0-purchase_order_type/pt_BR/
mymage and others added 17 commits October 23, 2025 15:53
Currently translated at 96.1% (25 of 26 strings)

Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_order_type
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_order_type/it/
Custom sequence for an order type wasn't take in account date ranges
during order creation, this fix it.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: purchase-workflow-17.0/purchase-workflow-17.0-purchase_order_type
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-17-0/purchase-workflow-17-0-purchase_order_type/
Currently translated at 100.0% (25 of 25 strings)

Translation: purchase-workflow-17.0/purchase-workflow-17.0-purchase_order_type
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-17-0/purchase-workflow-17-0-purchase_order_type/it/
Currently translated at 100.0% (25 of 25 strings)

Translation: purchase-workflow-17.0/purchase-workflow-17.0-purchase_order_type
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-17-0/purchase-workflow-17-0-purchase_order_type/sv/
Before this fix, when onchange event for company_id was fired, type for
purchase order was always set, then sometimes overwritten, even if
former order type was compatible with the new company.

This cause an incompatibility with e.g. purchase_order_type_dashboard.
When PO creation form is accesed coming from PO dashboard, selected
order type was actually igored, because onchange for company was fired
and order type overwritten. This fix it.
Currently translated at 44.0% (11 of 25 strings)

Translation: purchase-workflow-17.0/purchase-workflow-17.0-purchase_order_type
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-17-0/purchase-workflow-17-0-purchase_order_type/zh_TW/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: purchase-workflow-18.0/purchase-workflow-18.0-purchase_order_type
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-18-0/purchase-workflow-18-0-purchase_order_type/
@Hudson5577 Hudson5577 force-pushed the 19.0-mig-purchase_order_type branch 7 times, most recently from 7cb6dc3 to 9c734b9 Compare October 31, 2025 13:04
@HviorForgeFlow
Copy link
Member

/ocabot migration purchase_order_type

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Nov 4, 2025
@OCA-git-bot OCA-git-bot mentioned this pull request Nov 4, 2025
75 tasks
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.