crash when trying to create new project based on template

Bug #615068 reported by davidstern
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP Agile Methodology
New
Undecided
Unassigned

Bug Description

I defined a series of templates for projects. There is a button in the detailed view (tab administration) of a project template to create a new project based on that template. When I use it, this is the message I get:

ProgrammingError: syntax error at or near "27"
LINE 1: update project_task set active=True where project_id in 27

I tried with different protocol and client, but still the same behaviour.

This is the whole message:

Environment Information :
System : Windows-XP-5.1.2600-SP3
OS Name : nt
Operating System Release : XP
Operating System Version : 5.1.2600
Operating System Architecture : 32bit
Operating System Locale : de_CH.cp1252
Python Version : 2.5.2
OpenERP-Client Version : 5.0.12
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/usr/lib/openerp-server/netsvc.py", line 247, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/usr/lib/openerp-server/netsvc.py", line 76, in __call__
    return getattr(self, method)(*params)
  File "/usr/lib/openerp-server/addons/audittrail/audittrail.py", line 340, in execute
    return fct_src(db, uid, passwd, model, method, *args)
  File "/usr/lib/openerp-server/addons/base_module_record.zip/base_module_record/base_module_record.py", line 38, in execute
    res = super(recording_objects_proxy, self).execute(*args, **argv)
  File "/usr/lib/openerp-server/service/web_services.py", line 582, in execute
    res = service.execute(db, uid, object, method, *args)
  File "/usr/lib/openerp-server/osv/osv.py", line 58, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/openerp-server/osv/osv.py", line 119, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/lib/openerp-server/osv/osv.py", line 111, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/lib/openerp-server/addons/project/project.py", line 176, in duplicate_template
    self.copy(cr, uid, id, default=default)
  File "/usr/lib/openerp-server/addons/project/project.py", line 170, in copy
    cr.execute('update project_task set active=True where project_id in %s', (tuple(ids,)))
  File "/usr/lib/openerp-server/sql_db.py", line 77, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib/openerp-server/sql_db.py", line 122, in execute
    res = self._obj.execute(query, params)
ProgrammingError: syntax error at or near "27"
LINE 1: update project_task set active=True where project_id in 27

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.