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

Hello,

I create a module and I gave some security to access account.invoice model. For my security group, I added reading capabilities to model_account_invoice. When I load my module I get the following error message. I looked in some Odoo module security file and I saw that it is wrote well. I added "account" as a dependence of my module and I still getting this error message.

Exception: Module loading custom_module failed: file custom_module/security/ir.model.access.csv could not be processed:
 Line 34 : No matching record found for external id 'model_account_invoice' in field 'Object' 

What I forgot?

Thanks


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

Try using account.model_account_invoice instead of just model_account_invoice

Ảnh đại diện
Huỷ bỏ
Tác giả

That's working!!!!! Thanks for the hint!

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 17
3205
3
thg 12 23
21688
1
thg 4 23
3361
0
thg 6 25
321
0
thg 1 25
1423