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
转载于:https://www.cnblogs.com/hltswd/p/5803472.html