Community mailing list archives

community@mail.odoo.com

Re: x

by
Skillteam, Houssine BAKKALI
- 10/13/2016 07:36:48
Could you use a meaningful subjet for your mail next time?

about your question you have to do this thru the record rules

2016-10-13 8:34 GMT+02:00 Peter Mudoko <petypi@gmail.com>:
Hi guys i want to restrict editing unit price on a sales order form to some groups since its an onchange method i cant set readonly attribute for groups ...i have even tried web_readonly_bypass addon its not working. any hint how this works or any other suggestion this is what i did.


<field name="order_line" mode="tree,kanban" attrs="{'readonly': [('state', 'in', ('done','cancel'))]} context="{'readonly_by_pass': True}">

Systems developer

Laballieds,

Nairobi:gate 256, Nairobi.

P.O.Box - 45855 -00100, Nairobi.

Tel:+254 721449067

Email petypi@gmail.com

Mobile: +254 721449067

Website www.softlinkoptions.com

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