Commit f5cb4811 by Yvon Kerdoncuff

use int in api search_read instead of str to make it work (binom bug)

parent b7449d7f
...@@ -1005,6 +1005,7 @@ class CagetteMember(models.Model): ...@@ -1005,6 +1005,7 @@ class CagetteMember(models.Model):
@staticmethod @staticmethod
def can_become_titulaire(parent_id): def can_become_titulaire(parent_id):
parent_id = int(parent_id) # mandatory
api = OdooAPI() api = OdooAPI()
parent = api.search_read('res.partner', parent = api.search_read('res.partner',
[['id', '=', parent_id]], [['id', '=', parent_id]],
...@@ -1028,6 +1029,7 @@ class CagetteMember(models.Model): ...@@ -1028,6 +1029,7 @@ class CagetteMember(models.Model):
@staticmethod @staticmethod
def can_become_suppleant(child_id): def can_become_suppleant(child_id):
child_id = int(child_id) # mandatory
api = OdooAPI() api = OdooAPI()
child = api.search_read('res.partner', child = api.search_read('res.partner',
[['id', '=', child_id]], [['id', '=', child_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