Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ

I have a server action that performs some operation based on the value of the current record context, but odoo forbids calling a server action on a record when write permission is not accorded.

I'm questioning why is it necessary to check for write permission before launching the server action and how can I work around this.

I can inherit the model and override the method but I want to know if there is another solution.

 This is the link to the code that checks for the permission is located in the run method of IrActionsServer model inside the ir_actions file


Thanks,

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 10 23
5262
1
thg 11 23
2738
3
thg 8 25
2308
1
thg 5 25
2540
1
thg 4 25
3512