[FIX] nfu_ecommerce: escape float values
This commit is contained in:
parent
c803982184
commit
bd15243732
5 changed files with 10 additions and 5 deletions
|
|
@ -52,7 +52,8 @@ Changelog
|
||||||
:1.3.1: Remove Max Qty from first page
|
:1.3.1: Remove Max Qty from first page
|
||||||
:1.3.2: Add decimal to ribbon
|
:1.3.2: Add decimal to ribbon
|
||||||
:1.4.0: Add credit warning and avoid debts option
|
:1.4.0: Add credit warning and avoid debts option
|
||||||
:1.4.0: Add credit to portal details
|
:1.4.1: Add credit to portal details
|
||||||
|
:1.4.2: Catch unescaped float values
|
||||||
|
|
||||||
Bug Tracker
|
Bug Tracker
|
||||||
===========
|
===========
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
"author": "BAKEUP",
|
"author": "BAKEUP",
|
||||||
"website": "https://www.bakeup.org",
|
"website": "https://www.bakeup.org",
|
||||||
"category": "website",
|
"category": "website",
|
||||||
"version": "16.0.1.4.1",
|
"version": "16.0.1.4.2",
|
||||||
"depends": [
|
"depends": [
|
||||||
"sale_product_configurator",
|
"sale_product_configurator",
|
||||||
"website_sale",
|
"website_sale",
|
||||||
|
|
|
||||||
|
|
@ -44,10 +44,11 @@ class SaleOrder(models.Model):
|
||||||
product_custom_attribute_values=product_custom_attribute_values,
|
product_custom_attribute_values=product_custom_attribute_values,
|
||||||
**kwargs
|
**kwargs
|
||||||
)
|
)
|
||||||
|
max_qty = float(kwargs.get("max_qty")) if kwargs.get("max_qty") else quantity
|
||||||
values.update(
|
values.update(
|
||||||
{
|
{
|
||||||
"product_uom_ordered_qty": quantity,
|
"product_uom_ordered_qty": quantity,
|
||||||
"product_uom_max_qty": kwargs.get("max_qty", quantity),
|
"product_uom_max_qty": max_qty,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
return values
|
return values
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,5 @@
|
||||||
:1.3.1: Remove Max Qty from first page
|
:1.3.1: Remove Max Qty from first page
|
||||||
:1.3.2: Add decimal to ribbon
|
:1.3.2: Add decimal to ribbon
|
||||||
:1.4.0: Add credit warning and avoid debts option
|
:1.4.0: Add credit warning and avoid debts option
|
||||||
:1.4.0: Add credit to portal details
|
:1.4.1: Add credit to portal details
|
||||||
|
:1.4.2: Catch unescaped float values
|
||||||
|
|
@ -421,7 +421,9 @@ adjustes the uom quantitiy</li>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="field"><th class="field-name">1.4.0:</th><td class="field-body">Add credit warning and avoid debts option</td>
|
<tr class="field"><th class="field-name">1.4.0:</th><td class="field-body">Add credit warning and avoid debts option</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="field"><th class="field-name">1.4.0:</th><td class="field-body">Add credit to portal details</td>
|
<tr class="field"><th class="field-name">1.4.1:</th><td class="field-body">Add credit to portal details</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="field"><th class="field-name">1.4.2:</th><td class="field-body">Catch unescaped float values</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue