DataError: time zone "gmt+0200" not recognized

Bug #1001926 reported by Alexis de Lattre
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

Here is the scenario to reproduce the problem with server-trunk (revno 4162) web-trunk (revno 2455) and addons-trunk (revno 6810 + the patch available here : https://bugs.launchpad.net/openobject-addons/+bug/1001806) :

1. Install the "sale" module
2. Create a sale order with one "CPU1" product and with "Create invoice" = "On delivery order"
3. Confirm the sale order
4. Open the corresponding delivery order : do "Force availability" and then "Deliver"
5. Do "Create invoice" : in the pop-up wizard :
- if you have applied the patch available on https://bugs.launchpad.net/openobject-addons/+bug/1001806, you should be able to select a "Destination journal"
- set the "Invoiced date" (don't leave it empty in order to trigger the bug)
- Click on "Create" -> you get this crash :

Server Traceback (most recent call last):
  File "/home/alexis/new_boite/dev/web-trunk/addons/web/common/http.py", line 592, in send
    result = openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/home/alexis/new_boite/dev/server-trunk/openerp/netsvc.py", line 362, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/alexis/new_boite/dev/server-trunk/openerp/service/web_services.py", line 586, in dispatch
    res = fn(db, uid, *params)
  File "/home/alexis/new_boite/dev/server-trunk/openerp/osv/osv.py", line 167, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/home/alexis/new_boite/dev/server-trunk/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/alexis/new_boite/dev/server-trunk/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/alexis/new_boite/dev/server-trunk/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/alexis/new_boite/dev/server-trunk/openerp/osv/orm.py", line 4217, in create
    cr.execute('insert into "'+self._table+'" (id'+upd0+") values ("+str(id_new)+upd1+')', tuple(upd2))
  File "/home/alexis/new_boite/dev/server-trunk/openerp/sql_db.py", line 152, in wrapper
    return f(self, *args, **kwargs)
  File "/home/alexis/new_boite/dev/server-trunk/openerp/sql_db.py", line 212, in execute
    res = self._obj.execute(query, params)
DataError: time zone "gmt+0200" not recognized
LINE 1: ...p","journal_id",create_uid,create_date) values (1,'Sun May 2...

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.