Odoo Help


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


Form Color

Billiard R Made
on 11/20/14, 3:40 AM 626 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" />



Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


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