Odoo Help

0

How can I react to an order being cancelled?

By
Kit Sunde
on 9/12/14, 7:15 AM 616 views

I have a record that schedules emails when an order is confirmed:

<record id="sale.act_router" model="workflow.activity">
  <field name="action_id" ref="action_schedule_emails"/>
</record>

I've tried doing the same for an order getting cancelled with:

<record id="sale.act_cancel" model="workflow.activity">
  <field name="action_id" ref="action_cancel_emails"/>
</record>

<record id="sale.act_cancel2" model="workflow.activity">
  <field name="action_id" ref="action_cancel_emails"/>
</record>

<record id="sale.act_cancel3" model="workflow.activity">
  <field name="action_id" ref="action_cancel_emails"/>
</record>

<record id="sale.act_ship_cancel" model="workflow.activity">
<field name="action_id" ref="action_cancel_emails"/>
</record>

<record id="sale.act_invoice_cancel" model="workflow.activity">
  <field name="action_id" ref="action_cancel_emails"/>
</record>

But it doesn't seem like the action gets triggered. What am I doing wrong?

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)

Stats

Asked: 9/12/14, 7:15 AM
Seen: 616 times
Last updated: 3/16/15, 8:10 AM