I have this scenario: I have a new field in product.product and it's a Many2one field. The many2one field has a product_id column. Here's the sample code:
class MyMany2one():
_name = "my.manytoone"
name = fields.Char()
product_id = fields.Many2one(
comodel_name = "product.product"
)
class ProductProduct():
_inherit = "product.product"
# in the product view, this will be a selection
mymany2one = fields.Many2one(
comodel_name = "my.manytoone"
)
My issue is it does not populate the product_id in the many2one class after saving