Community mailing list archives

community@mail.odoo.com

Re: hide product price for a specific category for some users[V8]

by
senthil
- 05/17/2016 11:38:15
Hi ,

Try  overriding  fields_view_get to hide and show fields (e.g. based on users and groups)

 Regards
Senthilnathan G
+91-94888 91888
+60-11264 82708

On Tue, May 17, 2016 at 9:03 PM, Emna Ragheb <ragheb.amna@gmail.com> wrote:
I'm still looking for a solution , I'll ping you guys  when I find it :)

------------------------------------------------------------------------------------

Greetings ,

Emna RAGHEB 

Odoo Techno-functional Consultant



2016-05-17 2:57 GMT-04:00 mohamed mostafa <mohamedmtloob87@gmail.com>:
Hi dear sir
You can create new group and assign it to this field .
For any information
Skype: Mohamed.Mtloob
WhatsApp: 201113606018


Regards
Mohamed Mtloob

From: Oliver Yuan
Sent: ‏17/‏05/‏2016 08:43 ص
To: Community
Subject: Re: hide product price for a specific category for some users[V8]

I'm also interested to the answer. Furthermore, how to apply this to a page under notebook? - Oliver

 

 
------------------ Original ------------------
From:  "Matthew Crouch"<esperandus@gmail.com>;
Date:  Tue, May 17, 2016 10:27 AM
To:  "Community"<community@mail.odoo.com>;
Subject:  Re: hide product price for a specific category for some users[V8]
 

Your mileage may vary but when I was presented with  basically the same requirement I decided to Go the other way - make the field  invisible for everyone , and then add additional lines making it visible for specific groups.

On May 16, 2016 10:13 AM, "Emna Ragheb" <ragheb.amna@gmail.com> wrote:
Hello Community , 

I would like to hide the product price for some users in a specific category , I've tried this code in the product view: 

<field name="price_list" groups="account.group_account_manager" attrs="{'invisible': ["[('categ_id', '=', 17)]}" />

the field is invisible only for this category but it is invisible for the account manager group as well , how could I make it visible for them.


Thank you !! 

------------------------------------------------------------------------------------

Greetings ,

Emna RAGHEB 

Odoo Techno-functional Consultant


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe