Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
5196 Visualizações

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
Cancelar

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

Autor Melhor resposta

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
Cancelar

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

Publicações relacionadas Respostas Visualizações Atividade
3
jan. 19
2782
3
mar. 15
7191
0
abr. 23
2159
1
mar. 15
4212
1
mar. 15
6868