[IMP]mail_*: Improvement in model description
Purpose of this commit is to give description more "business oriented" because those descriptions appears in Odoo Studio which is supposed to be used by end users, not only by developers. Related Task ID : 37311
This commit is contained in:
committed by
Yannick Tivisse
parent
2c1549cc59
commit
dae97ee5f0
@@ -10,6 +10,7 @@ from odoo.exceptions import UserError, ValidationError
|
||||
class ServerActions(models.Model):
|
||||
""" Add email option in server actions. """
|
||||
_name = 'ir.actions.server'
|
||||
_description = 'Server Action'
|
||||
_inherit = ['ir.actions.server']
|
||||
|
||||
state = fields.Selection(selection_add=[
|
||||
|
||||
@@ -186,6 +186,7 @@ class AliasMixin(models.AbstractModel):
|
||||
"""
|
||||
_name = 'mail.alias.mixin'
|
||||
_inherits = {'mail.alias': 'alias_id'}
|
||||
_description = 'Email Aliases Mixin'
|
||||
|
||||
alias_id = fields.Many2one('mail.alias', string='Alias', ondelete="restrict", required=True)
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ class Moderation(models.Model):
|
||||
class Channel(models.Model):
|
||||
""" A mail.channel is a discussion group that may behave like a listener
|
||||
on documents. """
|
||||
_description = 'Discussion channel'
|
||||
_description = 'Discussion Channel'
|
||||
_name = 'mail.channel'
|
||||
_mail_flat_thread = False
|
||||
_mail_post_access = 'read'
|
||||
|
||||
@@ -16,6 +16,7 @@ class Users(models.Model):
|
||||
"""
|
||||
_name = 'res.users'
|
||||
_inherit = ['res.users']
|
||||
_description = 'Users'
|
||||
|
||||
alias_id = fields.Many2one('mail.alias', 'Alias', ondelete="set null", required=False,
|
||||
help="Email address internally associated with this user. Incoming "\
|
||||
@@ -149,6 +150,7 @@ class res_groups_mail_channel(models.Model):
|
||||
"""
|
||||
_name = 'res.groups'
|
||||
_inherit = 'res.groups'
|
||||
_description = 'Access Groups'
|
||||
|
||||
@api.multi
|
||||
def write(self, vals, context=None):
|
||||
|
||||
@@ -20,6 +20,7 @@ _logger = logging.getLogger(__name__)
|
||||
|
||||
class PublisherWarrantyContract(AbstractModel):
|
||||
_name = "publisher_warranty.contract"
|
||||
_description = 'Publisher Warranty Contract'
|
||||
|
||||
@api.model
|
||||
def _get_message(self):
|
||||
|
||||
@@ -9,6 +9,7 @@ from odoo import models, _
|
||||
|
||||
class MailBot(models.AbstractModel):
|
||||
_name = 'mail.bot'
|
||||
_description = 'Mail Bot'
|
||||
|
||||
def _apply_logic(self, record, values, command=None):
|
||||
""" Apply bot logic to generate an answer (or not) for the user
|
||||
|
||||
Reference in New Issue
Block a user