Community mailing list archives

community@mail.odoo.com

Re: many2many gives error "Expected Singleton"

by
Stefan Rijnhart
- 06/15/2015 09:40:17
On 15-06-15 14:40, Mathias Neef wrote:
<blockquote cite="mid:557EBF7C.3010300@copado.de" type="cite">        if self.cp_childs_ids:
            for rec in self:

Danger! Try

    for rec in self:
        if rec.cp_child_ids:

and replace other occurrences in the loop to 'self' by 'rec'.

Regards,
Stefan.
-- 
Therp - Maatwerk in open ontwikkeling

Stefan Rijnhart - Ontwerp en implementatie

mail: stefan@therp.nl
tel: +31 (0) 614478606
web: http://therp.nl