Files
odoo_source/addons/website_sale_stock/data/ir_cron_data.xml
T
Alexandre de Pape (alpa) 2e4a225fb4 [IMP] websale_stock: back in stock notification
This commit adds a message "Be notified when in stock" on a product when it is out
of stock. When clicking the message, a form appears where the user can enter
his email. If he is a logged user, the email associated to the partner of the
user is pre-filled in the form. Otherwise the user enters his email.

task-id 2806828

closes odoo/odoo#96633

Related: odoo/upgrade#3718
Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
2022-08-25 19:57:26 +02:00

14 lines
576 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="ir_cron_send_availability_email" model="ir.cron">
<field name="name">Product: send email regarding products availability</field>
<field name="interval_number">1</field>
<field name="interval_type">hours</field>
<field name="numbercall">-1</field>
<field name="doall" eval="False"/>
<field name="model_id" ref="model_product_product"/>
<field name="code">model._send_availability_email()</field>
<field name="state">code</field>
</record>
</odoo>