Odoo Help

0

How do I accept only capitals fields before creating a record?

By
zineb
on 2/8/13, 4:04 AM 715 views

How do I accept only capitals fields before creating a record?

0
peterson30
On 2/8/13, 4:31 AM

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)

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 2/8/13, 4:04 AM
Seen: 715 times
Last updated: 3/16/15, 8:10 AM