openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #23432
[Bug 1124130] [NEW] [table].id IN (false) HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
Public bug reported:
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
** Affects: openobject-server
Importance: Undecided
Status: New
--
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 Server:
New
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/openobject-server/+bug/1124130/+subscriptions
Follow ups
-
[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.
From: Stefan Rijnhart (Therp), 2013-02-28
-
[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.
From: Alexandre Fayolle - camptocamp, 2013-02-28
-
[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.
From: Stefan Rijnhart (Therp), 2013-02-14
-
[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.
From: Olivier Dony (OpenERP), 2013-02-14
-
[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.
From: Holger Brunn (Therp), 2013-02-14
-
[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.
From: Stefan Rijnhart (Therp), 2013-02-13
-
[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.
From: Olivier Dony (OpenERP), 2013-02-13
-
[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.
From: Olivier Dony (OpenERP), 2013-02-13
-
[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.
From: Launchpad Bug Tracker, 2013-02-13
-
[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.
From: Launchpad Bug Tracker, 2013-02-13
-
[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.
From: Ronald Portier (Therp), 2013-02-13
-
[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.
From: Launchpad Bug Tracker, 2013-02-13
-
[Bug 1124130] [NEW] [table].id IN (false) HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
From: Holger Brunn (Therp), 2013-02-13
References