You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
734 B

  1. # -*- coding: utf-8 -*-
  2. # © 2016 Eficent Business and IT Consulting Services S.L.
  3. # © 2016 Serpent Consulting Services Pvt. Ltd.
  4. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
  5. from openerp import api, fields, models
  6. class AccountBankStatement(models.Model):
  7. _inherit = 'account.bank.statement'
  8. @api.multi
  9. def delete_unreconciled(self):
  10. self.ensure_one()
  11. for line in self.line_ids:
  12. if not line.journal_entry_id:
  13. line.unlink()
  14. class AccountBankStatementLine(models.Model):
  15. _inherit = 'account.bank.statement.line'
  16. clearing_move_line_id = fields.Many2one('account.move.line',
  17. 'Clearing Move Line')