15 lines
585 B
Python
15 lines
585 B
Python
from odoo import fields, models
|
|
|
|
|
|
class HrVersion(models.Model):
|
|
_name = 'hr.version'
|
|
_inherit = ['hr.version', "analytic.mixin"]
|
|
_description = 'Employee Contract'
|
|
|
|
analytic_distribution = fields.Json(groups="hr.group_hr_user", tracking=False)
|
|
analytic_precision = fields.Integer(groups="hr.group_hr_user", tracking=False)
|
|
distribution_analytic_account_ids = fields.Many2many(groups="hr.group_hr_user", tracking=False)
|
|
|
|
def _get_whitelist_fields_from_template(self):
|
|
return super()._get_whitelist_fields_from_template() + ['analytic_distribution']
|