This is the custom model:
class stock_info(models.Model):
_name = 'stock_info.stock'
_description = 'stock_info.stock_info'
product_id = fields.Many2one('product.product', string='Product', store=True)
categ_id = fields.Many2one(related="product_id.categ_id")
# hsn_code = fields.Char(related="product_id.l10n_in_hsn_code", readonly=True)
taxes = fields.Char(related="product_id.taxes_id.display_name", readonly=True, store=True)
When executing I am facing this error:
"Field taxes_id referenced in related field definition stock_info.stock.taxes do not exist."
Despite multiple changes to my code, and changing the related attribute, I am unable to make it work.
All I want to do is to display the product's Name, taxes, MRP in my custom module.
Thank you.