This commit is contained in:
Frederik Jaeckel 2024-12-10 15:22:17 +01:00
parent 08b8768dd4
commit 85e412564c

View file

@ -17,9 +17,7 @@ class InvoiceLine(metaclass=PoolMeta):
cls.unit.states['required'], cls.unit.states['required'],
And( And(
Eval('type') == 'line', Eval('type') == 'line',
Eval('quantity', None) != None, Bool(Eval('quantity', None))))
),
)
cls.unit.depends.extend(['type', 'quantity']) cls.unit.depends.extend(['type', 'quantity'])
# end Invoice # end Invoice