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

During Odoo Experience there was a demo of Field Services and the presenter showed a CHECK INVENTORY button that took the User in one click to the Products screen:


It was mentioned that this is a custom button.  How can I add this same button to my version 14 database?

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

This is the Server Action that was created for the demo:


Once it is saved, it will have an ID (you can find it in the URL) and this is one way to identify it to attach it to a button.  If this Server Action is created as part of a module, then it would also receive an External ID which could be used to attach it to a button.


The ID method of attaching it to a button is like this:


(The ID in this database was 594, so change that based on the ID of the Server Action when saved in your database)

<xpath expr="header" position="inside">
<button class="btn btn-secondary" name="594" type="action" string="Check Inventory" />
</xpath>


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 12 23
2403
0
thg 5 21
3176
0
thg 4 24
1834
1
thg 7 23
5674
1
thg 6 24
926