Community mailing list archives

community@mail.odoo.com

Re: Referencing a Many2many field in a format string in a Kanban view

by
Leonardo Donelli
- 08/14/2015 07:20:44
2015-08-10 15:16 GMT+02:00 Hieu Nguyen <hieutngn@gmail.com>:
> Hello everyone,
>
> In my Kaban views, I have a Many2many field named "pages". If i used " name="pages" />", it works fine and show the Many2many tags. However, if I
> use: "".
>
> The part {{ record.pages.raw_value[0].site }} return undefined when I check
> with Firebug.

I should check, but I think that ``raw_value`` returns just the list
of ids, so you can't refer to the related fields. In your case,
``record.pages.raw_value[0]`` is just a single integer (the id of the
first record), so ``.site`` is undefined