Odoo Help


In openerp V7 Error while saving but record exist in database?

on 10/19/13, 9:44 AM 909 views

In my custom module ,in web browser while saving the new record its showing error and form is not going to saved mode also .But data is getting saved in database and i can see that record in Tree view tooo..How it can be possible ???

class VechicleType(osv.osv):
    def create(self, cr, user, vals, context=None):
        ret_id=osv.osv.create(self, cr, user, vals, context=context)
        print "Normally code but i have different scenario   :\t",ret_id
        return True
    _name = "vehicle.type"
    _description = "Vehicle Type Creation"
    _columns = {
        'name': fields.char('Name', size=64, required=True),
         'unit_name':fields.char("Unit Name"),
       # 'unit_name':fields.selection(_set_units,"Unit Name"),

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.


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

1 follower(s)


Asked: 10/19/13, 9:44 AM
Seen: 909 times
Last updated: 3/16/15, 8:10 AM