Odoo Help
Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM
|
e-Commerce
|
Accounting
|
Inventory
|
PoS
|
Project management
|
MRP
|
etc.
Filter projects by customer
In Portal customer wants to add new issue. He has to choose one project. The list must displays only projects belongs to his company.
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']),
]
</field>
</record>
This can't work: name
is used twice, and it doesn't assign the rule to the Portal user group.
About This Community
This platform 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.
RegisterOdoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.
Test it nowQuestion tools
Stats
Asked: 10/17/13, 5:50 AM |
Seen: 1633 times |
Last updated: 3/16/15, 8:10 AM |
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