[FIX] stock_available_base_exclude_location: Fix excluded locations domains

This commit is contained in:
Florian Mounier
2023-02-08 11:01:19 +01:00
parent 4e338d152d
commit e6e2c99f09

View File

@@ -44,13 +44,13 @@ class ProductProduct(models.Model):
excluded_location_ids.ids, excluded_location_ids.ids,
) )
], ],
domain_quant_loc, domain_move_in_loc,
] ]
) )
domain_move_out_loc = expression.AND( domain_move_out_loc = expression.AND(
[ [
[("location_id", "not in", excluded_location_ids.ids)], [("location_id", "not in", excluded_location_ids.ids)],
domain_quant_loc, domain_move_out_loc,
] ]
) )
return domain_quant_loc, domain_move_in_loc, domain_move_out_loc return domain_quant_loc, domain_move_in_loc, domain_move_out_loc