Hello,
I am developing an addon and when I install it I get the following error:
ParseError: "Invalid view definition
Error details:
Model not found: nacex.config.settings
Error context:
View `nacex.config.settings form`
[View_id: 2159, xml_id: n / a, model: nacex.config.settings, parent_id: n / a]
The res_config.py model contains the following:
# -*- coding: utf-8 -*- import logging
from openerp import models, fields, api, exceptions, _
from . company import ResCompany
_logger = logging.getLogger(__name__)
class NacexConfigSettings(models.TransientModel):
_name = 'nacex.config.settings'
_inherit = ['res.config.settings', 'abstract.config.settings']
# AbstractConfigSettings attribute
_prefix = 'nacex_'
_companyObject = ResCompany
wsdl_url = fields.Char(
related='company_id.nacex__wsdl_url',
)
The view contains the following:
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_nacex_config_settings" model="ir.ui.view">
<field name="model">nacex.config.settings</field>
<field name="arch" type="xml">
<form string="Configure Nacex" class="oe_form_configuration">
<header>
<button string="Apply" type="object" name="execute" class="oe_highlight"/>
or
<button string="Cancel" type="object" name="cancel" class="oe_link"/>
</header>
<group groups="base.group_multi_company">
<div>
<div>
<label for="company_id" string="Select Company"/>
<field name="company_id"
widget="selection"
class="oe_inline"/>
</div>
</div>
</group>
<separator string="Web Service Authentication"/>
<group>
<div>
<div>
<label for="username"/>
<field name="username" class="oe_inline"/>
</div>
<div>
<label for="password"/>
<field name="password" class="oe_inline"/>
</div>
<div>
<label for="wsdl_url"/>
<field name="wsdl_url" class="oe_inline"/>
</div>
</div>
</group>
</form>
</field>
</record>
<record id="action_nacex_config" model="ir.actions.act_window">
<field name="name">Configure Nacex</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">nacex.config.settings</field>
<field name="view_mode">form</field>
<field name="target">inline</field>
</record>
<menuitem id="menu_nacex_config" name="Nacex"
parent="base_delivery_carrier_label.menu_carriers_config"
sequence="20" action="action_nacex_config"/>
</odoo>
I see that the model nacex.config.settings does not create it, but it does not give any errors either, what can be the reason?
Thank you very much.
Odoo Version: 9.0