Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
8611 Ansichten

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?

Avatar
Verwerfen

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

Beste Antwort

function

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

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Juni 25
932
2
März 22
12577
2
Apr. 15
12577
1
März 15
9180
1
März 15
6179