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.


Filter projects by customer

on 10/17/13, 5:50 AM 1,114 views

In Portal customer wants to add new issue. He has to choose one project. The list must displays only projects belongs to his company.

What is your question? If you want to report this as a bug, you should do it on launchpad at the following URL rather than here. https://bugs.launchpad.net/openobject-addons/+filebug

Fabrice Henrion (fhe)
on 10/18/13, 12:22 AM
On 10/18/13, 10:07 AM

I found the solution on my own

    <record model="ir.rule" id="portal_project_rule">
        <field name="name">Project: portal users: portal</field>
        <field name="name">Projects belog to portal user or company</field>
        <field name="model_id" ref="project.model_project_project"/>
        <field name="domain_force">
             ('partner_id.child_ids', 'in', [user.partner_id.id]),
             ('partner_id', 'in', [user.partner_id.id]),
             ('privacy_visibility', 'in', ['portal']),

This can't work: name is used twice, and it doesn't assign the rule to the Portal user group.

Daniel Reis
on 10/18/13, 3:12 PM

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

0 follower(s)


Asked: 10/17/13, 5:50 AM
Seen: 1114 times
Last updated: 3/16/15, 8:10 AM