Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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?
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 3/30/16, 11:21 AM|
|Seen: 250 times|
|Last updated: 3/30/16, 11:38 AM|