Odoo Help

0

Record rules change

By
Abin C I
on 1/12/15, 1:48 AM 902 views

A man assign a phonecall to another

The another one convert it into opportunity

Now first one cant see the opportunity

Then how the 1st one can see the status of opportunity by change the record rule??

 

 

0

When creating lead/opportunity, set a function such that the phonecall created user gets in the notified partner list of that opportunity.

        <record id="crm_rule_read_lead" model="ir.rule">
            <field name="name">Read Lead/Opportunity</field>
            <field ref="model_crm_lead" name="model_id" />
            <field name="domain_force">['|','|',('user_id','=',user.id),('user_id','=',False),('message_follower_ids','in',[user.partner_id.id])]</field>
            <field name="groups" eval="[(4, ref('YOUR USER-DEFINED GROUP'))]" />
            <field eval="0" name="perm_unlink" />
            <field eval="0" name="perm_write" />
            <field eval="1" name="perm_read" />
            <field eval="0" name="perm_create" />
        </record>

0
Abin C I
On 1/12/15, 3:55 AM

Thnks Achu Bhai.But when i try i got this error,

raise ValueError("Invalid field %r in leaf %r" % (left, str(leaf))) ValueError: Invalid field 'create_id' in leaf "<osv.ExtendedLeaf: ('create_id', '=', 5) on crm_phonecall (ctx: )>"

provide me your code

Atchuthan - Technical Consultant, Sodexis Inc
on 1/12/15, 4:57 AM

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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 1/12/15, 1:48 AM
Seen: 902 times
Last updated: 3/16/15, 8:10 AM