On 29 Sep 11:41, Guillem Barba Domingo wrote:
> Hi,
> I have a little model with a "childs" One2Many field, and in another model
> I have a Many2One to that where it's forbidden to select elements with
> childs.
> which domain I have to put to filter records that has a One2Many field?
>
> I tried these domains with these results:
> a) ('childs', '=', None) => it raises a "NoneType is not iterable" error
This should work.
> b) ('childs', '=', []) => SQL syntax error (id = ())
> c) ('childs', '=', [None]) => any record listed (when there are records
> without childs)
'=' with list can not work.
> there is another option or (a) or (b) is a bug?
--
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/
pgpNPFwdIKxry.pgp
Description: PGP signature
