一键导入
odoo-loyalty
Odoo Coupons & Loyalty operations — manage loyalty programs, coupons, and reward rules.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Odoo Coupons & Loyalty operations — manage loyalty programs, coupons, and reward rules.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Odoo ERP integration for all 37 business modules. Entry point for Odoo operations — CRM, Sales, Inventory, Manufacturing, Purchase, Accounting, HR, Expenses, Contacts, Calendar, Discuss, Project, Timesheets, Time Off, Attendances, Recruitment, Fleet, Email Marketing, Events, Website, Link Tracker, Dashboards, POS, Delivery, Loyalty, Payments, SMS, Live Chat, Maintenance, Survey, Forum, eLearning, Planning, Restaurant, Certificate, and Data Recycle.
Cross-skill workflow: Odoo ERP health audit, infographic summary, PPTX report, and email delivery via Gmail.
Odoo Accounting operations — manage invoices, bills, journal entries, payments, and financial reports.
Odoo Attendances operations — manage employee check-ins, check-outs, and attendance records.
Odoo Calendar operations — manage events, meetings, and attendee tracking.
Odoo Certificate operations — manage certificates, templates, and certificate issuance.
| name | odoo-loyalty |
| description | Odoo Coupons & Loyalty operations — manage loyalty programs, coupons, and reward rules. |
| version | 1.0.0 |
| author | Hermes |
| license | MIT |
| platforms | ["linux","macos","windows"] |
| metadata | {"hermes":{"tags":["odoo","loyalty","coupons","promotions","rewards","gift-cards"],"parent_skill":"odoo"}} |
Manage loyalty programs, coupons, promotions, gift cards, and reward rules. Integrated into the Sales app — no standalone menu. Access loyalty programs from Sales > Products > Loyalty Programs.
Prerequisite: odoo skill must be set up. ODOO = python scripts/odoo_api.py.
ODOO model loyalty.program search --limit 20 --fields name,program_type,trigger,applies_on,date_to,active
ODOO model loyalty.program search --domain '[["active","=",true]]' --fields name,program_type,trigger,applies_on
ODOO model loyalty.card search --limit 20 --fields code,partner_id,program_id,points,expiration_date,active
ODOO model loyalty.card search --domain '[["partner_id","=",3]]' --fields code,program_id,points,expiration_date
ODOO model loyalty.rule search --limit 20 --fields name,program_id,minimum_amount,reward_point_amount,reward_point_mode
ODOO model loyalty.reward search --fields program_id,reward_type,discount,description,discount_line_product_id
ODOO model sale.order read 1 --fields name,partner_id,amount_total,no_code_promo_program_ids,code_promo_program_id
ODOO model sale.order read 1 --fields name,reward_amount,reward_points,coupon_ids
| Model | Use |
|---|---|
loyalty.program | Loyalty/coupon programs |
loyalty.card | Individual customer loyalty cards |
loyalty.rule | Earning rules per program |
loyalty.reward | Reward definitions |
loyalty.coupon | Coupon instances |
| Type | Use |
|---|---|
promotion | Automatic promotions (no code) |
promo_code | Promo code based |
loyalty | Point-based loyalty |
gift_card | Gift cards |
program_type and applies_on to understand if multiple programs apply to the same order.expiration_date on loyalty.card.coupon.program_type = gift_card.# Authenticate
UID=$(curl -s -X POST $ODOO_URL/jsonrpc -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"call","params":{"service":"common","method":"authenticate","args":[$ODOO_DB,"$ODOO_USER","$ODOO_PASS",{}]},"id":1}' | python3 -c "import sys,json;print(json.load(sys.stdin)['result'])")
# List loyalty programs
curl -s -X POST $ODOO_URL/jsonrpc -H "Content-Type: application/json" -d "{\"jsonrpc\":\"2.0\",\"method\":\"call\",\"params\":{\"service\":\"object\",\"method\":\"execute_kw\",\"args\":[\"$ODOO_DB\",$UID,\"$ODOO_PASS\",\"loyalty.program\",\"search_read\",[[]],{\"limit\":10,\"fields\":[\"name\",\"program_type\",\"active\"]}]},\"id\":2}"