minor fix

This commit is contained in:
wilsongomez 2022-08-30 15:51:13 -05:00
parent f4d901f636
commit f8cde43e86
1 changed files with 2 additions and 2 deletions

View File

@ -51,8 +51,8 @@ class Shopify(SaleWebChannel):
Product = pool.get('product.product')
Template = pool.get('product.template')
description = line['variant_title']
list_price = round(float(line['price'])/1.19, 2)
sale_price_w_tax = round(Decimal(line['price']), 2)
list_price = Decimal(str(round(float(line['price'])/1.19, 2)))
sale_price_w_tax = Decimal(str(round(Decimal(line['price']), 2)))
create_template = {
'name': line['title'],
'list_price': list_price,