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>
14 lines
576 B
XML
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>
|