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

Hi, I know that we can pass parameters/actions through URL like ?debug and ?db. What else can be pass in the URL? Thanks

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

you can get below information from url

1) db = your db name

2) debug = debug mode, kitten = for kitten mode like type theam of kitten nothing more.

3) id = id of record

4) view_type = form,list,graph,calendar

5) model= name of object

6) menu_id = id of menu

7) action = action id which called on click of menu

Ảnh đại diện
Huỷ bỏ
Tác giả

Do you know it the menu_id number and action number is fix i.e can we do a list of the available action?

menu_id and action number is fix..we can get list of action id from db table

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

You can activate the kitten mode with ?kitten=1. But it seems to be a kind of Easter egg since there is no functional need :)

See question https://accounts.openerp.com/forum/Help-1/question/3915/

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I was able to set model and id, however I am still not sure if it was the best way to solve my question, so I can't recommend it for sure. (https://accounts.openerp.com/forum/Help-1/question/3930/)

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Here a list of what I got for the moment, fill free to update my list or give a reference to an existing list

?debug (to access the debug mode)

?db={databasename} (Useful to use in a shortcut to user if you want to avoid the bad choice of database)

?kitten=1 (see the dedicated post for more explanation, (link to be add))

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 22
11349
5
thg 1 24
16130
1
thg 5 25
729
0
thg 12 24
9448
0
thg 11 24
1381