Skip to Content
Menú
This question has been flagged
3 Respostes
2457 Vistes
 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
Descartar

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
Descartar
Related Posts Respostes Vistes Activitat
1
de des. 24
4644
0
de nov. 24
1891
2
de jul. 24
3843
0
d’abr. 24
2438
3
de març 24
4188