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

I'm trying to replace a button with this name, but I can't find it. How can I do? I can't pass xpath with string or anything. I need help

<button string="New Quotation" name="%(sale_action_quotations_new)d" type="action" class="oe_highlight"
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Paolo,

Here are the steps to get the name of the action:

  1. Go to the view you want your button to open

  2. Activate developer mode

  3. Go to the top right, you will see the developer icon. Click on it and select Edit Action

  4. On Edit Action you will get the external ID of the action, copy that and put it in your button like below

  5. If you want your action to open a form view directly you can set the view type value to form only on the Edit Actions window.

<button string="New Quotation" name="%(external_id_of_action)d" type="action" class="oe_highlight"


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 4 19
6410
3
thg 12 24
4358
2
thg 5 20
20419
2
thg 7 24
2528
1
thg 6 24
5007