标签:
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
odoo关联表查询方法
原文地址:http://www.cnblogs.com/hltswd/p/5803472.html