The Lunch module can automatically send an email to a supplier with the daily orders at a configured time. It can also remind the users via chat so they don't forget to order their sanddwish. Before, two high frequency cron jobs were responsible to check every 20 and 5 minutes if we reached the moment when to send the email to the suppliers or the notification to the users. Together the two crons were executed 360 times a day. The new model uses a dedicated daily cron per supplier record and per alert record, the dedicated cron is created on the fly and its moment of execution automatically updated to reflect the supplier/alert record. See also #41858 for prior work. closes odoo/odoo#63749 Task: 2416741 Related: odoo/upgrade#2044 Signed-off-by: Julien Castiaux <Julien00859@users.noreply.github.com>
8 lines
208 B
Python
8 lines
208 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from . import common
|
|
from . import test_alert
|
|
from . import test_product_report
|
|
from . import test_supplier
|