allow copy from protected / read only fields

Bug #885160 reported by Ferdinand
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Invalid
Wishlist
OpenERP R&D Web Team

Bug Description

Example
Modules, Description - would like to copy the description text using the mouse pointer

currently only enterable/updatable fields can be copied.

Revision history for this message
xrg (xrg) wrote : Re: [Bug 885160] [NEW] allow copy from protected / read only fields

On Wednesday 02 November 2011, you wrote:
> Public bug reported:
>
> Example
> Modules, Description - would like to copy the description text using the
> mouse pointer
>
> currently only enterable/updatable fields can be copied.
>

Isn't that a feature of the browser?

Revision history for this message
Ferdinand (office-chricar) wrote :

I do not know ....
usually it is possible to copy/paste read only areas of html pages

Example - it's possible to copy the previous read only comments of this bug report....

Revision history for this message
Ferdinand (office-chricar) wrote :

see also
http://www.w3schools.com/tags/att_textarea_readonly.asp
may be this is used to protect forms from update

Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :

Hello,

I have faced the same problem at my end . See attached screenshot.

Thanks.

Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :
Changed in openerp-web:
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
importance: Undecided → Low
status: New → Confirmed
Changed in openerp-web:
importance: Low → Wishlist
Revision history for this message
Ivan Wirawan (niecw) wrote :

+1

There are 2 attributes in the HTML tag/DOM that renders the (input) tag's content cannot be modified: readonly and disabled:
- Readonly as described in the link in Comment #3 (repeated here: http://www.w3schools.com/tags/att_textarea_readonly.asp)
- Disabled as described in this link: http://www.w3schools.com/tags/att_textarea_disabled.asp

Currently OpenERP web chooses to use disabled, in which user cannot interact with the field.

Have OpenERP Web chooses to use readonly fields, user can still get into, select from, and copy from the field - and the field is sent together as part of the form in POST.

My guess is that readonly is not supported in all tags as desired and disabled is a more effective way to achieve the purpose (see: http://www.htmlcodetutorial.com/forms/_INPUT_DISABLED.html).

Browser implementation also differs. In FF user cannot interact with the disabled field. In Google Chrome, however, you can still get into and copy from the disabled field.

Preferably OpenERP Web can honour the separation of readonly and disabled tags as they behave differently.

Revision history for this message
Fabien Meghazi (OpenERP) (fme) wrote :

Now that the page view is implemented, is it still a problem ?

Revision history for this message
Ferdinand (office-chricar) wrote :

works now

Changed in openerp-web:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.