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

Hello,

When in Studio we click on the button in the header we have the option to "set approval rules" for one or more users.

What are the ways to do this through code without using Studio?


Thanks!
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất
Hello, being in developer mode you can identify the button and then in the form view assign the groups you want, in this way you limit the visibility of the button to the people within the group. But you will not be able to add an Approvals, only define who approves.

note: if this is a group you created, you need to export it to get the id


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

Hi there, several Odoo modules have an approval mechanism already built-in, such as Expenses, Purchases, time-off etc.

However, to add an Approval to a model that doesn't already have it (such as Contacts) you would need either Studio, a 3rd party module, or a custom module.

There are some other alternatives, such as using Scheduled Activities, but they won't be as robust as one of the other options.

Regards,

Silverdale

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 4 25
1698
1
thg 3 21
3189
2
thg 11 23
3350
2
thg 2 21
2693
3
thg 9 25
2919