mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-27 12:12:03 +02:00
19.0 vanilla
This commit is contained in:
parent
a1137a1456
commit
e1d89e11e3
2789 changed files with 1093187 additions and 605897 deletions
|
|
@ -1,19 +0,0 @@
|
|||
# -*- 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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue