Skip to content

20.0 mig sales team operating unit - #894

Open
HectorMerazChavez wants to merge 314 commits into
OCA:20.0from
Jarsa-dev:20.0-mig-sales_team_operating_unit
Open

HectorMerazChavez wants to merge 314 commits into
OCA:20.0from
Jarsa-dev:20.0-mig-sales_team_operating_unit

Conversation

@HectorMerazChavez

Copy link
Copy Markdown

No description provided.

OCA-git-bot and others added 30 commits October 15, 2026 11:46
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: operating-unit-15.0/operating-unit-15.0-operating_unit
Translate-URL: https://translation.odoo-community.org/projects/operating-unit-15-0/operating-unit-15-0-operating_unit/
Fix: omit domain passed in args to OperatingUnit.name_search() in "other search"
…prating units access error

Update res_users.py

[FIX] pre-commit fails issue
Record `b2b_operating_unit` was referenced twice.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: operating-unit-16.0/operating-unit-16.0-operating_unit
Translate-URL: https://translation.odoo-community.org/projects/operating-unit-16-0/operating-unit-16-0-operating_unit/
This PR fixes an issue with the method operating_unit_default_get
where it would return an operating unit even for a company that was
not active, which would cause all sorts of issues

Steps to reproduce on runboat,
taking as example purchase_operating_unit:

- User has a default ou belonging to Company 1
- Switch to Company 2 (make sure Company 1 is not active at all)
- Try to create a Purchase Order

The issue arises because the operating_unit field is pre-compiled
on the PO with an Operating Unit whose company is inactive,
and the onchanges cannot find or access related data.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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

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

Translation: operating-unit-17.0/operating-unit-17.0-operating_unit
Translate-URL: https://translation.odoo-community.org/projects/operating-unit-17-0/operating-unit-17-0-operating_unit/es_AR/
MiquelRForgeFlow and others added 26 commits November 24, 2026 08:30
- Remove encodings
- Bump Version
- Fix form view to place under company_id
- Test
- Fix security rules
A new sales team gets the user's default operating unit, but no company.
Users without multi-company access do not see the company field, so
saving the team failed with "company inconsistencies" between the team
and its operating unit. Default the company to the one of the operating
unit, as done in 18.0 (OCA#856).
@alan196
alan196 force-pushed the 20.0-mig-sales_team_operating_unit branch from 532c6ec to 6c222d6 Compare November 24, 2026 14:45
@OCA-git-bot OCA-git-bot added mod:account_operating_unit Module account_operating_unit mod:analytic_operating_unit Module analytic_operating_unit mod:hr_timesheet_operating_unit Module hr_timesheet_operating_unit labels Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:account_operating_unit Module account_operating_unit mod:analytic_operating_unit Module analytic_operating_unit mod:hr_timesheet_operating_unit Module hr_timesheet_operating_unit mod:operating_unit Module operating_unit mod:sales_team_operating_unit Module sales_team_operating_unit series:20.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.