Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Record rule how i can see all Team members leads to only team leader and sale orders only in draft state?
<record id="sale_security_opportunities" model="ir.rule">
<field name="name">See Teams Leads</field>
<field name="model_id" ref="crm.model_crm_lead"/>
<field name="global" eval="True"/> <field name="domain_force">['&','|','|',('section_id.user_id','=',user.id), ('section_id.member_ids', 'in', [user.id]),('user_id','=',user.id),('user_id','=',False)]</field>
<record id="group_see_only_quotation" model="res.groups"> <field name="name">See Only Quotation</field> <field name="comment">Thsi User Can Only Leads,Opportunities and Quotations.</field> </record>
<record id="sale_security_sale_quatation" model="ir.rule"> <field name="name">Quotation Only</field> <field name="model_id" ref="sale.model_sale_order"/> <field name="global" eval="True"/> <field name="domain_force">[('state','=','draft')]</field> <field name="groups" eval="[(4,ref('bista_advancetech_ext.group_see_only_quotation'))]"/> </record>
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 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
|Asked: 10/27/16, 4:25 AM|
|Seen: 357 times|
|Last updated: 10/30/16, 3:10 PM|