Hello,
I want extract the mobile number in a partner.
I made this method :
Quote:
service = netsvc.LocalService("object_proxy")
res_ids = service.execute(cr.dbname, uid, 'res.partner.address', 'search', [('partner_id','in',data['ids']),('type','=','default')])
res = service.execute(cr.dbname, uid, 'res.partner.address', 'read', res_ids, ['mobile'])
I print the answer 'res' in a txt file and it give :
Quote:
[{'mobile': u'+3212345678', 'id': 6}]
Now I want juste the number so '+3212345678'.
I think there is a method to retrieve and I don't want split the string because a mobile can have many form(+ or not, more numbers, etc.) so I would like a generic method.
Thanks in advance !