I have this error every time I try to validate any payment or invoice since last week. (I thought it was an update problem...)
File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_sequence.py", line 198, in _next_do number_next = _update_nogap(self, self.number_increment) File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_sequence.py", line 61, in _update_nogap self.env.cr.execute("SELECT number_next FROM %s WHERE id=%s FOR UPDATE NOWAIT" % (self._table, self.id)) File "/usr/lib/python2.7/dist-packages/openerp/sql_db.py", line 154, in wrapper return f(self, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/openerp/sql_db.py", line 233, in execute res = self._obj.execute(query, params) ValueError: "operator does not exist: integer = boolean LINE 1: SELECT number_next FROM ir_sequence WHERE id=False FOR UPDAT... ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. " while evaluating u'action_move_create()'