-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] resource_multi_week_work_time_from_contracts: Move domain from …
…view to model Signed-off-by: Carmen Bianca BAKKER <[email protected]>
- Loading branch information
1 parent
f34a53e
commit 12ea19d
Showing
3 changed files
with
15 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,4 @@ | |
"resource_work_time_from_contracts", | ||
], | ||
"auto_install": True, | ||
"data": [ | ||
"views/hr_contract_views.xml", | ||
], | ||
} |
15 changes: 15 additions & 0 deletions
15
resource_multi_week_work_time_from_contracts/models/hr_contract.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# SPDX-FileCopyrightText: 2024 Coop IT Easy SC | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class HrContract(models.Model): | ||
_inherit = "hr.contract" | ||
|
||
# Add a domain. | ||
resource_calendar_id = fields.Many2one( | ||
"resource.calendar", | ||
domain="[('parent_calendar_id', '=', False)]", | ||
) |
20 changes: 0 additions & 20 deletions
20
resource_multi_week_work_time_from_contracts/views/hr_contract_views.xml
This file was deleted.
Oops, something went wrong.