muk-it / muk_web

MuK Odoo Web Modules
GNU Lesser General Public License v3.0
109 stars 232 forks source link

[12.0] Back-end theme display error in mutli companies #104

Closed Fadouchi closed 5 years ago

Fadouchi commented 5 years ago

I've installed the Back-end theme in two servers and I get the same display errors.

For example : in class dropdown-menu show, there's a background URL called by company ID "company_id.background_image" when I tried to access background image with /web/image?model=res.company&id=1&field=background_image I can see the background,

Company with ID = 1 ...

image

When I switch to another company

image

But once i switch the company i can no longer see the background, I tried manually to display the background and see if it work, I got this URL/web/image?model=res.company&id=3&field=background_image ... and does not work.

I am afraid this problem is general with all assets in Backend theme

spacimek commented 5 years ago

There are other consequences to this one... which are even more serious: 1) It is not possible to add a new background to the other company (even with "super-admin" I get: Access Denied by record rules for operation: write on record ids: [1], uid: 7, model: res.users 2) And as a consequence some other Settings updates are not possible - like Fiscal Localization etc. Simply because: The following fields are invalid: Apps Menu Background Image

keshrath commented 5 years ago

I'm not able to reproduce that error.

Company - 1

image image

Company - 2

image image