1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/hr_payroll_account_sepa/models/hr_payslip_run.py
2024-12-10 09:04:09 +07:00

25 lines
840 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, fields
class HrPayslipRun(models.Model):
_inherit = 'hr.payslip.run'
sepa_export = fields.Binary(string='SEPA File', help="Exported SEPA .xml file")
sepa_export_date = fields.Date(string='Generation Date')
sepa_export_filename = fields.Char(string='File Name', help="Exported SEPA .xml file name")
def action_open_sepa_wizard(self):
self.ensure_one()
return {
'type': 'ir.actions.act_window',
'name' : 'Select a bank journal.',
'res_model': 'hr.payslip.run.sepa.wizard',
'view_mode': 'form',
'view_id' : 'hr_payslip_run_sepa_xml_form',
'views': [(False, 'form')],
'target': 'new',
}