تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
2459 أدوات العرض
 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>
الصورة الرمزية
إهمال

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.

أفضل إجابة

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

   

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
ديسمبر 24
4649
0
نوفمبر 24
1896
2
يوليو 24
3846
0
أبريل 24
2443
3
مارس 24
4265