Skip to Content
Menu
This question has been flagged
1 Reply
5463 Views

Hi,

I created 2 models in different modules.I install the first module (classA)... but when trying to install the second one , I got this error :

File "/opt/odoo13/community/odoo/addons/base/models/ir_ui_view.py", line 614, in raise_view_error
    raise ValueError(message)
ValueError: Field `field_ids` does not exist

Error context:
View `calendar_extend_form`
[view_id: 583, xml_id: n/a, model: calendar.event, parent_id: 378]


//py

(module1)

class A(models.Model):
    _inherit = 'calendar.event'

    field_ids = fields.Many2many('res.partner', 'calendar_event_present_ids', 'calendar_id', 'present_id')
    field_x = fields.Html(string='x')

(module2)
class B(models.Model):
    _inherit = 'calendar.event'


//xml
 <record id="calendar_extend_form" model="ir.ui.view">
            <field name="name">calendar_extend_form</field>
            <field name="model">calendar.event</field>
            <field name="inherit_id" ref="module1.calendar_extend_view_form"/>
            <field name="arch" type="xml">
                <xpath....
                       <field name="field_ids" widget="many2manyattendee"/>
                       <field name="field_x"/>
                </xpath>
            </field>
        </record>


Avatar
Discard
Best Answer

Hi,

Just add the module 1 as the dependency for the module to 2 and see whether you get the same error or not.


Also see: How to Fix Field Does Not Exist Error Odoo


Thanks

Avatar
Discard
Author

AddIng the module 1 as the dependency for the module to 2 did not correct the error @Niyas Raphy

Related Posts Replies Views Activity
3
Apr 24
1008
0
May 24
46
1
Apr 24
1822
4
Sep 23
3084
2
Sep 23
5592