تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
2535 أدوات العرض

This is the My Code For Services Page in Theme Module....


الصورة الرمزية
إهمال
أفضل إجابة

Hello Mohanraj,

Please, Find code in comment. 

I hope this will help you. 

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

الصورة الرمزية
إهمال

The error is generated because of wrong value in the "view_id" field of website.page record.

<field name="view_id" ref="services_page_template"/>

view_id is Many2one field on website.page of comodel "ir.ui.view" and you are giving a template ID instead of ID of any view.

أفضل إجابة

Dear Mohanraj,

I think you should try to change the code sequence. First of all you write "services_page" code, then after write "service_page_link" code then after call your template.

in the xml file code run sequentially. So in your code, service page not found which is used in your template.s o give you the error for "External ID not found in system".

I hope this information is helpful to you and after the change sequence your problem will be solved.

Feel free for further assistance on contact@geminatecs.com

Thank you
Geminate Consultancy Services

الصورة الرمزية
إهمال
الكاتب

Hi GeminateCS,

After arrange the sequence shown same error came...

Traceback (most recent call last):
File "E:\SVN\ODOO15\O15\odoo\http.py", line 644, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "E:\SVN\ODOO15\O15\odoo\http.py", line 302, in _handle_exception
raise exception.with_traceback(None) from new_cause
odoo.tools.convert.ParseError: while parsing file:/e:/svn/odoo15/o15/skit_themes/theme_ivy/views/pages/services_page.xml:4, somewhere inside
<record id="our_services_page" model="website.page">
<field name="url">/Our Services</field>
<field name="is_published">True</field>
<field name="view_id" ref="theme_ivy.our_services"/>
<field name="cache_time">0</field>
<field name="track">True</field>
</record>

Hello Mohanraj,

Please share your services_page.xml file code I think you change the code so we can't understand the error. Kindly share your code.

Feel free for further assistance on ontact@geminatecs.com.

Thank you
Geminate Consultancy Services

المنشورات ذات الصلة الردود أدوات العرض النشاط
4
مارس 24
5260
1
مارس 24
1793
1
سبتمبر 22
3901
2
يوليو 22
2470
1
يونيو 22
2993