c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #09378
[Bug 693675] [NEW] [Account module] Account Move duplicate error
Public bug reported:
When i duplicate a confirmed account move (account.move object) then
getting errors :
File "/home/jacara/Pydev-workspace/monoserp/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/jacara/Pydev-workspace/monoserp/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/jacara/Pydev-workspace/monoserp/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/jacara/Pydev-workspace/monoserp/addons/account/account.py", line 1275, in copy
return super(account_move, self).copy(cr, uid, id, default, context)
File "/home/jacara/Pydev-workspace/monoserp/osv/orm.py", line 4268, in copy
data = self.copy_data(cr, uid, id, default, context)
File "/home/jacara/Pydev-workspace/monoserp/osv/orm.py", line 4188, in copy_data
d = rel.copy_data(cr, uid, rel_id, context=context)
File "/home/jacara/Pydev-workspace/monoserp/osv/orm.py", line 4154, in copy_data
data = self.read(cr, uid, [id,], context=context_wo_lang)
File "/home/jacara/Pydev-workspace/monoserp/osv/orm.py", line 3037, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/jacara/Pydev-workspace/monoserp/osv/orm.py", line 3157, in _read_flat
res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
File "/home/jacara/Pydev-workspace/monoserp/osv/fields.py", line 785, in get
res = self._fnct(obj, cr, user, ids, name, self._arg, context)
File "/home/jacara/Pydev-workspace/monoserp/addons/account/account_move_line.py", line 315, in _balance
cr.execute(sql, [tuple(ids)])
File "/home/jacara/Pydev-workspace/monoserp/sql_db.py", line 76, in wrapper
return f(self, *args, **kwargs)
File "/home/jacara/Pydev-workspace/monoserp/sql_db.py", line 129, in execute
res = self._obj.execute(query, params)
ProgrammingError: syntax error at or near "%"
LINE 5: AND l2.id IN %s AND l1.state <> 'draft...
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/693675
Title:
[Account module] Account Move duplicate error
Status in OpenObject Addons Modules:
New
Bug description:
When i duplicate a confirmed account move (account.move object) then getting errors :
File "/home/jacara/Pydev-workspace/monoserp/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/jacara/Pydev-workspace/monoserp/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/jacara/Pydev-workspace/monoserp/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/jacara/Pydev-workspace/monoserp/addons/account/account.py", line 1275, in copy
return super(account_move, self).copy(cr, uid, id, default, context)
File "/home/jacara/Pydev-workspace/monoserp/osv/orm.py", line 4268, in copy
data = self.copy_data(cr, uid, id, default, context)
File "/home/jacara/Pydev-workspace/monoserp/osv/orm.py", line 4188, in copy_data
d = rel.copy_data(cr, uid, rel_id, context=context)
File "/home/jacara/Pydev-workspace/monoserp/osv/orm.py", line 4154, in copy_data
data = self.read(cr, uid, [id,], context=context_wo_lang)
File "/home/jacara/Pydev-workspace/monoserp/osv/orm.py", line 3037, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/jacara/Pydev-workspace/monoserp/osv/orm.py", line 3157, in _read_flat
res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
File "/home/jacara/Pydev-workspace/monoserp/osv/fields.py", line 785, in get
res = self._fnct(obj, cr, user, ids, name, self._arg, context)
File "/home/jacara/Pydev-workspace/monoserp/addons/account/account_move_line.py", line 315, in _balance
cr.execute(sql, [tuple(ids)])
File "/home/jacara/Pydev-workspace/monoserp/sql_db.py", line 76, in wrapper
return f(self, *args, **kwargs)
File "/home/jacara/Pydev-workspace/monoserp/sql_db.py", line 129, in execute
res = self._obj.execute(query, params)
ProgrammingError: syntax error at or near "%"
LINE 5: AND l2.id IN %s AND l1.state <> 'draft...
Follow ups
References