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

Odoo version: 13.0-20200121 CE (Docker)


Issue:

After secondary language is added to Website module, when using primary language all web elements are working (menu bar) but once the secondary language is activated, the menu bar will only show company logo and blank menu. This is using nginx HTTPS-to-HTTP proxy.


Troubleshooting done:

nginx.conf have all the common X-Forwarded-For etc configured.

web.base.url parameter has been change to " https://website.name "


May I know your experience on this and how to resolve it? Thanks.

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

Same problem here

أفضل إجابة

The following steps will fix this issue,

1. On the website, goto Customize -> HTML/CSS/JS Editor.
2. Add the following line to Web Layout section

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"/>

3. Save and the menus will start appearing while switching to the secondary language 

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

Better option is to switch from Apache to Nginx. Follow the deployment guidelines provided at the link, https://www.odoo.com/documentation/13.0/setup/deploy.html

this worked for me, thanks!

That worked also for me, thanks (Odoo 14)

أفضل إجابة

odoo.conf

proxy_mode = True

Rgds

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

After some caffeine and hair pulling, I *sort of* figured out on how to resolve this issue.

Yesterday I've updated my Odoo docker container, which made the issue worst. I only have 1 additional module, which is the web_responsive module and updating that via docker is not a walk in a park. Managed to upgrade that and made the "missing Menu Bar" issue on and off. Some uninstall / reinstall of modules later and I found out this will fix my issue:

Go to Apps > eCommerce > then do Upgrade

After that the web issue seems to be fixed. Now my web Menu Bar will show the secondary language if selected. The additional web_responsive module also works like a charm so I guess it will work on other additional module(s).

Now to give myself  a pat on the back, and a lunch treat.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يوليو 19
4114
4
مايو 16
7124
0
مارس 15
4463
0
يناير 25
1623
0
ديسمبر 24
2262