Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
10274 Переглядів

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?

Автор

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

Найкраща відповідь

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.

Аватар
Відмінити
Найкраща відповідь

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.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
лип. 15
7768
2
трав. 23
2310
4
вер. 24
2212
2
вер. 24
1359
2
лип. 24
1728