fields set as readonly can receive focus in openerp6.1--web
Bug #941984 reported by
William Beltrán
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Confirmed
|
Wishlist
|
OpenERP's Framework R&D |
Bug Description
Fields set as readonly in form views can receive focus, I think if the field is readonly is not necesary to let it get focus, it is usefull in the moment to fill form and reduce time for users because you have not to pass throw fields that are inactive.
I am using openerp6.1 we client+
Regards
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
To post a comment you must log in.
I fix this bug, i edit the file:
/addons/ web/static/ src/js/ view_form. js
in line 1467 i add this:
var disabled = (this.readonly || this.force_disabled || !this.view. is_interactible _record( )); find('input' ).prop( 'disabled' , disabled);
this.$element.
just before:
this.$element. find('input' ).prop( 'readonly' , this.readonly);
It will be important to include this in trunk i think what do you think??