update optical_equipment

This commit is contained in:
sinergia 2022-12-12 15:27:37 +00:00
parent e718afff36
commit 6d5a6f1d14

View File

@ -69,8 +69,7 @@ class ShipmentOut(metaclass=PoolMeta):
cls._buttons.update({
'maintenance_initial': {
'invisible': ((Eval('service_maintenance_initial',True))
| (Eval('sale_type').in_(['maintenance', 'replaces']))
| (Eval('state') == 'done'))}
| (Eval('sale_type').in_(['maintenance', 'replaces'])))}
})
def get_outgoing_moves(self, name):