From 4a698da8b37055922be75a85f76d750dfbbadd42 Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Fri, 30 Jan 2015 14:03:10 +0100 Subject: [IMP] qweb: Allow to propagate value to variables outside the loop. If the variable was existing outside the context of the ``foreach``, the value is copied at the end of the foreach into the global context. Fix #4461 - Q74531 - Q71486 - Q71675 --- doc/reference/qweb.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'doc/reference') diff --git a/doc/reference/qweb.rst b/doc/reference/qweb.rst index a7564ded394..30ef4c25196 100644 --- a/doc/reference/qweb.rst +++ b/doc/reference/qweb.rst @@ -158,6 +158,26 @@ variables for various data points: a boolean flag indicating that the current iteration round is on an odd index + +These extra variables provided and all new variables created into the +``foreach`` are only available in the scope of the``foreach``. If the +variable exists outside the context of the ``foreach``, the value is copied +at the end of the foreach into the global context. + +:: + + + + +

+ + + +

+ + + + .. _reference/qweb/attributes: attributes -- cgit v1.2.3