Hello
I dev a custom module with this model:
class Adherent(models.Model):
_name = 'adherent.adherent'
inherit = ['res.partner']
name = fields.Char(string='Nom', required=True)
Here is the associated view:
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data>
<record id="adherent_menu_action" model="ir.actions.act_window">
<field name="name">Adhérents</field>
<field name="res_model">adherent.adherent</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[]</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">Créer le premier adhérent
</p>
</field>
</record>
<menuitem id="adherent_menu"
name="Adhérent"
/>
<menuitem id="adherent_adherent_menu"
parent="adherent_menu"
name="Adhérent"
action="adherent_menu_action"/>
<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">
<field name = "name"/>
</field>
</record>
</data>
</odoo>
Impossible to install the module:
The field active does not exist
Could u help me to fix this issue?
Thks in advance
Bruno
if you are into odoo development, follow this tutorials: https://www.youtube.com/watch?v=IeJFxmCG2Qs&list=PLqRRLx0cl0hpu9zH6o8gq6ORBoW5xMtA-&index=3