[FIX] point_of_sale: pass event on the input event handler
During the forward port of the following PR: https://github.com/odoo/odoo/pull/127730, the event was not passed to the input event handler, which causes an error when the user tries to enter a new value for the the other payment methods. This commit appropriately passes the input event to the handler. closes odoo/odoo#128801 X-original-commit: 70ea3d8998d873a7649f57af3bbd8aa82daac6ad Signed-off-by: Adrien Guilliams (adgu) <adgu@odoo.com> Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
<td t-esc="pm.name"/>
|
||||
<td t-esc="env.utils.formatCurrency(pm.amount)"/>
|
||||
<t t-set="_showDiff" t-value="_getShowDiff(pm)" />
|
||||
<td t-if="_showDiff" t-on-input="() => this.handleInputChange(pm.id)">
|
||||
<td t-if="_showDiff" t-on-input="(event) => this.handleInputChange(pm.id, event)">
|
||||
<input class="pos-input" t-ref="closingCashInput_{{pm.id}}" t-on-focus="ev=>ev.target.select()"/>
|
||||
</td>
|
||||
<td t-if="_showDiff" t-esc="env.utils.formatCurrency(state.payments[pm.id].difference)" t-att-class="{'warning': state.payments[pm.id].difference}"/>
|
||||
|
||||
Reference in New Issue
Block a user