Browse Source

[FIX] fix 'typo' self instead of rec

pull/37/head
Thibault Francois 7 years ago
parent
commit
d6b3f20efe
  1. 3
      beesdoo_shift/models/cooperative_status.py

3
beesdoo_shift/models/cooperative_status.py

@ -84,9 +84,8 @@ class CooperativeStatus(models.Model):
alert_delay = int(self.env['ir.config_parameter'].get_param('alert_delay', 28)) alert_delay = int(self.env['ir.config_parameter'].get_param('alert_delay', 28))
grace_delay = int(self.env['ir.config_parameter'].get_param('default_grace_delay', 10)) grace_delay = int(self.env['ir.config_parameter'].get_param('default_grace_delay', 10))
update = int(self.env['ir.config_parameter'].get_param('always_update', False)) update = int(self.env['ir.config_parameter'].get_param('always_update', False))
print update
for rec in self: for rec in self:
if update or not self.today:
if update or not rec.today:
rec.status = 'ok' rec.status = 'ok'
rec.can_shop = True rec.can_shop = True
continue continue

Loading…
Cancel
Save