[REV] add domain to select current company calendar
This reverts commit 94bbffe46b introduced
in #109904.
This change was bringing more issues than it was trying to solve.
task-3254874
Part-of: odoo/odoo#117663
This commit is contained in:
@@ -11,5 +11,5 @@ class HrPayrollStructureType(models.Model):
|
||||
name = fields.Char('Salary Structure Type')
|
||||
default_resource_calendar_id = fields.Many2one(
|
||||
'resource.calendar', 'Default Working Hours',
|
||||
default=lambda self: self.env.company.resource_calendar_id if self.env.company.country_id else False)
|
||||
default=lambda self: self.env.company.resource_calendar_id)
|
||||
country_id = fields.Many2one('res.country', string='Country', default=lambda self: self.env.company.country_id)
|
||||
|
||||
@@ -10,7 +10,6 @@ class ResourceCalendar(models.Model):
|
||||
_inherit = 'resource.calendar'
|
||||
|
||||
contracts_count = fields.Integer("# Contracts using it", compute='_compute_contracts_count', groups="hr_contract.group_hr_contract_manager")
|
||||
company_country_id = fields.Many2one('res.country', string='Country', related='company_id.partner_id.country_id')
|
||||
|
||||
def transfer_leaves_to(self, other_calendar, resources=None, from_date=None):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user