We would like to change the background color on the main backoffice home page from Odoo purple to blue. Using Odoo Studio we were able to load a blue background .png file when clicking on the customizations , change background. However, that leaves the top part of the screen in purple. How do we change that background color also? Reminder - we are on Odoo Online and cannot use custom Apps. Thanks.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
Base your work on this Proof of Concept.
UPDATE: Code in the GIST now supports
- Odoo 15.0
- Odoo 16.0
- Odoo 17.0
- Odoo 18.0
Given two Companies, USA with ID=1 and CANADA with ID=2, you can achieve this:
Via a Custom View:
Using this code:
https://gist.github.com/ray-odoo/17a1dc72c7f59314ed1592b1a3db7e0c
See issues below.
Worked for me! however how can I change the button's colors?
Use Browser Inspection to find out the CSS Style being used for the button and use the same approach.
Thank you, I found this too late, but still glad I've finally got here!!! Thank you
Hi Ray, I'm trying to follow this to do the same thing. However, when I try to save the view I get this:
Error:
Odoo Server Error
Traceback (most recent call last):
File "/home/odoo/src/odoo/14.0/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/home/odoo/src/odoo/14.0/odoo/http.py", line 683, in dispatch
result = self._call_function(**self.params)
File "/home/odoo/src/odoo/14.0/odoo/http.py", line 326, in _call_function
raise werkzeug.exceptions.BadRequest(msg % params)
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/odoo/src/odoo/14.0/odoo/http.py", line 639, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/src/odoo/14.0/odoo/http.py", line 315, in _handle_exception
raise exception.with_traceback(None) from new_cause
werkzeug.exceptions.BadRequest: 400 Bad Request: <function Home.web_client at 0x7f2c01e85430>, /web: Function declared as capable of handling request of type 'http' but called with a request of type 'json'
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
im using 13 online, doesnt work for me? when I set them up, the website goes offline???
Please triple check your work. This example was done with v13.