Odoo Help


Form Color

Billiard R Made
on 11/20/14, 3:40 AM 1,248 views

In my custom module, I have a form that I want to be changing the background colour depending on the transaction type.   I put the following in my xml file style="background-color:#E6E6FA" but that does not seem to be the correct syntax.   Please assist! 

    <record id="view_dt_fx_transaction_form" model="ir.ui.view">
        <field name="name">dt.fx.transaction.form.view</field>
        <field name="model">dt.fx.transaction</field>
        <field name="arch" type="xml">
            <!-- this will be our title of list/tree view -->
            <form string="Forex Transaction" style="background-color:#E6E6FA">
                <field name="txntype" />



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.


Odoo Training Center

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

Test it now

Question tools

1 follower(s)


Asked: 11/20/14, 3:40 AM
Seen: 1248 times
Last updated: 3/16/15, 8:10 AM