Community mailing list archives

community@mail.odoo.com

x

by
mudoko
- 10/13/2016 02:28:37
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

  • Re: x

    by
    Skillteam, Houssine BAKKALI
    - 10/13/2016 07:36:48 - 0