From c4482db8dd4c08c68f3f5906496603504f3064e2 Mon Sep 17 00:00:00 2001 From: Bastian Guenther Date: Fri, 14 Nov 2025 16:23:10 +0100 Subject: [PATCH 1/2] [FIX] sale_stock_operating_unit: Reverted change in onchange_team_id --- sale_stock_operating_unit/models/sale_order.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sale_stock_operating_unit/models/sale_order.py b/sale_stock_operating_unit/models/sale_order.py index 74a05e0c02..88afac8634 100644 --- a/sale_stock_operating_unit/models/sale_order.py +++ b/sale_stock_operating_unit/models/sale_order.py @@ -35,9 +35,9 @@ def _default_warehouse_id(self): comodel_name="stock.warehouse", default=_default_warehouse_id ) - @api.depends("team_id") - def _compute_team_id(self): - res = super()._compute_team_id() + @api.onchange("team_id") + def onchange_team_id(self): + res = super(SaleOrder, self).onchange_team_id() if ( self.team_id and self.team_id.operating_unit_id From dd59492d9e04ec4e642f47fbd50171ee0ffb7cf1 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Fri, 19 Dec 2025 13:55:14 +0000 Subject: [PATCH 2/2] [BOT] post-merge updates --- README.md | 2 +- sale_stock_operating_unit/README.rst | 2 +- sale_stock_operating_unit/__manifest__.py | 2 +- sale_stock_operating_unit/static/description/index.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e6612a33ce..1fb0836e70 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ addon | version | maintainers | summary [project_operating_unit](project_operating_unit/) | 16.0.1.0.0 | max3903 | This module adds operating unit information to projects and tasks. [report_qweb_operating_unit](report_qweb_operating_unit/) | 16.0.1.0.0 | | Qweb Report With Operating Unit [sale_operating_unit](sale_operating_unit/) | 16.0.1.0.0 | | An operating unit (OU) is an organizational entity part of a company -[sale_stock_operating_unit](sale_stock_operating_unit/) | 16.0.1.0.0 | | An operating unit (OU) is an organizational entity part of a company +[sale_stock_operating_unit](sale_stock_operating_unit/) | 16.0.1.0.1 | | An operating unit (OU) is an organizational entity part of a company [sales_team_operating_unit](sales_team_operating_unit/) | 16.0.1.0.0 | | Sales Team Operating Unit [stock_operating_unit](stock_operating_unit/) | 16.0.1.2.2 | | Adds the concept of operating unit (OU) in stock management [stock_operating_unit_access_all](stock_operating_unit_access_all/) | 16.0.1.0.0 | kittiu | Access all OUs' Stock diff --git a/sale_stock_operating_unit/README.rst b/sale_stock_operating_unit/README.rst index 7cfd984ea0..441b2e7547 100644 --- a/sale_stock_operating_unit/README.rst +++ b/sale_stock_operating_unit/README.rst @@ -11,7 +11,7 @@ Operating Unit in Sales Stock !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:b62593310c5251ad31057d727066b4e6573c9044b09c03212841c8bf92833345 + !! source digest: sha256:484cca7f27b6eab67a696ef1c3cc7628fddef254e74f81c6f361b930d988b297 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/sale_stock_operating_unit/__manifest__.py b/sale_stock_operating_unit/__manifest__.py index 34b47c1751..a829fcd130 100644 --- a/sale_stock_operating_unit/__manifest__.py +++ b/sale_stock_operating_unit/__manifest__.py @@ -7,7 +7,7 @@ "name": "Operating Unit in Sales Stock", "summary": "An operating unit (OU) is an organizational entity part of a " "company", - "version": "16.0.1.0.0", + "version": "16.0.1.0.1", "author": "ForgeFlow, Serpent Consulting Services Pvt. Ltd., " "Odoo Community Association (OCA)", "license": "LGPL-3", diff --git a/sale_stock_operating_unit/static/description/index.html b/sale_stock_operating_unit/static/description/index.html index 6f271037a9..fee90e79f2 100644 --- a/sale_stock_operating_unit/static/description/index.html +++ b/sale_stock_operating_unit/static/description/index.html @@ -372,7 +372,7 @@

Operating Unit in Sales Stock

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:b62593310c5251ad31057d727066b4e6573c9044b09c03212841c8bf92833345 +!! source digest: sha256:484cca7f27b6eab67a696ef1c3cc7628fddef254e74f81c6f361b930d988b297 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: LGPL-3 OCA/operating-unit Translate me on Weblate Try me on Runboat

This module was written to extend the Sales and the Stock capabilities of Odoo.