Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3202 มุมมอง

Guys,

In my module I'm overwriting a method 'stock.move' so I added _inherit = 'stock.move' then I added a message wizard to create a messages if statement is something. Everything works if I'm logged in as an admin, if I switch account into normal user it gives me an error Access denied, Can't create message. Ask your administrator ...

So I added in line _inherit = 'stock.move', 'mail.thread' ....

messaging works but it affects somehow 'stock.move' to be more specific it affects a mechanism which check product location and display the list of it where product actually is stored. So instead of very long list of locations I should get a shortlist with one/two/... locations.

If I remove 'mail.thread' from _inherit = '' location list works but it won't let me finish 'move' and displaying message that it can't create a message.

Why it affects my method or what should I add to have a right to create message?


อวตาร
ละทิ้ง

Hi, Can you check the CRUD access to the new user's group to the model stock.move

Related Posts ตอบกลับ มุมมอง กิจกรรม
Module Install Error! แก้ไขแล้ว
1
ธ.ค. 22
6314
Delete module from module list แก้ไขแล้ว
2
มิ.ย. 20
41946
1
ต.ค. 15
6183
0
ธ.ค. 15
5376
How can I create a Popup Message? แก้ไขแล้ว
3
พ.ค. 24
15130