Hello,
In Odoo 18, I use the readonly attribute:
<field name="name" readonly="boolean condition"/>
Where boolean condition is a boolean, like status == 'validated'.
I would like to refer to the current day (today) in a readonly, something like this:
<field name="name" readonly=revision_date <= Date.today()"/>
With a "revision_date" in my model.
Thank you in advance,
Boris
P.S. It's working with a cron running everyday but it is probably possible to have something simpler.
Thank you very much.
Before reading your posts, I use the method 1.