Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2543 Lượt xem

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


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello Mohanraj,

Please, Find code in comment. 

I hope this will help you. 

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

Ảnh đại diện
Huỷ bỏ

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.

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 3 24
5303
1
thg 3 24
1820
1
thg 9 22
3966
2
thg 7 22
2510
1
thg 6 22
3021