How can I make the text in the, "note" field of a quotation always display as color red? It would be great to have bright colored text so it sticks out when employees view the quotation.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- सीआरएम
- e-Commerce
- लेखांकन
- इन्वेंटरी
- PoS
- प्रोजेक्ट
- MRP
This question has been flagged
Thank you, I will try that.
Hi,
Try this,
<record id="view_order_form_inherit" model="ir.ui.view">
<field name="name">sale.order.form.
<field name="model">sale.order</
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<!-- Locate the note field -->
<xpath expr="//field[@name='note']" position="attributes">
<!-- Add a conditional style attribute -->
<attribute name="style">
color: red !important;
</attribute>
</xpath>
</field>
</record>
Hope it helps
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up