[Trunk] Attrs readonly condition works not properly
Bug #985005 reported by
Denis Karataev
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
Won't Fix
|
Low
|
OpenERP R&D Web Team |
Bug Description
If we have a field with attrs="{'readonly': [('name', '=', False)]}" it works properly only when "name" field didn't be not False. In other case (when "name" already was not False), field which has "attrs" condition will no longer be readonly.
In this case "name" field is many2one field. I didn't test this bug with other field types.
Related branches
lp:~openerp-commiter/openerp-web/trunk-bug-985005-psa
Rejected
for merging
into
lp:openerp-web
- Nicolas Vanhoren (OpenERP) (community): Disapprove
-
Diff: 22 lines (+3/-2)1 file modifiedaddons/web/static/src/js/view_form.js (+3/-2)
summary: |
- Attrs readonly condition works not properly + [6.1.1] Attrs readonly condition works not properly |
To post a comment you must log in.
Hello Denis Karataev,
I have checked your issue and It's working fine with my end. I have tried with Boolean field and it's working correctly(weather it is false or true). Would you please give the proper steps or test case what you did at your end. So we can easily Identified your problem.
Thanks.