Odoo Help

0

User can access all leads of all users but can only see his/her own opportunities.?

By
Ankit H Gandhi(AHG)
on 1/21/15, 2:27 AM 766 views

Hello everyone,

user can see all lead or lead own using groups but it is possible to user can see all opportunities or opportunities own.

Thanks in advance

Regards,

Ankit H Gandhi

0

Ankit H Gandhi(AHG)

--Ankit H Gandhi(AHG)--
1111
| 5 4 6
Rajkot, India
--Ankit H Gandhi(AHG)--

Learning Python..

Ankit H Gandhi(AHG)
On 2/9/15, 8:31 AM

Hello Everyone,

     Using this code see only his/her own opportunities.

     write down this code in .xml file

     <record model="ir.actions.act_window" id="crm.crm_case_category_act_oppor11">
            <field name="name">Opportunities</field>
            <field name="res_model">crm.lead</field>
            <field name="view_mode">kanban,tree,graph,form,calendar</field>
            <field name="domain">['|','|',('type','=','opportunity'),('user_id','!=',1),('user_id','=',uid)]</field>
            <field name="context">{'stage_type': 'opportunity', 'default_type': 'opportunity', 'default_user_id': uid}</field>
            <field name="view_id" eval="False"/>
            <field name="search_view_id" ref="crm.view_crm_case_opportunities_filter"/>
            <field name="help" type="html">
                <p class="oe_view_nocontent_create">
                  Click to create a new opportunity.
                  </p><p>
                  OpenERP helps you keep track of your sales pipeline to follow
                  up potential sales and better forecast your future revenues.
                  </p><p>
                  You will be able to plan meetings and phone calls from
                  opportunities, convert them into quotations, attach related
                  documents, track all discussions, and much more.
                </p>
            </field>
     </record>

if you find this answer helpful, please give me a thumbs up vote    

Thanks & Regards,

Ankit H Gandhi

0
Martin Temmink
On 1/21/15, 6:51 PM

I'm not 100% sure if I untherstand your question correctly.


You can set the user rights in the sale-field of that particulary user.
For this you have to go-to the admin section of oddo, select users from the left-panel and select the user. Then you will see a view with all kinds of rights you can give to that user.  If I'm correctly you have to tweak the sale-section to user can see only his own orders, and than save the information. 

screenshot of user settings



if you don't see any of these settings then enable technical settings for your admin account, and try again.

 

if you find this answer helpful, please give me a thumbs up vote (so in the future I can attach some screenshots, to make it easier to understand)!

 

 

Hello Martin, Thank you for answer but i want that work on opportunities menu.there is no any gruop

Ankit H Gandhi(AHG)
on 1/22/15, 10:08 AM

You mean you want to have a different behavior (access rights for sales and/or leads/oppertunities). If that's the case, you have to create some additional access rights and assign them to the view.

Martin Temmink
on 1/22/15, 10:29 AM

thanks @ Martin Temmink give me suggestion, but i put domain in action so only see his/her own opportunities.

Ankit H Gandhi(AHG)
on 2/9/15, 8:35 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/21/15, 2:27 AM
Seen: 766 times
Last updated: 3/16/15, 8:10 AM