Ebay: update categories code model._cron_sync(True) 1 days -1 Ebay: get new orders code model.synchronize_orders_from_last_sync() 15 minutes -1 Ebay: synchronise stock code pts_to_sync = env['product.template'].search([('ebay_use', '=', True)]) for pt in pts_to_sync: try: pt.sync_available_qty() env.cr.commit() except Exception as e: pass 1 hours -1 ebay_last_sync Ebay: orders recovery code # set the correct date to recover the orders from a given time range. # the recovered orders are not automatically confirmed # dates should be strings of the form "YYYY-MM-DD" date_from = False date_to = False if not (date_from and date_to): raise Warning('Please modify this server action with the proper dates for recovery') model.synchronize_orders_recovery(date_from, date_to)