Merge lp:~unifield-team/unifield-web/uf-2235 into lp:unifield-web

Proposed by Quentin THEURET @Amaris on 2013-11-22
Status: Merged
Merged at revision: 4728
Proposed branch: lp:~unifield-team/unifield-web/uf-2235
Merge into: lp:unifield-web
Diff against target: 12 lines (+1/-1)
1 file modified
addons/openerp/static/javascript/form_state.js (+1/-1)
To merge this branch: bzr merge lp:~unifield-team/unifield-web/uf-2235
Reviewer Review Type Date Requested Status
UniField Dev Team 2013-11-22 Pending
Review via email: mp+196236@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'addons/openerp/static/javascript/form_state.js'
2--- addons/openerp/static/javascript/form_state.js 2013-05-28 12:06:40 +0000
3+++ addons/openerp/static/javascript/form_state.js 2013-11-22 08:55:38 +0000
4@@ -245,7 +245,7 @@
5 switch (attr) {
6 case 'readonly':
7 var editable = openobject.dom.get(prefix + '_terp_editable');
8- if (editable && (editable.value == 0 || editable.value == 'False')) {
9+ if (widget.type != 'button' && editable && (editable.value == 0 || editable.value == 'False')) {
10 // We are in 'non-editable' mode, so we force readonly = True
11 // whatever readonly attrs result
12 result = true;

Subscribers

People subscribed via source and target branches

to all changes: