There was no way for the lunch manager to notify users that their meal had arrived prior to this commit besides manually sending a message to the concerned users. There now is a dedicated button after the order has been confirmed by the lunch manager to send notifications. TaskId-2587476 closes odoo/odoo#78649 Signed-off-by: Kevin Baptiste <kba@odoo.com>
14 lines
365 B
Python
14 lines
365 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import models, fields
|
|
|
|
|
|
class Company(models.Model):
|
|
_inherit = 'res.company'
|
|
|
|
lunch_minimum_threshold = fields.Float()
|
|
lunch_notify_message = fields.Html(
|
|
default="""Your lunch has been delivered.
|
|
Enjoy your meal!""", translate=True)
|