17 lines
453 B
Python
17 lines
453 B
Python
from odoo import models
|
|
|
|
|
|
class AccountJournal(models.Model):
|
|
_inherit = 'account.journal'
|
|
|
|
def action_open_statement_import(self):
|
|
self.ensure_one()
|
|
return {
|
|
'type': 'ir.actions.act_window',
|
|
'name': 'Import Bank Statement',
|
|
'res_model': 'fusion.statement.import',
|
|
'view_mode': 'form',
|
|
'target': 'new',
|
|
'context': {'default_journal_id': self.id},
|
|
}
|