Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Aconcagua
hr_payroll_base_config
Commits
a5c3fd76
Commit
a5c3fd76
authored
Jan 13, 2022
by
Santiago Apel
💬
Browse files
Merge branch 'last_contract_id' into '12.0-stage'
[IMP] last_contract filtered by active See merge request
!33
parents
c459bf54
56da7fe4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
models/hr_employee.py
models/hr_employee.py
+1
-1
No files found.
models/hr_employee.py
View file @
a5c3fd76
...
...
@@ -9,7 +9,7 @@ class HREmployee(models.Model):
def
_get_vigent_contract
(
self
):
for
record
in
self
:
contract_ids
=
self
.
env
[
"hr.contract"
].
search
(
[
'&'
,
(
"employee_id"
,
"="
,
record
.
id
),(
'state'
,
'='
,
'open'
)],
[(
"employee_id"
,
"="
,
record
.
id
),(
'state'
,
'='
,
'open'
)
,(
'active'
,
'='
,
True
)
],
order
=
"date_start desc"
,
limit
=
1
,
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment