product_sale_price_from_pricelist: round up or down
This commit is contained in:
parent
7ca15f9aee
commit
dafaaf9139
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ class ProductTemplate(models.Model):
|
||||||
)
|
)
|
||||||
# Round to 0.05
|
# Round to 0.05
|
||||||
if round(price_with_taxes % 0.05, 2) != 0:
|
if round(price_with_taxes % 0.05, 2) != 0:
|
||||||
price_with_taxes = math.ceil(price_with_taxes / 0.05) * 0.05
|
price_with_taxes = round(price_with_taxes * 20) / 20
|
||||||
|
|
||||||
template.write(
|
template.write(
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue