Hello
I created a very simple module with the following model:
class Adherent(models.Model):
_name = 'adherent.adherent'
_inherit = ['res.partner']
name = fields.Char(string='Nom', required=True)
and a custom form view:
<record id = "adherent_adherent_form_view" model = "ir.ui.view">
<field name = "name">add.fields</field>
<field name = "model">adherent.adherent</field>
<field name = "inherit_id" ref = "base.view_partner_form"/>
<field name = "arch" type = "xml">
<form>
<sheet>
<field name="name" class="oe_read_only"/>⁣
<field name="id" class="oe_read_only" attrs="{'readonly':True}"/>
<group string="Adherent">
<group>
<field name="active"/>
</group>
</group>
</sheet>
</form>
</field>
</record>
In launching the form view I got this error:
TypeError: Widget is not a constructor
Could u help me to fix this issue?
thks in advance,
Bruno