Skip to Content
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
4753 Näkymät

Helo everyone . I was looking all over but could not find , how change/edi tree view to change colour on listed orders .

In previous versions of odoo open orders was blue and done orders was black it is clear to watch the open orders list . Now on odoo 9 I have all colors the same for open orders and finished/done orders . I tried modiffy tree view but no results . Please help , if you can past here short code to add in tree view form . Thank you for your help in advance .

Avatar
Hylkää
Paras vastaus

Hello Marcin,


Please add code in the <tree> tag for the Sale order:-

<tree string="Sales Orders" fonts="bold:message_unread==True" colors="grey:state=='cancel';blue:state in ('waiting_date','manual');red:state in ('invoice_except','shipping_except')">


Please add code in the <tree> tag for the Quatation:-

<tree string="Quotation" fonts="bold:message_unread==True" colors="grey:state=='cancel';blue:state in ('waiting_date','manual');red:state in ('invoice_except','shipping_except')"> 


Hope this will works.

Thanks,



 

 

Avatar
Hylkää
Paras vastaus

Please see the below sample code to make tree view with different color for different state of sale order.

<?xml version="1.0"?>

<tree string="Sales Orders" decoration-bf="message_needaction==True" decoration-muted="state=='cancel'" colors="grey:state=='cancel';blue:state in ('draft','sent','sale')">

<field name="message_needaction" invisible="1"/>

<field name="name" string="Order Number"/>

<field name="date_order"/>

<field name="partner_id"/>

<field name="user_id"/>

<field name="amount_total" sum="Total Tax Included" widget="monetary"/>

<field name="invoice_status"/>

<field name="state" invisible="1"/>

</tree>

Avatar
Hylkää
Related Posts Vastaukset Näkymät Toimenpide
4
tammik. 24
20591
2
tammik. 24
779
0
elok. 23
959
2
toukok. 22
2361
5
syysk. 21
15454