The goal of this task is to review the copywriting of the tooltips because some of them are not correct in English and others are not valid anymore. This is also a good opportunity to make an inventory of the tooltips we have and to add some that could be missing. task-2860991 closes odoo/odoo#102179 X-original-commit: 5e4cf8f9f6a4372f45aa04a5965f8073bb4ea68a Related: odoo/enterprise#32298 Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com> Co-authored-by: Mahendra Barad <mba@odoo.com>, Prakash Prajapati <ppr@odoo.com>
23 lines
1.2 KiB
Python
23 lines
1.2 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class MailShortcode(models.Model):
|
|
""" Shortcode
|
|
Canned Responses, allowing the user to defined shortcuts in its message. Should be applied before storing message in database.
|
|
Emoji allowing replacing text with image for visual effect. Should be applied when the message is displayed (only for final rendering).
|
|
These shortcodes are global and are available for every user.
|
|
"""
|
|
|
|
_name = 'mail.shortcode'
|
|
_description = 'Canned Response / Shortcode'
|
|
source = fields.Char('Shortcut', required=True, index='trigram',
|
|
help="Shortcut that will automatically be substituted with longer content in your messages."
|
|
" Type ':' followed by the name of your shortcut (e.g. :hello) to use in your messages.")
|
|
substitution = fields.Text('Substitution', required=True,
|
|
help="Content that will automatically replace the shortcut of your choosing. This content can still be adapted before sending your message.")
|
|
description = fields.Char('Description')
|
|
message_ids = fields.Many2one('mail.message', string="Messages", store=False)
|