代码:
# product.template
product_id = fields.Many2one('product.template', string="产品")
*注:多对一字段,用哪张表就要继承它的模型【product】(many),外键关联
代码:
# product.template
product_id = fields.Many2one('product.template', string="产品")
*注:多对一字段,用哪张表就要继承它的模型【product】(many),外键关联