Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
14869 Widoki

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"),

              }
Awatar
Odrzuć
Najlepsza odpowiedź

You have : _description = 'Employee Past Experience'

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

Awatar
Odrzuć
Autor

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 .

Powiązane posty Odpowiedzi Widoki Czynność
6
wrz 24
52474
2
cze 20
20106
2
kwi 18
4753
0
mar 16
6027
1
lut 16
6329