Odoo Help

Welcome!

This community 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.

0

2 objects in a single Record Rule

By
abin c ibrahim
on 1/15/15, 6:56 AM 551 views

How can we add more than 1 object in a single record rule and check rule using this 2 objects...

1

Ivan

--Ivan--
3210
| 5 3 6
Jakarta, Indonesia
--Ivan--
Ivan
On 1/15/15, 7:26 AM

AFAIK you can't.  Domains only works with one record.  You can create a related or function field in the object that you want to filter to reflect the value of the other object in it and then use that field in the rule.  Note that if you use related or function field you need to store it to make Record Rules work.  For function field, you can implement fnct_search instead of storing the value.

0
abin c ibrahim
On 1/16/15, 12:45 AM

Thank you Ivan,

Can u plz tell me that what function should i create to get the crm.phonecall object in crm.lead form..

Thankz..

That will depends on what you want to filter on.

Ivan
on 1/16/15, 1:47 AM

Say you want to filter crm.phonecall based on certain information in crm.lead. crm.phonecall is linked to crm.lead through a many2one field 'opportunity_id'. So, you can either create a function call field that retrieve information based on the crm.phonecall's 'opportunity_id'. Or you can create a related field to get the information from any of the crm.lead's field.

Ivan
on 1/16/15, 1:51 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 1/15/15, 6:56 AM
Seen: 551 times
Last updated: 3/16/15, 8:10 AM