Community mailing list archives

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

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" <> 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 ,


Odoo Techno-functional Consultant

Post to: