base_contact_installer barfs on big data

Bug #605640 reported by Martin Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Rucha (Open ERP)

Bug Description

I'm trying to convert my stuff to trunk...
Installing base_contact module failed saying:

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

The culprit is line 56 in base_contact_installer.py:

cr.execute("INSERT into res_partner_contact (name, title, email, first_name, website) (SELECT coalesce(name, 'Noname'), title, email, function , to_char(id, '99999999') from res_partner_address)")

which is trying to cram 64 bytes into 30 with the name field.

The solution is to change the field lengths in res_partner_contact class so they match the corresponding field lengths in res_partner_address.

Related branches

Changed in openobject-addons:
status: New → Confirmed
Changed in openobject-addons:
assignee: nobody → rpa (Open ERP) (rpa-openerp)
Revision history for this message
Rucha (Open ERP) (rpa-openerp) wrote :

Thanks for pointing out,
it has been fixed in trunk-addons,
revision-id: <email address hidden>
revision-no: 4412.

Changed in openobject-addons:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.