minor fix
This commit is contained in:
parent
843a1987a9
commit
66ec724c47
|
@ -109,7 +109,7 @@ class Employee:
|
|||
for m in employee.mandatory_wages]
|
||||
|
||||
accounts = AnalyticAccount.search([
|
||||
('name', 'ilike', row[8]),
|
||||
('name', '=', row[8]),
|
||||
])
|
||||
|
||||
mandatory_wages = {
|
||||
|
@ -122,7 +122,7 @@ class Employee:
|
|||
key_mw = str(row[19])
|
||||
if key_mw:
|
||||
wages = WageType.search([
|
||||
('name', 'ilike', mandatory_wages[key_mw])
|
||||
('name', '=', mandatory_wages[key_mw])
|
||||
])
|
||||
if wages:
|
||||
wage_id = wages[0].id
|
||||
|
@ -180,8 +180,8 @@ class Employee:
|
|||
}])
|
||||
contracts = Contract.search([('employee', '=', employee.id)])
|
||||
if not contracts:
|
||||
start_date_contract = row[9] or '01/01/1000'
|
||||
end_date_contract = row[10] or '01/01/1000'
|
||||
start_date_contract = row[9]
|
||||
end_date_contract = row[10]
|
||||
|
||||
contract, = Contract.create([{
|
||||
'employee': employee.id,
|
||||
|
|
Loading…
Reference in New Issue