[FIX] pos_loyalty: wrong syntax for super call
The call to super was wrong, it was called in the old way this._super(). This has now been corrected with the new method super().`function name`() closes odoo/odoo#132022 Signed-off-by: Adrien Guilliams (adgu) <adgu@odoo.com>
This commit is contained in:
@@ -108,9 +108,9 @@ patch(ProductScreen.prototype, {
|
||||
this.currentOrder._updateRewards();
|
||||
},
|
||||
async _showDecreaseQuantityPopup() {
|
||||
const result = await this._super();
|
||||
if (result){
|
||||
const result = await super._showDecreaseQuantityPopup();
|
||||
if (result) {
|
||||
this.currentOrder._updateRewards();
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user