Community mailing list archives

community@mail.odoo.com

Re[2]: [QWeb] get variable value from loop

by
Pyatak
- 01/30/2015 07:38:00
Thanks Stephen!

Will use WA :(

Thanks and Best Regards!
Petr Kotov
CodUP
http://codup.com


Четверг, 29 января 2015, 13:07 UTC от Stephen Mack <smack815@gmail.com>:
Have you seen this GitHub issue?

On Thu, Jan 29, 2015 at 6:21 AM, Peter Alabaster <peter.alabaster@opusvl.com> wrote:

Have you tried:

            <t t-set="flag" t-value="False"/>
            <!-- flag now False -->
            <tr t-foreach="o.lines" t-as="line">
                <td><span t-field="line.name"/></td>
                <td><span t-field="line.qty"/></td>
                <t t-set="line.flag" t-value="True"/>
                <!-- flag now True -->
            </tr>
            <!-- flag again False -->


On 29/01/15 08:57, CodUP wrote:
<blockquote cite="mid:1422521633.185046422@f70.i.mail.ru" type="cite">            <t t-set="flag" t-value="False"/>
            <!-- flag now False -->
            <tr t-foreach="o.lines" t-as="line">
                <td><span t-field="line.name"/></td>
                <td><span t-field="line.qty"/></td>
                <t t-set="flag" t-value="True"/>
                <!-- flag now True -->
            </tr>
            <!-- flag again False -->

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe