mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
add ui and widget
This commit is contained in:
@@ -62,6 +62,39 @@
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="oe_container">
|
||||
<div class="oe_row oe_spaced" style="max-width: 800px;">
|
||||
<div class="oe_span12">
|
||||
<h2 class="oe_slogan">Web list View Background Color</h2>
|
||||
<div class="oe_demo" style=" margin: 30px auto 0; padding: 0 15px 0 0; border:none; width: 96%;">
|
||||
<p>This module changes the line color of records based on condition like state of a record and helps distinguish between different sets of
|
||||
records based on condition.</p>
|
||||
<a href="http://www.sunpop.cn" target="_blank">
|
||||
<img src="web_bg_color_change.png" width="100%">
|
||||
<p>Set Backgroud color to filed in list view based on condition same as colors and style attributes of tree view.</p>
|
||||
</a>
|
||||
<h3># Instructions for Activating List background color property</h3>
|
||||
<p>
|
||||
Just add tree attribute like style and colors with condition you want.
|
||||
</p>
|
||||
<pre>bg_colors="grey:state=='cancel';green:state=='draft';blue:state in ('done');red:state in ('waiting')"</pre>
|
||||
<h3>eg.</h3>
|
||||
<pre class="">
|
||||
<record id="view_demo_tree" model="ir.ui.view">
|
||||
<field name="name">demo.tree</field>
|
||||
<field name="model">demo.model</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree bg_colors="grey:state=='cancel';green:state=='draft';blue:state in ('done');red:state in ('waiting')" name="demo_tree">
|
||||
<field name="name" string="Appointment" />
|
||||
<field name="state" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="oe_container oe_dark">
|
||||
<div class="oe_row oe_spaced text-center">
|
||||
|
||||
BIN
app_ui_enhance/static/description/web_bg_color_change.png
Normal file
BIN
app_ui_enhance/static/description/web_bg_color_change.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 88 KiB |
Reference in New Issue
Block a user