Merge lp:~openerp-dev/openerp-web/trunk-opw-1013636-port-psa into lp:openerp-web

Proposed by Paramjit Singh Sahota(OpenERP)
Status: Rejected
Rejected by: Olivier Dony (Odoo)
Proposed branch: lp:~openerp-dev/openerp-web/trunk-opw-1013636-port-psa
Merge into: lp:openerp-web
Diff against target: 13 lines (+3/-0)
1 file modified
addons/web/static/src/js/view_form.js (+3/-0)
To merge this branch: bzr merge lp:~openerp-dev/openerp-web/trunk-opw-1013636-port-psa
Reviewer Review Type Date Requested Status
Olivier Dony (Odoo) Disapprove
Review via email: mp+135829@code.launchpad.net

Description of the change

One2many widget does not honour being 'required'.

To post a comment you must log in.
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Hi,

I notice that this branch does not include the visual hints from my original proposal:

https://code.launchpad.net/~therp-nl/openerp-web/7.0-lp1013636-x2m_honour_required_attribute/+merge/116238

Is it not bad usability not to give these hints?

Cheers,
Stefan.

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

There is already a merge proposal for trunk (and for 6.1) associated with this bug report, and it has been reviewed and improved already. Please don't waste time copying/redoing existing work, and use the contributed patch. Thanks!

review: Disapprove

Unmerged revisions

3483. By Paramjit Singh Sahota(OpenERP)

[IMP][Trunk] One2many widget does not honour being 'required'

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'addons/web/static/src/js/view_form.js'
2--- addons/web/static/src/js/view_form.js 2012-11-22 13:35:55 +0000
3+++ addons/web/static/src/js/view_form.js 2012-11-23 07:08:21 +0000
4@@ -3602,6 +3602,9 @@
5 }
6 return $.when(false);
7 },
8+ is_false: function() {
9+ return this.dataset.ids.length == 0;
10+ },
11 is_syntax_valid: function() {
12 if (! this.viewmanager || ! this.viewmanager.views[this.viewmanager.active_view])
13 return true;