İçereği Atla
Menü
Bu soru işaretlendi
3 Cevaplar
2446 Görünümler
 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
Vazgeç

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.

En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Ara 24
4608
0
Kas 24
1881
2
Tem 24
3817
0
Nis 24
2427
3
Mar 24
3925