Permalink
Browse files

Adding access to the widget object in template of Popup

  • Loading branch information...
nilshamerlinck committed Aug 30, 2015
1 parent d98f1ef commit 7f9c57d693fec050bbaf64ca8c74cd69132997b9
Showing with 1 addition and 0 deletions.
  1. +1 −0 addons/web/static/src/js/view_form.js
@@ -5296,6 +5296,7 @@ instance.web.form.AbstractFormPopup = instance.web.Widget.extend({
this.view_form.on("form_view_loaded", self, function() {
var multi_select = self.row_id === null && ! self.options.disable_multiple_selection;
self.$buttonpane.html(QWeb.render("AbstractFormPopup.buttons", {
+ widget:self,
multi_select: multi_select,
readonly: self.row_id !== null && self.options.readonly,
}));

2 comments on commit 7f9c57d

@leorochael

This comment has been minimized.

Show comment
Hide comment
@leorochael

leorochael Sep 20, 2016

Hi, @nilshamerlinck, have you considered adding a PR for this into Odoo itself and into OCB?

Hi, @nilshamerlinck, have you considered adding a PR for this into Odoo itself and into OCB?

@hitechwarrior

This comment has been minimized.

Show comment
Hide comment
@hitechwarrior

hitechwarrior Apr 22, 2017

hey i did these change but i still have the problem on the create order line can you help ?

hey i did these change but i still have the problem on the create order line can you help ?

Please sign in to comment.