Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
3756 มุมมอง

Hi there, 

I download & rewrite a personal sitemap for my website, but it has been changed automatically by Odoo. Do you know how to prevent this change? 

Thank you for advance!

Antoine  

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi Guys, I am reading about "ODOO automatically generates sitemap etc" I am strugling actually with opposite : my sitemap doesnt exist, and odoo doesnt generate it, any ideas how to make it work as you have it(automatic generation)?...even in attachemnts there is no file such as sitemap.xml
Thanks

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi!
I also want to remove some links from sitemap but also want to keep automatically generating option. So, my question is that, is there any way to set some links to be excluded from sitemap permanently?

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

In order to delete the cached version of /sitemap.xml, I went in the backend with technical features activated, then Settings > Technical > Database Structure > Attachments, then in the list view, search for sitemap. Delete the /sitemap.xml record and i uploaded a personal sitemap.xml

What do you I have to do to stop the re-generation? 

Thank you!

Antoine 

อวตาร
ละทิ้ง

you have to override sitemap (def sitemap_xml_index) controller and remove the code responsible to re-generation of sitemap attachement

คำตอบที่ดีที่สุด

where you put the sitemap after re-write? 
actually odoo re-generate sitemap every 12 hours and stored it as an attachment 
ref: https://github.com/odoo/odoo/blob/12.0/addons/website/controllers/main.py#L127

อวตาร
ละทิ้ง