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>
13 lines
596 B
Python
13 lines
596 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class ResConfigSettings(models.TransientModel):
|
|
_inherit = 'res.config.settings'
|
|
|
|
currency_id = fields.Many2one('res.currency', related='company_id.currency_id')
|
|
company_lunch_minimum_threshold = fields.Float(string="Maximum Allowed Overdraft", readonly=False, related='company_id.lunch_minimum_threshold')
|
|
company_lunch_notify_message = fields.Html(string="Lunch notification message", readonly=False, related="company_id.lunch_notify_message")
|