This task is one section of Odoo sales, website, and service: seven everyday tasks, with 6 related tasks on one page.
1. Create the program
Go to Sales → Configuration → Settings. Under Pricing, enable Promotions, Loyalty & Gift Card, and save. Then open Sales → Products → Discount & Loyalty, click New, and set the program type to Discount Code.
2. Apply it
Add a rule that contains the code and a reward that is a percentage discount on the order. Enter the code at website or point-of-sale checkout, or on a sales order when the program is available on Sales. The total should fall.
3. Remove it
Clear the code. The discount line should go away and the total should match the original line.
4. Do not leave it open by accident
Set an end date or a small use limit on a test code. A code with no end will keep discounting after the campaign.
5. Frequently asked questions
Why does the code do nothing?
The program may be expired, limited to other products, or not confirmed. Check those before you invent a second code.
Can I type the discount on the line instead?
You can, but then you have no code to report on. Use the program when the offer is a code.
Does this change the product price?
No. It discounts the order. The product’s list price stays.
6. Related articles and next steps
Odoo documents discount codes in the Odoo 19 discount and loyalty page. The code field appears on the apps you mark the program available on.
Continue learning
Describe the version, hosting, and workflow you want to improve. Email OdooMatrix to discuss the next step.