Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
2578 Ansichten

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


Avatar
Verwerfen
Beste Antwort

Hello Mohanraj,

Please, Find code in comment. 

I hope this will help you. 

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

Avatar
Verwerfen

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.

Beste Antwort

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
Verwerfen
Autor

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

Verknüpfte Beiträge Antworten Ansichten Aktivität
4
März 24
5332
1
März 24
1828
1
Sept. 22
3994
2
Juli 22
2518
1
Juni 22
3028