Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Form field conditional formatting

by
Data Dance s.r.o., Radovan Skolnik
- 22/04/2024 13:48:51
Jose,

this would be the obvious thing I was missing. Only if I haven't tried it 
already and now re-tried again. It's not working for me in 15.0 I don't know 
why. All the decorations seem to be ignored :-( Should this be working in form 
views as well? I know it's working in tree views and all such usage in source 
I can find is limited to tree views.

Best regards

	Radovan

On pondelok 22. apríla 2024 13:22:04 CEST José Ángel Vizcaya wrote:

> Hello Radovan,

> If you want to highlight fields you can use the decoration-* inside the

> Field declaration in the XML file of the view. Here's how it works: 

> https://www.odoo.com/documentation/17.0/developer/reference/frontend/javasc

> ript_reference.html#decorations [1] I hope it helps. Best regards, José

> Vizcaya.

> On Mon, Apr 22, 2024, 03:22 Radovan Skolnik <

> notifications@odoo-community.org [2] > wrote: Hello,

> I am looking for something to allow me to conditionally highlight (i.e.

> decoration would be sufficient - no need for custom CSS styles) form(!)

> fields. I have a feeling there is something or I am missing something very

> obvious but I am at lost here. Any suggestions? Thank you very much. Best

> regards

> Radovan Skolnik

> 

> 

> _______________________________________________

> Mailing-List: https://odoo-community.org/groups/contributors-15 [3]

> Post to: mailto: contributors@odoo-community.org [4]

> Unsubscribe: https://odoo-community.org/groups?unsubscribe [5]

> 

> 

> _______________________________________________

> Mailing-List: https://odoo-community.org/groups/contributors-15 [6]

> Post to: mailto:contributors@odoo-community.org

> Unsubscribe: https://odoo-community.org/groups?unsubscribe [7]

> 

> 

> 

> [1]

> https://www.odoo.com/documentation/17.0/developer/reference/frontend/javasc

> ript_reference.html#decorations [2] mailto:notifications@odoo-community.org

> [3] https://odoo-community.org/groups/contributors-15

> [4] mailto:contributors@odoo-community.org

> [5] https://odoo-community.org/groups?unsubscribe

> [6] https://odoo-community.org/groups/contributors-15

> [7] https://odoo-community.org/groups?unsubscribe




Reference