Community mailing list archives

community@mail.odoo.com

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

by
matt crouch
- 05/16/2016 22:26:17

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