Commit 6e18b9a3 by Yvon Kerdoncuff

take into account the possibility of several shift_template_registration for one…

take into account the possibility of several shift_template_registration for one res_partner, but only one active
parent 4decb4d2
......@@ -1089,7 +1089,7 @@ class CagetteMember(models.Model):
def get_shift_template_registration_id(self):
c = [['partner_id', '=', self.id]]
c = [['partner_id', '=', self.id], ['active', '=', True]]
f = ['id']
return self.o_api.search_read("shift.template.registration", c, f)[0]['id']
......
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