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

I am trying to change the colour of some text on my Odoo v14. website by using the webeditor colour picker.

First I highlight some text on my page. Then I input a HEX colour in the colour picker, this colour gets highlighted too. But now I can't apply the colour to my text.

It's only possible to use the colours in the colour palette or pick a colour in the colour picker by using the mouse.  What am I doing wrong?

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

Just check fr this answer may help you,

Take a closer look at what you are wanting to do on specific section.
create a custom selection field that stored the HTML codes of the colors as the Value.

Then used this syntax for changing the style attribute:

margin-bottom: 10px; border-width: 5px; border-color: {{record.x_order_type.raw_value or 'white'}};

Note that you don't actually need the t-attf- prefix when you are not using substitution to compute attributes on-the-fly - see

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

So honestly i thought you where just a bit... slow untill i tried doing that myself :D

so i filed it as a issue on github. 

https://github.com/odoo/odoo/issues/95710

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

This is exactly the same question as i have. Did you find the answer yet? 

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
4
أكتوبر 20
6327
0
مايو 19
3303
0
مارس 18
4428
4
فبراير 24
2905
1
يونيو 23
1628