CHANGES IN SALELINE

This commit is contained in:
Elvis 2023-03-24 11:23:52 -05:00
parent c2ed6f03f1
commit 01fc5a84c1
1 changed files with 4 additions and 4 deletions

View File

@ -872,10 +872,10 @@ class SaleLine(metaclass=PoolMeta):
super(SaleLine, cls).__setup__()
# Allow edit product, quantity and unit in lines without parent sale
for fname in ('product', 'quantity', 'unit'):
field = getattr(cls, fname)
if field.states.get('readonly'):
del field.states['readonly']
# for fname in ('product', 'quantity', 'unit'):
# field = getattr(cls, fname)
# if field.states.get('readonly'):
# del field.states['readonly']
@staticmethod
def default_sale():