Default focus does not work in forms
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP R&D Web Team |
Bug Description
1) Steps to reproduce the issue you have observed
- as a user with administration rights, go to Settings -> Customization -> User Interface -> Views
- select the sale.order.form view and modify it
- give the default focus to a field in the sale order view by changing the last line of the following:
====
====
and adding default_focus="1":
====
====
- do the same for a field in the sale order line form by changing the last line of the following:
====
====
and adding default-focus="1":
====
====
- save the modifications
- create a sale order (Sales -> Sales -> Sales order -> Create) and notice that the default focus is given to the customer field
- create a sale order line and notice that there is no focus
2) The result you observed
No focus is given to the "product" field when creating a sale order line.
3) The result you expected
The initial focus should be given to that field, as specified in the XML description of the view.
4) The platform your are using
OpenERP Server: Linux
OpenERP Webclient: Used under Windows
5) The OpenERP version you are using
OpenERP 6.1
I did not try if this issue is the same for other forms, but I guess so.
Thanks in advance !
affects: | openobject-addons → openerp-web |
Hello,
I have also checked with change in xml file, After changing it the behavior of gtk is expected but not in web.
Thank.