How do I accept only capitals fields before creating a record?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
1
Responder
2736
Vistas
You have to override method create like this:
def create(self, cr, user, vals, context=None):
# do something with values of field (in 'vals' dictionary)
return super(your_class, self).create(cr, user, vals, context=context)
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Inscribirse