跳至內容
選單
此問題已被標幟
2 回覆
8555 瀏覽次數

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...

最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
6月 25
849
2
3月 22
12478
2
4月 15
12518
1
3月 15
9127
1
3月 15
6111