← Back to team overview

openerp-india team mailing list archive

[Bug 1124130] Re: [table].id IN (false) HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.

 

@Stefan: well I certainly don't blame you for doing the extra effort and I understand why you do it. It's just that I was planning to merge the fixes in the various stable branches and thought you were going to do the work twice or risked getting unnecessary conflicts.
BTW what we mean in the policy is that we will only backport patches ourselves for High+ issues. That does not preclude accepting MPs for past stable versions, especially if the issue is sufficiently serious (nothing that looks remotely like a wishlist) and if we receive a ready-to-merge MP from the community. No guarantees, but that means your MPs for 6.1 & 7.0 are useful :-) I'll adapt the wording on the bug management policy to make that more explicit.

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1124130

Title:
  [table].id IN (false) HINT:  No operator matches the given name and
  argument type(s). You might need to add explicit type casts.

Status in OpenERP Community Backports (Server):
  Fix Committed
Status in OpenERP Server:
  Confirmed
Status in Therp Backports:
  Fix Committed

Bug description:
  When getting many2one fields via the value= parameter which *name* is
  False, the error above is thrown.

  This is caused by the fact that bool is an instance of int and
  http://bazaar.launchpad.net/~openerp/openobject-
  server/trunk/view/head:/openerp/osv/fields.py#L465 filters out [x for
  x in res.values() if isinstance(x, (int,long))]

  This applies to 6.1, 7.0, trunk, MPs follow

To manage notifications about this bug go to:
https://bugs.launchpad.net/ocb-server/+bug/1124130/+subscriptions


References