Odoo Help


Function tag and getitem tag

on 4/13/14, 4:26 PM 2,193 views

I have been seen this all through demo data xml file but couldn't able to understand - What is purpose of using Function tag and getitem tag in xml demo data files?

  1. <function model="ir.ui.menu" name="search" eval="[[(’name’,’=’,’Operations’)]]"/>

  2. <getitem index="0" type="list"> <function model="ir.ui.menu" name="search" eval="[[(’name’,’=’,’Operations’)]]"/> </getitem>

what does these exactly means?

Me too want to know the Ans for the question.. so if any experts are there please respond to this question...

on 9/15/14, 1:14 AM
Amitabh Deotale
On 1/3/18, 3:45 AM


The function tag calls a method on a model, with provided parameters. It has two mandatory parameters model and name specifying respectively the model and the name of the method to call.

Parameters can be provided using eval (should evaluate to a sequence of parameters to call the method with) or value elements (see list values).

ref : https://www.odoo.com/documentation/10.0/reference/data.html#function

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

2 follower(s)


Asked: 4/13/14, 4:26 PM
Seen: 2193 times
Last updated: 1/3/18, 3:45 AM