Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
5201 Vues

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

Avatar
Ignorer

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

Auteur Meilleure réponse

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>
Avatar
Ignorer

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

Publications associées Réponses Vues Activité
3
janv. 19
2782
3
mars 15
7195
0
avr. 23
2163
1
mars 15
4214
1
mars 15
6869