跳至内容
菜单
此问题已终结
2 回复
5668 查看

I need to write a rules to allow customers to see their invoices, but I get this error


odoo.exceptions.AccessError: ('Sorry, you are not allowed to access this document. Only users with the following access level are currently allowed to do that:\n- Sales/User: Own Documents Only\n\t- Other Extra Rights/Portal\n\t- Technical Settings/Show Full Accounting Features\n\t- Inventory/User\n\t- Accounting & Finance/Billing\n\n(Document model: account.invoice.line) - (Operation: read, User: 243)', None)


How can I set the rules to give it access?

形象
丢弃
最佳答案

Yes, you can add the access rights of account.invoice.line (only read access). + record rule so he/she can see own invoices only. (also you need to assign read access of additional object which are used in invoice.line, so portal user can easily navigate the record.)

形象
丢弃
最佳答案

Sales -> Orders -> Customers -> Select the customer you want give him access


Action -> Grant portal access -> Tick in portal


Thanks

形象
丢弃
相关帖文 回复 查看 活动
1
3月 24
5057
4
10月 20
6552
0
3月 15
3536
1
8月 23
16351
1
10月 21
4414