Odoo Help


Record rules change

Abin C I
on 1/12/15, 1:48 AM 1,050 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??




Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
| 5 5 8
Puducherry, India
--Atchuthan - Technical Consultant, Sodexis Inc--
Passionate coder in Python/Odoo(formerly known as OpenERP).

Contact me via GMail: atchuthantu@gmail.com via Skype: atchuthan_skype
via Linkedin: http://in.linkedin.com/in/atchuthantu
Atchuthan - Technical Consultant, Sodexis Inc
On 1/12/15, 3:08 AM

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" />

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.


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)


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