Commit 651cc759 authored by Sergi Almacellas Abellana's avatar Sergi Almacellas Abellana
Browse files

Import item name as description when no product is found

parent 0d2d5705
Pipeline #171237297 passed with stage
in 3 minutes and 50 seconds
......@@ -433,6 +433,8 @@ class Shop(metaclass=PoolMeta): = sale
line.product = self.woocommerce_tryton_record(
Product, item['product_id'])
if not line.product:
line.description = item['name']
line.quantity = item['quantity']
line.unit_price = round_price(Decimal(str(item['price'])))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment