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

I have a client who wants to use notes and have them global across all users. It would be easiest to just remove the user dependency to display to all users. The other option is to add message_follower_ids upon creation to add a "general" channel as a follower but I'm clueless as to what the values would be.

Any thoughts, ideas, advice is greatly appreciated.

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

Make a custom field to indicate if a Note is "Globally Shared":


Add the field to the User Interface:


Change the Record Rules to include this case:


When a Note is made, to mark it Globally shared, Users will check the box:


USER ONE (BLUE) WILL SEE THIS:


USER TWO (RED) WILL SEE THIS:


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

Per a user on Stack Overflow, I commented out 'security/ir.rule.xml' in notes/__openerp__.py and that made all notes public to all users. This is the functionality that my client has asked for and it works perfectly.

http://stackoverflow.com/questions/43145514/make-notes-global/43146568#43146568

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 7 23
3111
3
thg 7 25
7247
1
thg 5 25
1252
3
thg 2 25
4792
2
thg 1 25
2031