parent
1fa40e5a35
commit
0e2b70bbc4
|
@ -54,3 +54,7 @@ class SaleCost(ApplyMethodCostDocumentMixin, metaclass=PoolMeta):
|
|||
invisible_condition,
|
||||
Not(Bool(Eval('invoice_lines'))))
|
||||
cls._buttons['unapply']['depends'].append('invoice_lines')
|
||||
|
||||
@property
|
||||
def non_explodable(self):
|
||||
return super().non_explodable or bool(self.invoice_lines)
|
||||
|
|
Loading…
Reference in New Issue