تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
5887 أدوات العرض

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
مارس 24
5290
4
أكتوبر 20
6782
0
مارس 15
3701
1
أغسطس 23
16701
1
أكتوبر 21
4579