Do not pass this as argument of new_ of One2Many

211e8f0bc762 removed the event argument but the conversion to arrow function
added this as argument.
This commit is contained in:
Cédric Krier committed 2023-10-19 15:06:43 +02:00
1 parent 4e010a988f
commit b7027f89bd
1 file changed
+1 -1
+1 -1
View File
@@ -3221,7 +3221,7 @@ function eval_pyson(value){
'title': Sao.i18n.gettext("New"),
}).append(Sao.common.ICONFACTORY.get_icon_img('tryton-create')
).appendTo(buttons);
this.but_new.click(disable_during(() => this.new_(this)));
this.but_new.click(disable_during(() => this.new_()));
this.but_open = jQuery('<button/>', {
'class': 'btn btn-default btn-sm',