[HIGH] Cannot create new database rev. 2029, the last

Reported by Omar (Pexego) on 2010-04-06
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenERP Server
Critical
Stephane Wirtel (OpenERP)

Bug Description

Hi,

I try to install new database but when was creating it, it fails: this error is showed:

CREATE DATABASE
Traceback (most recent call last):
File "/srv/openerp/openerp5/branches/5.0/openerp-server/bin/service/web_services.py", line 104, in __call__
modobj.update_translations(cr, 1, mids, lang)
File "/srv/openerp/openerp5/branches/5.0/openerp-server/bin/addons/base/module/module.py", line 484, in update_translations
tools.trans_load(cr.dbname, f, lang, verbose=False)
File "/srv/openerp/openerp5/branches/5.0/openerp-server/bin/tools/translate.py", line 616, in trans_load
r = trans_load_data(db_name, fileobj, fileformat, lang, strict=strict, verbose=verbose)
File "/srv/openerp/openerp5/branches/5.0/openerp-server/bin/tools/translate.py", line 728, in trans_load_data
ids = obj.search(cr, uid, [(field, '=', dic['src'])])
File "/srv/openerp/openerp5/branches/5.0/openerp-server/bin/osv/orm.py", line 3027, in search
cr.execute('select %s.id from ' % self._table + ','.join(tables) +qu1+' order by '+order_by+limit_str+offset_str, qu2)
File "/srv/openerp/openerp5/branches/5.0/openerp-server/bin/sql_db.py", line 77, in wrapper
return f(self, *args, **kwargs)
File "/srv/openerp/openerp5/branches/5.0/openerp-server/bin/sql_db.py", line 122, in execute
res = self._obj.execute(query, params)
ProgrammingError: column res_company.follow_up_msg does not exist
LINE 1: select res_company.id from "res_company" where (res_company....

**** I searched for res_company.follow_up_msg in base module and I found it in translation files and the field follow_up_msg is added to res_company in account_follow_up module not in base, the same to field overdue_msg. These two translations are new in the last commit on all translation files of base but these are causing the error. Must be delete in translation files.

#. module: base
#: model:res.company,overdue_msg:base.main_company
msgid "Would your payment have been carried out after this mail was sent, please consider the present one as void. Do not hesitate to contact our accounting department"
msgstr ""

#. module: base
#: model:res.company,follow_up_msg:base.main_company
msgid "Date : %(date)s\n"
"\n"
"Dear %(partner_name)s,\n"
"\n"
"Please find in attachment a reminder of all your unpaid invoices, for a total amount due of:\n"
"\n"
"%(followup_amount).2f %(company_currency)s\n"
"\n"
"Thanks,\n"
"--\n"
"%(user_signature)s\n"
"%(company_name)s"
msgstr ""

Related branches

This bug also affects to 5.0.8 on existing database while migrating it from 5.0.7 with --update=all or --update=base.

As Omar comments, If you delete translations from po file then server starts correctly.

marc0s (marc0s) wrote :

Maybe the point of this bug is that a bad translation file should not make the server crash.

Ivan Candelas (shellbofh) wrote :

i can confirm the bug using OpenERP 5.0.8, new installation

Changed in openobject-server:
importance: Undecided → Critical
assignee: nobody → Stephane (Open ERP) (stephane-openerp)
status: New → Fix Committed
milestone: none → 5.0.9

I updated the website with the 5.0.9 release.
The Windows Installers will be made available tomorrow.

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

Other bug subscribers