I need help somebody. i am new to odoo and i started with odoo 9. I have been learning about inheritance and extending views which works for the most part, however this one time, i cannot see my custom field being extended on the product form.
The field appears clearly in the product.product model, but appears there is a lock on displaying it on the product template form.
Any help is greatly appreciated.
Here is my code:
<record id="product_product_template_only_form_view" model="ir.ui.view">
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_template_only_form_view"/>
<field name="arch" type="xml">
<field name="list_price" position="before">
<field name="rentaloptions_id"/>
</field>
</field>
</record>
class product_product(models.Model):
_inherit = 'product.product'
rentaloptions_id = fields.Many2one('product.category','Rental Options')