This commit aims at removing unuseful help message to: 1/ reduce translators work, to focus on more useful translations 2/ not sending unuseful information in load_views 3/ reduce help message to useful messages, so that we can mark fields having a tooltip in the future UI. 4/ some cleanup of existing messages too The main use cases: - REMOVED: help redundant with the field name, providing no extra info - MOVED TO COMMENT: technical help messages, that should not be in UX closes odoo/odoo#97279 Signed-off-by: Fabien Pinckaers <fp@odoo.com>
20 lines
577 B
Python
20 lines
577 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class Uom(models.Model):
|
|
_inherit = 'uom.uom'
|
|
|
|
def _unprotected_uom_xml_ids(self):
|
|
# Override
|
|
# When timesheet App is installed, we also need to protect the hour UoM
|
|
# from deletion (and warn in case of modification)
|
|
return [
|
|
"product_uom_dozen",
|
|
]
|
|
|
|
# widget used in the webclient when this unit is the one used to encode timesheets.
|
|
timesheet_widget = fields.Char("Widget")
|