Odoo Help


How to declare a variable in aeroo and display it ?

Yug Faa
on 5/16/13, 9:19 AM 2,479 views

Hi everybody,

I use aeroo to report on .odt, within a loop for I want ti initializze a variable i=0, then it increments in the loop, and in the end I will show the i

It's my idea to catch the value of i in every loop

<for each="oneaddress in o.address">
<i = i + 1>

the error :

__filter() got an unexpected keyword argument 'i'

Any idea, thanks


Francesco OpenCode

--Francesco OpenCode--

| 6 8 9
Grottaglie, Italy
--Francesco OpenCode--

Italian Odoo (OpenERP) Modules Developer LINKEDIN: http://www.linkedin.com/in/francescoapruzzese

Francesco OpenCode
On 5/16/13, 11:31 AM

If you want to use an autoincrement variable, you can change your for tag with this for tag:

<for each="inc in range(count(objects))">

end call the object in the loop with this one

<objects[inc].name or ''>

when you want show the variable you must only use this tag:


About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 5/16/13, 9:19 AM
Seen: 2479 times
Last updated: 3/16/15, 8:10 AM