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
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
1
Répondre
2710
Vues
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)
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire