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:
@@ -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={
|
||||
|
||||
Reference in New Issue
Block a user