Odoo Help

Welcome!

This community 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.

1

value too long for type character varying(64)

By
Nishant Kashyap
on 8/7/13, 7:50 AM 3,715 views

I am getting this error while instaling the module

DataError: value too long for type character varying(64)

And:

new openerp.sql_db: bad query: INSERT INTO ir_model (id,model, name, info,state) VALUES (305, 'employee.experience', 'Employee Past                                                                                                                                                                                                         Experience', NULL, 'base')

In Xml I have :

inherit='hr.employee'
'emp_family_id':fields.one2many('employee.family', 'family_employee_rel', 'Employee Family Details'),

And:

class employee_experience(osv.osv):
    _name = 'employee.experience'    
    _description = 'Employee Past                                                                                                                                                                                                         Experience'
    _columns = {
              'employer_name':fields.char('Employer Name', size=100),
              'designation':fields.char('Designation', size=50),
              'ctc':fields.char('CTC', size=50),
              'expr_start':fields.date('Start Date'),
              'expr_end':fields.date('End Date'),
              'experience':fields.char('Experience', size=20),
              'emp_expr_rel':fields.many2one('hr.employee', 'Experience', ondelete="cascade"),

              }
1
Thomas Soumarmon
On 8/7/13, 10:36 AM

You have : _description = 'Employee Past Experience'

remove blank spaces in _description to just put : _description = 'Employee Past Experience'

Yeah, you are right, I figured it out myself after checking the code again n again... the spaces were more that I was not able to figure it out using eclipse .

Nishant Kashyap
on 8/8/13, 5:29 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 8/7/13, 7:50 AM
Seen: 3715 times
Last updated: 3/16/15, 8:10 AM