Odoo Help

3

1
10 Answers
7
Avatar

Ray Carnes

--Ray Carnes--
20733
| 9 7 10
Greater Los Angeles, الولايات المتّحدة
--Ray Carnes--

Business Analyst

OpenERP 6.1, 7.0; Odoo 8.0, 9.0, 10.0, 11.0 and 12.0.

Completed Odoo Functional and Technical Training.

Functional Areas:

  • CRM/Sales

  • Inventory

  • Manufacturing

  • Accounting

  • Purchasing

Major Skills:

  • Business Process Reengineering

  • Efficiency Consulting

  • User Needs and GAP Analysis;

  • Functional and Technical Design;

  • Prototyping and Proof of Concepts;

  • Requirements Specifications;

  • Agile Implementation;

  • Data Migration;

  • Configuration & Customization (UI and code);

  • Integration - Odoo and non Odoo Applications and Services;

  • Training and Knowledge Transfer;

  • Go Live Support;

  • Helpdesk;

  • Version Upgrades and Migration.

  • Accounting Expert.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

I am a skilled Communicator and I only take the serious things seriously!

Ray Carnes
24‏/6‏/2014 8:59 م

<tree colors="red:notes!=False'">

Take a look at an existing XML definition of a treeview that uses colors for more help.


 

1 Comment
Sprint IT, Chandni Gandhi
16‏/11‏/2016 4:42 ص

I want to change the color of Particular column in tree view. Please help me.

for eg. Change the background color of amount in sale order tree view.

7
Avatar

Dhinesh

--Dhinesh--
3895
| 5 4 10
Pondicherry, الهند
--Dhinesh--

Passionate coder in Python/OpenERP. Knows Django/Flask MVC frameworks.

 

Dhinesh
25‏/6‏/2014 12:35 ص

Hi, try this example...

In py file

'status' : fields.selection([('single','Single'),('married','Married')],'Status?'),

In xml file

<tree string="Status" colors="red:shop=='single';green:shop=='married' "> <field name="name"></field> <field name="status"></field> </tree>

1 Comment
Sprint IT, Chandni Gandhi
17‏/11‏/2016 7:45 ص

What is Shop ? Is it field?

4
2 Comments
Nebil Aydi
27‏/1‏/2018 3:31 م

Nice thnx :)

vineeth george
17‏/5‏/2018 5:37 ص

Good one :)

1
Carlos A García
10‏/1‏/2019 4:47 م

For Odoo 11 in original view:

<tree decoration-success="state=='done'" decoration-success="state=='undone'">

...

</tree>

on inherited view:

<xpath expr="//tree" position="attributes">

    <attribute name="decoration-danger">approved == False</attribute>

    <attribute name="decoration-bf">approved == True</attribute>

   <attribute name="decoration-success">approved == True</attribute>

</xpath>

0
jolevq
9‏/12‏/2016 11:06 ص

If you want to compare several values or make operations you can also do something like:

<tree colors="blue:state == 'draft';black:state in ('proforma','proforma2','open');gray:state == 'cancel';orange:date_due &lt; current_date;" string="Invoice" default_order="date_invoice">


take note that in xml you can not use <, >, >=,<= because that simbols are part of the structure, so instead use &lt;, &gt;, &lt;= and &gt;=

0
Avatar

tolstoj

--tolstoj--

1144
| 6 6 9
ألمانيا
--tolstoj--

hi

tolstoj
24‏/6‏/2014 3:01 م

I would make it with custom web module.

JS: RPC call with list of ID's from each row from listview

Python controller: response with list of ID's what have note field not empty.

JS: change color for this ID's

Ask a Question
Writer
Keep Informed
3 follower(s)
About This Community

This platform 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.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now