Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How does one change the default text color that OpenERP uses?

By
Apex Motion Control, Inc.
on 7/28/14, 2:52 PM 2,044 views

I have been populating the Products list and noticed that when the forecast quantity goes negative the text turns red, from the default black.

However, I was barely able to notice. It was incredibly difficult to see the color change and I would like to edit the color red to be something more noticeable. Is there a setting or configuration I can change that will accomplish this for me?

It looks like I can only comment on my own post for now. In response to, Serpent Consulting Services: It looks like you are talking about editing source files. (?) Is there a way to do this off of the browser version of odoo?

Apex Motion Control, Inc.
on 7/29/14, 2:12 PM

@ Mariusz Mizgier. Thank you for the additional information. I got it working and everything is much clearer.

Apex Motion Control, Inc.
on 7/29/14, 7:19 PM
1
Mariusz Mizgier
On 7/29/14, 2:31 PM

If you want to do that in SaaS version, go to Settings -> Technical Features -> User Interface -> Views and search for product.product.tree, then in line which Serpent Consulting suggested write your colour.

2

Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
4341
| 6 6 8
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. Your Odoo/OpenERP Solution, just an email away!

Serpent Consulting Services Pvt. Ltd.
On 7/29/14, 9:48 AM

Hello,

Open this file : odoo/addons/stock/product_view.xml

Replace line no 11

<attribute name="colors">{'red':virtual_available&lt;0, 'blue':virtual_available&gt;=0 and state in ('draft', 'end', 'obsolete'), 'black':virtual_available&gt;=0 and state not in ('draft', 'end', 'obsolete')}</attribute>

with

<attribute name="colors">{color_you_want_to_set:virtual_available&lt;0, 'blue':virtual_available&gt;=0 and state in ('draft', 'end', 'obsolete'), 'black':virtual_available&gt;=0 and state not in ('draft', 'end', 'obsolete')}</attribute>

save this file and upgrade the stock module.

Thanks.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 7/28/14, 2:52 PM
Seen: 2044 times
Last updated: 3/16/15, 8:10 AM