mirror of https://github.com/OCA/web.git
[UPD] README.rst
parent
4325db5e19
commit
80a580fd93
|
@ -70,6 +70,21 @@ Usage
|
|||
|
||||
With this example, column which renders 'name' field will have its text colored in white on a customer records.
|
||||
|
||||
* In the tree view declaration, use ``options='"color_field": "my_color"'`` attribute in the ``tree`` tag::
|
||||
|
||||
...
|
||||
<field name="arch" type="xml">
|
||||
<tree string="View name" colors="color_field: my_color" >
|
||||
...
|
||||
<field name="my_color" invisible="1"/>
|
||||
...
|
||||
</tree>
|
||||
</field>
|
||||
...
|
||||
|
||||
* You can also use ``colors="bg_color_field: my_color"`` to defined the field name that will be used
|
||||
for the background color of the line.
|
||||
|
||||
* If you want to use more than one color, you can split the attributes using ';':
|
||||
|
||||
.. code::
|
||||
|
@ -134,6 +149,7 @@ Contributors
|
|||
* Artem Kostyuk <a.kostyuk@mobilunity.com>
|
||||
* Guewen Baconnier <guewen.baconnier@camptocamp.com>
|
||||
* Phuc Tran Thanh <phuc@trobz.com>
|
||||
* Sylvain LE GAL <https://twitter.com/legalsylvain>
|
||||
|
||||
Other credits
|
||||
~~~~~~~~~~~~~
|
||||
|
|
|
@ -411,6 +411,22 @@ With this example, column which renders 'name' field will have its background co
|
|||
With this example, column which renders 'name' field will have its text colored in white on a customer records.
|
||||
</pre>
|
||||
</li>
|
||||
<li><p class="first">In the tree view declaration, use <tt class="docutils literal"><span class="pre">options='"color_field":</span> "my_color"'</tt> attribute in the <tt class="docutils literal">tree</tt> tag:</p>
|
||||
<pre class="literal-block">
|
||||
...
|
||||
<field name="arch" type="xml">
|
||||
<tree string="View name" colors="color_field: my_color" >
|
||||
...
|
||||
<field name="my_color" invisible="1"/>
|
||||
...
|
||||
</tree>
|
||||
</field>
|
||||
...
|
||||
</pre>
|
||||
</li>
|
||||
<li><p class="first">You can also use <tt class="docutils literal"><span class="pre">colors="bg_color_field:</span> my_color"</tt> to defined the field name that will be used
|
||||
for the background color of the line.</p>
|
||||
</li>
|
||||
<li><p class="first">If you want to use more than one color, you can split the attributes using ‘;’:</p>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -472,6 +488,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
|||
<li>Artem Kostyuk <<a class="reference external" href="mailto:a.kostyuk@mobilunity.com">a.kostyuk@mobilunity.com</a>></li>
|
||||
<li>Guewen Baconnier <<a class="reference external" href="mailto:guewen.baconnier@camptocamp.com">guewen.baconnier@camptocamp.com</a>></li>
|
||||
<li>Phuc Tran Thanh <<a class="reference external" href="mailto:phuc@trobz.com">phuc@trobz.com</a>></li>
|
||||
<li>Sylvain LE GAL <<a class="reference external" href="https://twitter.com/legalsylvain">https://twitter.com/legalsylvain</a>></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="other-credits">
|
||||
|
|
Loading…
Reference in New Issue