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

Hi Team,

I have a tree view inside of my main form for showing credit lines.  I need to be able to highlight the columns (or fields within the columns) with  a different background colour, etc... 

It appears that I can't simply just add a background color via style, etc.. Is there any way that I can add html into the tree view to at least be able to surround the fields with a div in which I set a background or border color to?  Otherwise it is not easy for the user to clearly identify which are the fields to change without actually needing to click into the cells.

Thanks,
Damien

الصورة الرمزية
إهمال
الكاتب

I have now found a solution. Simply reference the fields within css via attribute ([name-id=blah], etc)

أفضل إجابة

Also you can use html attribute background-color your tree 

Example:

<field name="account_id" style="background-color:red;"/>

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

Hello Damien Taylor,

Check below modules it will help you.

https://apps.openerp.com/apps/modules/8.0/web_tree_dynamic_colored_field/

الصورة الرمزية
إهمال