odoo关联表查询方法

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
原文地址:https://www.cnblogs.com/hltswd/p/5803472.html