changeset 119921ae2ec8 in sao:5.2
details: https://hg.tryton.org/sao?cmd=changeset;node=119921ae2ec8
description:
        Do not use record in __init__ of form widget

        During the initialization of the widget, the view may not yet have a 
proper
        record. But update_img access the record of the view.
        Also it is safer for list-form to define the _record before calling 
super in
        case there is an access to record attribute.

        issue8616
        review285981002
        (grafted from 9953ba78be722cf41f66c8750e7c4dfeecf1974c)
diffstat:

 src/view/form.js |  1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diffs (11 lines):

diff -r d121be221dbd -r 119921ae2ec8 src/view/form.js
--- a/src/view/form.js  Sun Oct 06 13:50:55 2019 +0200
+++ b/src/view/form.js  Sat Sep 28 23:23:01 2019 +0200
@@ -3681,7 +3681,6 @@
                     'class': 'text-center'
                 }).append(group).appendTo(this.el);
             }
-            this.update_img();
         },
         set_readonly: function(readonly) {
             this.but_select.prop('disable', readonly);

Reply via email to