[IMP]marketing: 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
a308506051
commit
d2ca8a1053
@@ -334,7 +334,7 @@ class EventEvent(models.Model):
|
||||
|
||||
class EventRegistration(models.Model):
|
||||
_name = 'event.registration'
|
||||
_description = 'Attendee'
|
||||
_description = 'Event Registration'
|
||||
_inherit = ['mail.thread']
|
||||
_order = 'name, create_date desc'
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ class EventTypeMail(models.Model):
|
||||
""" Template of event.mail to attach to event.type. Those will be copied
|
||||
upon all events created in that type to ease event creation. """
|
||||
_name = 'event.type.mail'
|
||||
_description = 'Mail Scheduling on Event Type'
|
||||
_description = 'Mail Scheduling on Event Category'
|
||||
|
||||
event_type_id = fields.Many2one(
|
||||
'event.type', string='Event Type',
|
||||
|
||||
@@ -7,6 +7,7 @@ from odoo import models, api
|
||||
class event_confirm(models.TransientModel):
|
||||
"""Event Confirmation"""
|
||||
_name = "event.confirm"
|
||||
_description = 'Event Confirmation'
|
||||
|
||||
@api.multi
|
||||
def confirm(self):
|
||||
|
||||
@@ -5,6 +5,7 @@ from odoo import models, fields, api
|
||||
|
||||
class RegistrationEditor(models.TransientModel):
|
||||
_name = "registration.editor"
|
||||
_description = 'Edit Attendee Details on Sales Confirmation'
|
||||
|
||||
sale_order_id = fields.Many2one('sale.order', 'Sales Order', required=True)
|
||||
event_registration_ids = fields.One2many('registration.editor.line', 'editor_id', string='Registrations to Edit')
|
||||
@@ -62,6 +63,7 @@ class RegistrationEditor(models.TransientModel):
|
||||
class RegistrationEditorLine(models.TransientModel):
|
||||
"""Event Registration"""
|
||||
_name = "registration.editor.line"
|
||||
_description = 'Edit Attendee Line on Sales Confirmation'
|
||||
|
||||
editor_id = fields.Many2one('registration.editor')
|
||||
sale_order_line_id = fields.Many2one('sale.order.line', string='Sales Order Line')
|
||||
|
||||
@@ -31,6 +31,7 @@ class link_tracker(models.Model):
|
||||
|
||||
_name = "link.tracker"
|
||||
_rec_name = "short_url"
|
||||
_description = 'Link Tracker'
|
||||
|
||||
_inherit = ['utm.mixin']
|
||||
|
||||
@@ -204,6 +205,7 @@ class link_tracker(models.Model):
|
||||
|
||||
class link_tracker_code(models.Model):
|
||||
_name = "link.tracker.code"
|
||||
_description = 'Link Tracker Code'
|
||||
|
||||
code = fields.Char(string='Short URL Code', store=True)
|
||||
link_id = fields.Many2one('link.tracker', 'Link', required=True, ondelete='cascade')
|
||||
@@ -227,6 +229,7 @@ class link_tracker_code(models.Model):
|
||||
class link_tracker_click(models.Model):
|
||||
_name = "link.tracker.click"
|
||||
_rec_name = "link_id"
|
||||
_description = 'Link Tracker Click'
|
||||
|
||||
click_date = fields.Date(string='Create Date')
|
||||
link_id = fields.Many2one('link.tracker', 'Link', required=True, ondelete='cascade')
|
||||
|
||||
@@ -6,7 +6,7 @@ from odoo import api, fields, models
|
||||
|
||||
class MassMailingListMerge(models.TransientModel):
|
||||
_name = 'mass.mailing.list.merge'
|
||||
_description = 'Merge Mass Mailing Lists'
|
||||
_description = 'Merge Mass Mailing List'
|
||||
|
||||
src_list_ids = fields.Many2many('mail.mass_mailing.list', string='Mailing Lists')
|
||||
dest_list_id = fields.Many2one('mail.mass_mailing.list', string='Destination Mailing List')
|
||||
|
||||
@@ -7,7 +7,7 @@ from odoo.exceptions import ValidationError
|
||||
|
||||
class MassMailingScheduleDate(models.TransientModel):
|
||||
_name = 'mass.mailing.schedule.date'
|
||||
_description = 'Schedule in the Future'
|
||||
_description = 'Mass Mailing Scheduling'
|
||||
|
||||
schedule_date = fields.Datetime(string='Schedule in the Future')
|
||||
mass_mailing_id = fields.Many2one('mail.mass_mailing', required=True)
|
||||
|
||||
Reference in New Issue
Block a user