Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
8588 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 25
908
2
thg 3 22
12546
2
thg 4 15
12559
1
thg 3 15
9163
1
thg 3 15
6159