diff --git a/addons/maintenance/models/maintenance.py b/addons/maintenance/models/maintenance.py index a39fe491ae5..d7b4441d5a9 100644 --- a/addons/maintenance/models/maintenance.py +++ b/addons/maintenance/models/maintenance.py @@ -40,7 +40,7 @@ class MaintenanceEquipmentCategory(models.Model): default=lambda self: self.env.company) technician_user_id = fields.Many2one('res.users', 'Responsible', tracking=True, default=lambda self: self.env.uid) color = fields.Integer('Color Index') - note = fields.Text('Comments', translate=True) + note = fields.Html('Comments', translate=True) equipment_ids = fields.One2many('maintenance.equipment', 'category_id', string='Equipments', copy=False) equipment_count = fields.Integer(string="Equipment", compute='_compute_equipment_count') maintenance_ids = fields.One2many('maintenance.request', 'category_id', copy=False) @@ -125,7 +125,7 @@ class MaintenanceEquipment(models.Model): assign_date = fields.Date('Assigned Date', tracking=True) effective_date = fields.Date('Effective Date', default=fields.Date.context_today, required=True, help="Date at which the equipment became effective. This date will be used to compute the Mean Time Between Failure.") cost = fields.Float('Cost') - note = fields.Text('Note') + note = fields.Html('Note') warranty_date = fields.Date('Warranty Expiration Date') color = fields.Integer('Color Index') scrap_date = fields.Date('Scrap Date') @@ -280,7 +280,7 @@ class MaintenanceRequest(models.Model): name = fields.Char('Subjects', required=True) company_id = fields.Many2one('res.company', string='Company', default=lambda self: self.env.company) - description = fields.Text('Description') + description = fields.Html('Description') request_date = fields.Date('Request Date', tracking=True, default=fields.Date.context_today, help="Date requested for the maintenance to happen") owner_user_id = fields.Many2one('res.users', string='Created by User', default=lambda s: s.env.uid) diff --git a/addons/mrp/models/mrp_routing.py b/addons/mrp/models/mrp_routing.py index a40af004cc2..8d597def7aa 100644 --- a/addons/mrp/models/mrp_routing.py +++ b/addons/mrp/models/mrp_routing.py @@ -26,7 +26,7 @@ class MrpRoutingWorkcenter(models.Model): string="Work Sheet", default="text", help="Defines if you want to use a PDF or a Google Slide as work sheet." ) - note = fields.Text('Description', help="Text worksheet description") + note = fields.Html('Description', help="Text worksheet description") worksheet = fields.Binary('PDF') worksheet_google_slide = fields.Char('Google Slide', help="Paste the url of your Google Slide. Make sure the access to the document is public.") time_mode = fields.Selection([ diff --git a/addons/mrp/models/mrp_workcenter.py b/addons/mrp/models/mrp_workcenter.py index fec02aa0953..943a5a68a64 100644 --- a/addons/mrp/models/mrp_workcenter.py +++ b/addons/mrp/models/mrp_workcenter.py @@ -26,7 +26,7 @@ class MrpWorkcenter(models.Model): active = fields.Boolean('Active', related='resource_id.active', default=True, store=True, readonly=False) code = fields.Char('Code', copy=False) - note = fields.Text( + note = fields.Html( 'Description', help="Description of the Work Center.") capacity = fields.Float( diff --git a/addons/mrp/models/mrp_workorder.py b/addons/mrp/models/mrp_workorder.py index 68822b7189b..cdc1d15530a 100644 --- a/addons/mrp/models/mrp_workorder.py +++ b/addons/mrp/models/mrp_workorder.py @@ -112,7 +112,7 @@ class MrpWorkorder(models.Model): string='Worksheet Type', related='operation_id.worksheet_type', readonly=True) worksheet_google_slide = fields.Char( 'Worksheet URL', related='operation_id.worksheet_google_slide', readonly=True) - operation_note = fields.Text("Description", related='operation_id.note', readonly=True) + operation_note = fields.Html("Description", related='operation_id.note', readonly=True) move_raw_ids = fields.One2many( 'stock.move', 'workorder_id', 'Raw Moves', domain=[('raw_material_production_id', '!=', False), ('production_id', '=', False)]) diff --git a/addons/repair/models/repair.py b/addons/repair/models/repair.py index adfbf94e2d6..bc1c1bd3c47 100644 --- a/addons/repair/models/repair.py +++ b/addons/repair/models/repair.py @@ -100,8 +100,8 @@ class Repair(models.Model): fees_lines = fields.One2many( 'repair.fee', 'repair_id', 'Operations', copy=True, readonly=False) - internal_notes = fields.Text('Internal Notes') - quotation_notes = fields.Text('Quotation Notes') + internal_notes = fields.Html('Internal Notes') + quotation_notes = fields.Html('Quotation Notes') user_id = fields.Many2one('res.users', string="Responsible", default=lambda self: self.env.user, check_company=True) company_id = fields.Many2one( 'res.company', 'Company',