Enforce empty value for input and output production on stock move with id

The domain for Many2One is based on the target not the field value.

Closes #13721
This commit is contained in:
Cédric Krier
2024-12-01 18:38:35 +01:00
parent 1a835acf6d
commit a6ba7caead
+2 -2
View File
@@ -50,7 +50,7 @@ class Move(metaclass=PoolMeta):
domain=[
('company', '=', Eval('company', -1)),
If(Eval('production_output', None),
('production_input', '=', None),
('id', '=', None),
()),
],
states={
@@ -61,7 +61,7 @@ class Move(metaclass=PoolMeta):
domain=[
('company', '=', Eval('company', -1)),
If(Eval('production_input', None),
('production_output', '=', None),
('id', '=', None),
()),
],
states={