Contributors mailing list archives

contributors@odoo-community.org

Re: V) database error (date format?) when trying to install project management

by
Open Architects Consulting, Houssine BAKKALI
- 18/12/2015 10:02:59

As said Ray this is a bug. And it has been fixed.

Next time for this kind of issue that raises on a vanilla installation you better fill a issue form on github if the issue hasn't been reported yet. Note that version 9 still young and you may  encounter this kind of problem quiet often.

Le 17 déc. 2015 17:53, "Youness Maafi" <youness.maafi@gmail.com> a écrit :
Hi Robert,

It looks an issue with the date format used in system, i don't know what is the flow you followed to generate the error, but this is to inspect.

It seems the date format in your database is : YYYY/MM/DD ( and 13 is out of range then ), try to change the Date format in your database, or if you think it's better, you can push the issue on github ( modules' data should take in consideration that ).

--
Youness MAAFI



2015-12-17 16:23 GMT+00:00 robert <robert@redcor.ch>:
When I try to install the project management in a vanilla v9 installation i get the following error.

what can I do to fix it ??

thanks
robert

Odoo Server Error

Traceback (most recent call last):
   File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 599, in _handle_exception
     return super(JsonRequest, self)._handle_exception(exception)
   File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 636, in dispatch
     result = self._call_function(**self.params)
   File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 315, in _call_function
     return checked_call(self.db, *args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 113, in wrapper
     return f(dbname, *args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 308, in checked_call
     result = self.endpoint(*a, **kw)
   File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 887, in __call__
     return self.method(*args, **kw)
   File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 465, in response_wrap
     response = f(*args, **kw)
   File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 975, in call_button
     action = self._call_kw(model, method, args, {})
   File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 963, in _call_kw
     return checked_call(request.db, *args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 113, in wrapper
     return f(dbname, *args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 962, in checked_call
     return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 223, in wrapper
     return old_api(self, *args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/openerp/addons/base/module/module.py", line 459, in button_immediate_install
     return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
   File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 223, in wrapper
     return old_api(self, *args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/openerp/addons/base/module/module.py", line 533, in _button_immediate_function
     registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
   File "/usr/lib/python2.7/dist-packages/openerp/modules/registry.py", line 366, in new
     openerp.modules.load_modules(registry._db, force_demo, status, update_module)
   File "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 337, in load_modules
     loaded_modules, update_module)
   File "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 237, in load_marked_modules
     loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
   File "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 156, in load_module_graph
     _load_data(cr, module_name, idref, mode, kind='data')
   File "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 98, in _load_data
     tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
   File "/usr/lib/python2.7/dist-packages/openerp/tools/convert.py", line 852, in convert_file
     convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
   File "/usr/lib/python2.7/dist-packages/openerp/tools/convert.py", line 939, in convert_xml_import
     obj.parse(doc.getroot(), mode=mode)
   File "/usr/lib/python2.7/dist-packages/openerp/tools/convert.py", line 802, in parse
     self.parse(rec, mode)
   File "/usr/lib/python2.7/dist-packages/openerp/tools/convert.py", line 805, in parse
     self._tags[rec.tag](self.cr, rec, de, mode=mode)
   File "/usr/lib/python2.7/dist-packages/openerp/tools/convert.py", line 709, in _tag_record
     id = self.pool['ir.model.data']._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
   File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 223, in wrapper
     return old_api(self, *args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_model.py", line 1105, in _update
     res_id = model_obj.create(cr, uid, values, context=context)
   File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 223, in wrapper
     return old_api(self, *args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/openerp/addons/project/project.py", line 644, in create
     task_id = super(task, self).create(cr, uid, vals, context=create_context)
   File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 223, in wrapper
     return old_api(self, *args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 318, in old_api
     result = method(recs, *args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/openerp/addons/mail/models/mail_thread.py", line 197, in create
     thread = super(MailThread, self).create(values)
   File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 221, in wrapper
     return new_api(self, *args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 4114, in create
     record = self.browse(self._create(old_vals))
   File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 221, in wrapper
     return new_api(self, *args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 454, in new_api
     result = method(self._model, cr, uid, *args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 4252, in _create
     tuple([u[2] for u in updates if len(u) > 2])
   File "/usr/lib/python2.7/dist-packages/openerp/sql_db.py", line 139, in wrapper
     return f(self, *args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/openerp/sql_db.py", line 215, in execute
     res = self._obj.execute(query, params)
ParseError: "date/time field value out of range: "2015-13-01"
LINE 1: ... 'normal', 1, 'You can set a deadline on a task', '2015-13-0...
                                                              ^
HINT:  Perhaps you need a different "datestyle" setting.
" while parsing /usr/lib/python2.7/dist-packages/openerp/addons/project/project_data.xml:282, near
0You can set a deadline on a task

_______________________________________________
Mailing-List: http://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: http://odoo-community.org/groups?unsubscribe




--
---
[ Youness @ MAAFI ]

Tel:
 (+212)6.62.09.73.79
Email: youness.maafi@gmail.com

_______________________________________________
Mailing-List: http://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: http://odoo-community.org/groups?unsubscribe