Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Sync Odoo with WooCommerce: products, inventory, orders, and customers via WooCommerce REST API and Odoo external API.
.claude/skills/odoo-woocommerce-bridge/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-14 | ✗→✓ | ▲ Improved | — | — |
| case-01 | ✗→✓ | ▲ Improved | — | — |
| case-03 | ✗→✓ | ▲ Improved | — | — |
| case-15 | ✗→✓ | ▲ Improved | — | — |
| case-02 | ✓→✓ | = Same ✓ | — | — |
This skill guides you through building a reliable sync bridge between Odoo (the back-office ERP) and WooCommerce (the WordPress online store). It covers product catalog sync, real-time inventory updates, order import, and customer record management.
@odoo-woocommerce-bridge and describe your sync requirements.| WooCommerce | Odoo | |---|---| | products | product.template + product.product | | orders | sale.order + sale.order.line | | customers | res.partner | | stock_quantity | stock.quant | | sku | product.product.default_code | | order status: processing | Sale Order: sale (confirmed) | | order status: completed | Delivery: done |
pythonfrom woocommerce import API import xmlrpc.client import os # WooCommerce client wcapi = API( url=os.getenv("WC_URL", "https://mystore.com"), consumer_key=os.getenv("WC_KEY"), consumer_secret=os.getenv("WC_SECRET"), version="wc/v3" ) # Odoo client odoo_url = os.getenv("ODOO_URL", "https://myodoo.example.com") db = os.getenv("ODOO_DB", "my_db") uid = int(os.getenv("ODOO_UID", "2")) pwd = os.getenv("ODOO_PASSWORD") models = xmlrpc.client.ServerProxy(f"{odoo_url}/xmlrpc/2/object") def sync_orders(): # Get unprocessed WooCommerce orders orders = wcapi.get("orders", params={"status": "processing", "per_page": 50}).json() for wc_order in orders: # Find or create Odoo partner email = wc_order['billing']['email'] partner = models.execute_kw(db, uid, pwd, 'res.partner', 'search', [[['email', '=', email]]]) if not partner: partner_id = models.execute_kw(db, uid, pwd, 'res.partner', 'create', [{ 'name': f"{wc_order['billing']['first_name']} {wc_order['billing']['last_name']}", 'email': email, 'phone': wc_order['billing']['phone'], 'street': wc_order['billing']['address_1'], 'city': wc_order['billing']['city'], }]) else: partner_id = partner[0] # Create Sale Order in Odoo order_lines = [] for item in wc_order['line_items']: product = models.execute_kw(db, uid, pwd, 'product.product', 'search', [[['default_code', '=', item['sku']]]]) if product: order_lines.append((0, 0, { 'product_id': product[0], 'product_uom_qty': item['quantity'], 'price_unit': float(item['price']), })) models.execute_kw(db, uid, pwd, 'sale.order', 'create', [{ 'partner_id': partner_id, 'client_order_ref': f"WC-{wc_order['number']}", 'order_line': order_lines, }]) # Mark WooCommerce order as on-hold (processed by Odoo) wcapi.put(f"orders/{wc_order['id']}", {"status": "on-hold"})
pythondef sync_inventory_to_woocommerce(): # Get all products with a SKU from Odoo products = models.execute_kw(db, uid, pwd, 'product.product', 'search_read', [[['default_code', '!=', False], ['type', '=', 'product']]], {'fields': ['default_code', 'qty_available']} ) for product in products: sku = product['default_code'] qty = int(product['qty_available']) # Update WooCommerce by SKU wc_products = wcapi.get("products", params={"sku": sku}).json() if wc_products: wcapi.put(f"products/{wc_products[0]['id']}", { "stock_quantity": qty, "manage_stock": True, })
status = processing or completed.| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-11 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-21 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-09 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-02 | pass→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-05 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-19 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-20 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-14 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-10 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-18 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-01 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-22 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-04 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-07 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-16 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-06 | pass→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-03 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-08 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-12 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-13 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-15 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-17 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 21 counted toward the lift figure. The other 1 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +18 percentage points is the difference between those two pass rates over the 21 comparable cases.
The per-case answers from this run were removed by the retention sweep, so the case table below shows the verdicts without the text either arm produced. The counts above were recorded at the time and are unaffected. Answers are now kept for 180 days.
Other measured skills in the registry, with their headline benchmark lift.