[IMP] sale: remove useless call in discount widget
Following up https://github.com/odoo/odoo/pull/112692 that avoided the use of the 'Number' javascript function in the 'product_discount_field' widget, the call to that function was left in the code. It is useless and can be removed since the value of the new field used, the property field 'props.value', is already a float. closes odoo/odoo#112891 X-original-commit: fb8b217f8bd2323d33bbeb949f35cd1620557960 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
@@ -37,7 +37,7 @@ export class ProductDiscountField extends FloatField {
|
||||
return {
|
||||
operation: "UPDATE",
|
||||
record: line,
|
||||
data: {["discount"]: Number(this.props.value)},
|
||||
data: {["discount"]: this.props.value},
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user