[FIX] web: do not set the one2many dirty on field validation
authorDenis Ledoux <dle@odoo.com>
Fri, 14 Nov 2014 14:49:39 +0000 (15:49 +0100)
committerDenis Ledoux <dle@odoo.com>
Fri, 14 Nov 2014 14:52:58 +0000 (15:52 +0100)
This rev. 06104ba553702b16878d52c5b8ab089355216a5e

Added the dirty flag on the o2m field when the editor of the editable list was enabled (meaning that the editable list has been altered)) because the dirty flag was not set correctly by the one2many during the edition, at the time.

It looks like this is now the case

Besides, as now, we valid all the editable list of the form, wether or not the editable list was altered, we must not set the o2m as dirty anymore.

addons/web/static/src/js/view_form.js

index 819920f..be16faa 100644 (file)
@@ -3885,7 +3885,6 @@ instance.web.form.One2ManyListView = instance.web.ListView.extend({
         if (!this.fields_view || !this.editable()){
             return true;
         }
-        this.o2m._dirty_flag = true;
         var r;
         return _.every(this.records.records, function(record){
             r = record;