I'm wondering how I can trigger an email notification that goes to stores / warehouses every time a customer purchases through that store on the website. I have all the email notifications that go to customer with the confirmation and receipt but I want to send one to the store saying to the effect of "order processed and customer coming to collect from your store"
Cette question a été signalée
Thank you.
On Developer mode:
- Whether I set developer mode or developer mode with assets neither give an option for "Automated Action" and both only give "Automated Rules" under "Technical"
On Automated rules:
I have created a rule that:
- Model: Sales Order
- Trigger: State is set to → Sales Order
- Apply On: Match all of the following rules → status = sales order
- Action: Send email
Email Action set up
- Send email
- Usage: Automation rule
- Email template: Store incoming order email
- Send Email as: Email
Email settings:
- Body copy of email: "Order [order.name] confirmed. Customer [partner_id.name] is coming to collect from your store."
- Send to: Do I leave this blank or put in that specific stores email?
No where does this connect the trigger to the warehouse. How do I do this.
The scenario I want to achieve is: A person makes an order out of warehouse A. I want warehouse A to know that the customer is coming in their warehouse to collect the order.
Hello Evan,
Yes, this can be configured in Odoo using automated email notifications tied to the Sales Order or Pickup/Warehouse location.
A common approach is to trigger an automatic email to the relevant store/warehouse whenever an online order is confirmed for store pickup. The email can include details such as customer name, order reference, pickup location, and items ordered.
This can be achieved either through Odoo automated actions or a small custom workflow depending on how your stores and website are configured.
Hope this works for you! If you need any help implementing this or want a more optimized approach, feel free to reach out for further discussion.
Regards,
Zehntech Technologies Inc.
Here is a step-by-step guide to configure store notification emails in Odoo:
Method 1: Automated Action (No-Code, Recommended)
1. Enable Developer Mode (Settings > General Settings > activate developer mode)
2. Go to Settings > Technical > Automation > Automated Actions
3. Click New and set:
- Model: Sales Order
- Trigger: Stage is set to (or "When Updated: state")
- Filter: state = sale (order confirmed)
4. Action: Send Email
5. Create an email template: "Order [order.name] confirmed - customer [partner_id.name] is coming to collect from your store"
6. Set the "To" field to the store/warehouse manager email address
Mapping orders to specific stores:
If you have multiple stores, Odoo needs to know which store to notify. You can do this via:
- Sales Teams: assign each store as a Sales Team, set the team email
- Warehouse: use the delivery order warehouse to determine the store email
- Custom field: add a Pickup Store selection field to the online order form
Method 2: Using Click & Collect notification
If you are using Odoo eCommerce with Click & Collect (Website > Configuration > Settings), check if there are native store notification settings there. In some Odoo versions, this is handled automatically when Click & Collect is configured with a specific warehouse per location.
Tip: To send the email to the correct store dynamically, use a dynamic email template that references the order's warehouse or sales team email, e.g. {{ object.warehouse_id.partner_id.email }} in the template recipient.
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
|
0
avr. 26
|
2 | ||
|
|
0
mars 26
|
133 | ||
|
|
0
mars 26
|
974 | ||
|
|
3
mars 26
|
3993 | ||
|
|
0
janv. 26
|
1131 |
Helloy
You can use Automated Actions for this.
Yes it is Automation Rule.
You do not want to hardcode a specific store's email into the "Send to" field of the Automation Rule. Instead, leave the "Send to" field in the rule blank and handle this directly inside your Email Template using a dynamic placeholder.
Email Template "To" field: {{object.warehouse_id.partner_id.email}}
Let me know if you need any help on this