Fix assignation of field of self
This commit is contained in:
parent
c07f44485f
commit
68c770c369
4
stock.py
4
stock.py
|
@ -70,8 +70,8 @@ class Lot:
|
|||
'alert_date'):
|
||||
product_field = fname.replace('date', 'time')
|
||||
margin = getattr(self.product.template, product_field)
|
||||
setattr(self, fname) = (margin and date.today() +
|
||||
timedelta(days=margin))
|
||||
setattr(self, fname,
|
||||
margin and date.today() + timedelta(days=margin))
|
||||
|
||||
def get_expired(self, name):
|
||||
pool = Pool()
|
||||
|
|
Loading…
Reference in New Issue