コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5374 ビュー

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

著作者 最善の回答

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.

関連投稿 返信 ビュー 活動
3
1月 19
2782
3
3月 15
7566
0
9月 25
2469
1
3月 15
4411
1
3月 15
7097