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

For an workflow, How to enable a notification bubble with number on menu item?

Ex: In the Human Resource>Leave Requests to Approve menu, when a subordinate applies for leave, the manager can see the number of notifications he has to approve.

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

Its easy. You'll find " def _needaction_domain_get(self, cr, uid, context=None):" in odoo/addons/hr_holidays/hr_holidays.py. It inherit from 'ir.needaction_mixin'.
There you have to to return a domain and the number of records filtered will be display in a bubble

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