Skip to Content
Menu
This question has been flagged
3 Replies
2453 Zobrazenia
 File "/opt/odoo/odoo-10.0/odoo/models.py", line 1083, in _validate_fields
    raise ValidationError("%s\n\n%s" % (_("Error while validating constraint"), tools.ustr(e)))
ParseError: "Error while validating constraint

Field `session_ids` does not exist

Error context:
View `partner.instructor`
[view_id: 560, xml_id: n/a, model: res.partner, parent_id: 124]
None" while parsing /opt/odoo/odoo-10.0/addons/Open Academy folder/views/partner.xml:5, near
<record model="ir.ui.view" id="partner_instructor_form_view">
            <field name="name">partner.instructor</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="base.view_partner_form"/>
            <field name="arch" type="xml">
                <notebook position="inside">
                    <page string="Sessions">
                        <group>
                            <field name="instructor"/>
                            <field name="session_ids"/>
                        </group>
                    </page>
                </notebook>
            </field>
        </record>
Avatar
Zrušiť

Hello @jackson,

check in your .py side field was exist or not? or also check your __init__.py that your model was import or not

Good Morning, i really appreciate you are talking to me. i really want to know Odoo very well. but i am less than a month in odoo. i am using odoo 10 documentation in Building a module. my problem started  from Inheritance.  after importing partner.py and partner.xml.

attached is my folder below.
Waiting for your reply.
i am very grateful.


On Thu, May 2, 2019 at 11:02 AM Aktiv software <odoo@aktivsoftware.com> wrote:

Hello @jackson,

check in your .py side field was exist or not? or also check your __init__.py that your model was import or not

Sent by Odoo S.A. using Odoo.



--
JACKSON ELEBE

Please read the documentation first, then ask questions with a meaningful title and provide the necessary information.

Best Answer

Hello @jackson,

Good Morning, We have solved issue which you have faced.You can review screenshot for it.


Can you please mark this as resolved if you are satisfied with my answer.

Regards,




Email: odoo@aktivsoftware.com

Skype: kalpeshmaheshwari

   

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
dec 24
4638
0
nov 24
1889
2
júl 24
3840
0
apr 24
2437
3
mar 24
4143