diff --git a/stock_operating_unit/model/stock_rule.py b/stock_operating_unit/model/stock_rule.py index 2ba9764be6..cba79bf9f9 100644 --- a/stock_operating_unit/model/stock_rule.py +++ b/stock_operating_unit/model/stock_rule.py @@ -11,5 +11,4 @@ class StockRule(models.Model): operating_unit_id = fields.Many2one( "operating.unit", related="warehouse_id.operating_unit_id", - domain="[('user_ids', '=', uid)]", ) diff --git a/stock_operating_unit/view/stock.xml b/stock_operating_unit/view/stock.xml index d9ae07fc9b..a2cfe40c8d 100644 --- a/stock_operating_unit/view/stock.xml +++ b/stock_operating_unit/view/stock.xml @@ -12,8 +12,7 @@ @@ -27,7 +26,6 @@ @@ -42,8 +40,7 @@ @@ -57,7 +54,6 @@ @@ -71,7 +67,6 @@ @@ -85,7 +80,6 @@ @@ -103,15 +97,14 @@ [('warehouse_id.operating_unit_id.user_ids', 'in', uid)] + >[('warehouse_id.operating_unit_id', 'in', [operating_unit_id, False])] @@ -123,7 +116,6 @@ @@ -145,14 +137,12 @@ @@ -166,14 +156,12 @@ @@ -187,14 +175,12 @@ @@ -208,14 +194,12 @@