跳至内容
菜单
此问题已终结
4413 查看

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" />

 

 

形象
丢弃