Commit 55a58275 authored by Sergi Almacellas Abellana's avatar Sergi Almacellas Abellana
Browse files

Quote and confirm sales when downloading from woocommerce

parent 651cc759
Pipeline #171241016 passed with stage
in 4 minutes and 2 seconds
......@@ -490,6 +490,8 @@ class Shop(metaclass=PoolMeta):
'orders',
params=shop.woocommerce_orders_params(page)))
Sale.save(sales)
Sale.quote(sales)
Sale.confirm(sales)
shop.update_woocommerce_status(sales, 'processing')
def update_woocommerce_status(self, sales, status):
......
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