i want to inherit the form view of the product.template model, here is my code
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="view_tech_template_inherit" model="ir.ui.view">
<field name="name">product.template.form.inherit</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_only_form_view"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='purchase']" position="replace">
<field name="field_one"/>
</xpath>
</field>
</record> </data> </odoo>
i already called in the dependencies the product module, and i inherited the product.template model on my custom module, this way
from odoo import api, fields, models class tech_product(models.Model): _inherit = "product.template"
field_one = fields.Char('conso')
what i am missing else ?
add the error message/log along with the question