summaryrefslogtreecommitdiff
path: root/addons/purchase/data/ir_cron_data.xml
diff options
context:
space:
mode:
authoryhu-odoo <yhu@odoo.com>2020-04-21 15:22:46 +0000
committeryhu-odoo <yhu@odoo.com>2020-05-27 08:20:17 +0000
commit181c7d82e30d0848bbac7f7d0188e81aced0af07 (patch)
treed5868d318629c09ebb4da9d70ac2316d66fde338 /addons/purchase/data/ir_cron_data.xml
parentd83334ef8ee566e56ad8b25264d66704120ba598 (diff)
[IMP] purchase: send reminder mail to vendor
1. automatically send a reminder mail to vendor to confirm the receipt date. If confirmed, (confirmed by vendor) will be added next to the receipt date. If not, vendor can update the date on the portal website. An warning activity will be set for the purchase representative for this update. 2. Vendor can also comfirm recieption of the PO when we 'send PO by mail'. If confirm, (confirmed by vendor) will be added next to the confirmation date. An filter is added in the PO search view to show all unconfirmed PO. Task 2230811 PR #49921 Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Diffstat (limited to 'addons/purchase/data/ir_cron_data.xml')
-rw-r--r--addons/purchase/data/ir_cron_data.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/addons/purchase/data/ir_cron_data.xml b/addons/purchase/data/ir_cron_data.xml
new file mode 100644
index 00000000000..3c70792ceb6
--- /dev/null
+++ b/addons/purchase/data/ir_cron_data.xml
@@ -0,0 +1,15 @@
+<?xml version='1.0' encoding='utf-8'?>
+<odoo>
+ <record forcecreate="True" id="purchase_send_reminder_mail" model="ir.cron">
+ <field name="name">Purchase reminder</field>
+ <field name="active" eval="True" />
+ <field name="user_id" ref="base.user_root" />
+ <field name="interval_number">1</field>
+ <field name="interval_type">days</field>
+ <field name="numbercall">-1</field>
+ <field name="doall">1</field>
+ <field name="model_id" ref="model_purchase_order"/>
+ <field name="state">code</field>
+ <field name="code">model._send_reminder_mail()</field>
+ </record>
+</odoo>