minor fix

This commit is contained in:
Camilo Sarmiento 2020-05-22 11:12:59 -05:00
parent 843a1987a9
commit 66ec724c47
1 changed files with 4 additions and 4 deletions

View File

@ -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,