Prevent modification of the stock lot of stock move done or cancelled

Closes #13520
This commit is contained in:
Cédric Krier committed 2024-09-17 15:49:46 +02:00
1 parent 37022fff21
commit dba33cbb64
1 file changed
+1
+1
View File
@@ -472,6 +472,7 @@ class Move(metaclass=PoolMeta):
@classmethod
def __setup__(cls):
super().__setup__()
cls._deny_modify_done_cancel.add('lot')
cls._buttons.update({
'add_lots_wizard': {
'invisible': ~Eval('state').in_(['draft', 'assigned']),