From b3aeb3b2e7c71bf133f2d55d191a378fe37bb7c6 Mon Sep 17 00:00:00 2001 From: Dinar Date: Wed, 13 Jun 2018 18:47:09 +0500 Subject: [PATCH] [IMP] pos_discount: possibility to redefine the discount button Was not able to make inheritance of POS Discount objects via "extend" or "include" functions Closes #25227 --- addons/pos_discount/static/src/js/discount.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/pos_discount/static/src/js/discount.js b/addons/pos_discount/static/src/js/discount.js index 771992bb01b..87b97f88e16 100644 --- a/addons/pos_discount/static/src/js/discount.js +++ b/addons/pos_discount/static/src/js/discount.js @@ -58,5 +58,8 @@ screens.define_action_button({ }, }); +return { + DiscountButton: DiscountButton, +} });