Odoo Help


This community 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.


Show only company partner attachments in portal?

on 9/20/13, 12:06 PM 860 views

In our portal we offer access to our customers from different companies. We would like to only show our customers in the portal issues and documents they should see. This should include attachments mentioned anywhere in issues they have access to, as well as attachments uploaded and associated with that company's partner_id. We tried doing this both with record level access on ir.attachment or with the Domain on the Window Action.

For example:

['|', '|', 
 ('partner_id', '=', user.partner_id.id),   
 ('partner_id.child_ids', 'in', [user.partner_id.id]),  
 ('partner_id.parent_id.child_ids', 'in', [user.partner_id.id]),


This works fine for the listing of all documents but does not include documents posted by a different company on an issue where the customer has access to.

Any thoughts?

Your Answer

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 9/20/13, 12:06 PM
Seen: 860 times
Last updated: 3/16/15, 8:10 AM