CHANGES IN SALELINE
This commit is contained in:
parent
c2ed6f03f1
commit
01fc5a84c1
8
sale.py
8
sale.py
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue