Community mailing list archives

community@mail.odoo.com

variable is not reachable

by
khaled
- 09/28/2015 07:06:26
Hello

I am trying to create a qweb report and I used the following snippet however I get an error that "global name 'partner' is not defined" while evaluating


<t t-foreach="partners" t-as="partner">
    <t t-set="p_inovices" t-value="list(l.number for l in docs if l.partner_id.name == partner )" />
</t>