I try to get records that have same name with customer created data with the following code.
val=self.env['res.partner'].search([('name','=',record.name)]) and it works.When I log it using
logging.info(val) command, it shows res.partner(26,33).
These are id of same records?So,how can I get detail information of record using this id?
I try to query like
count=0
for x in val:
if x:
count=count+1
query=('SELECT *'
'FROM res_partner'
'WHERE id=x')
self.env.cr.execute(query)
logging.info("query data are")
for row in self.env.cr.fetchall():
logging.info(row[0])
But It does not work.Thank You