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
- Bogføring
- Lager
- PoS
- Project
- MRP
Dette spørgsmål er blevet anmeldt
1
Svar
2596
Visninger
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)
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Tilmeld dig