Skip to content

Commit

Permalink
[REM] Função obsoleta
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrixcosta committed Aug 15, 2018
1 parent 39f9da3 commit aae7408
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions l10n_br_hr_payroll_account/models/l10n_br_hr_payroll_autonomo.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,6 @@ class L10nBrHrPayslipAutonomo(models.Model):
self.env.ref('l10n_br_hr_payroll_account.payroll_account_journal'),
)

@api.multi
def _verificar_lancamentos_anteriores(self, tipo_folha, period_id):
for payslip in self:
move_id = self.env['account.move'].search([
('name', 'like', NOME_LANCAMENTO[tipo_folha]),
('name', 'like', payslip.contract_id.nome_contrato),
('period_id', '!=', period_id)
], limit=1 )

if not move_id:
return False
else:
return move_id

@api.multi
def _valor_lancamento_anterior_rubrica(self, move_id, rubrica_id):
for line in move_id.line_id:
Expand Down

0 comments on commit aae7408

Please sign in to comment.