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
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
1
Rispondi
2586
Visualizzazioni
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)
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati