testinfo=self.env['product.attribute.value'].search([('product_ids.product_tmpl_id','=',2047)]) for id in testinfo: print id.name print id.price_extra print id.attribute_id.name
testinfo=self.env['product.attribute.value'].search([('product_ids.product_tmpl_id','=',2047)]) for id in testinfo: print id.name print id.price_extra print id.attribute_id.name