Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
4879 Vistas

Hello Odoo community,

I was thinking if there is any example that let say if invoice date is less then current date lock particular fields or field?

Any example or ideas would be appreciated

Thank you

Avatar
Descartar
Mejor respuesta

Have you tried using the readonly attribute with something like

('date','<=', ((context_today()-datetime.timedelta(days=10)).strftime('%Y-%m-%d')))  

(I haven't - just an idea)

 

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
ene 24
2740
2
jun 22
4694
2
jun 18
6192
2
nov 16
13898
2
feb 24
12711