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??
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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??
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>
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