Commit ca04e2c6 by François C.

Add return to run_process_target_status (lacagette_membership)

parent b56f67f4
...@@ -28,7 +28,7 @@ class ResPartner(models.Model): ...@@ -28,7 +28,7 @@ class ResPartner(models.Model):
# final_ftop_point, target_status # final_ftop_point, target_status
conf = self.env['ir.config_parameter'] conf = self.env['ir.config_parameter']
absence_status = conf.get_param("lacagette_membership.absence_status") absence_status = conf.get_param("lacagette_membership.absence_status")
result = 'done'
for p in self.env['res.partner']\ for p in self.env['res.partner']\
.search([('target_status', '!=', "")]): .search([('target_status', '!=', "")]):
try: try:
...@@ -57,6 +57,8 @@ class ResPartner(models.Model): ...@@ -57,6 +57,8 @@ class ResPartner(models.Model):
p.update(new_values) p.update(new_values)
except Exception as e: except Exception as e:
_logger.error("run_process_target_status : %s", str(e)) _logger.error("run_process_target_status : %s", str(e))
result = 'error'
return result
#@api.onchange('cooperativestate') : could be used only if it is called from client #@api.onchange('cooperativestate') : could be used only if it is called from client
@api.model @api.model
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment