Files
odoo_source/addons/sale/data/sale_data.xml
T
Ivàn Todorovich f561d2a95c [FIX] sale: Impossible to unset invoice_mail_template_id
Steps to reproduce:

1. Go to Configuration > Website
2. Enable Automatic Invoice and Save
3. Remove the value from Invoice Email Template and Save

Result:

* The field shows as set by the default value.
* The ir.config_parameter doesn't exist.

Excepted:

* The field should be shown as unset.

closes odoo/odoo#84901

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-02-21 10:28:22 +00:00

27 lines
1.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">
<!-- TODO remove as it is already the fallback in _find_mail_template -->
<record id="default_confirmation_template" model="ir.config_parameter">
<field name="key">sale.default_confirmation_template</field>
<field name="value" ref="sale.mail_template_sale_confirmation"/>
</record>
<record id="default_invoice_email_template" model="ir.config_parameter">
<field name="key">sale.default_invoice_email_template</field>
<field name="value" ref="account.email_template_edi_invoice"/>
</record>
<record id="send_invoice_cron" model="ir.cron">
<field name="name">automatic invoicing: send ready invoice</field>
<field name="model_id" ref="payment.model_payment_transaction" />
<field name="state">code</field>
<field name="code">model._cron_send_invoice()</field>
<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>
</record>
</odoo>