Skip to Content
Menu
This question has been flagged
2 Replies
1903 Views

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


Avatar
Discard
Best Answer

Hello Mohanraj,

Please, Find code in comment. 

I hope this will help you. 

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

Avatar
Discard

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.

Best Answer

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

Avatar
Discard
Author

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

Related Posts Replies Views Activity
4
Mar 24
2718
1
Mar 24
519
1
Sep 22
2350
2
Jul 22
1260
1
Jun 22
1508