21 lines
586 B
Python
21 lines
586 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import models
|
|
|
|
|
|
class HrPayslipRun(models.Model):
|
|
_inherit = 'hr.payslip.run'
|
|
|
|
def action_payment_report(self, export_format='advice'):
|
|
action = super().action_payment_report()
|
|
if self.company_id.country_code != 'IN':
|
|
return action
|
|
action.update({
|
|
'context': {
|
|
**action['context'],
|
|
'default_export_format': 'advice',
|
|
'default_date': self.date_end,
|
|
},
|
|
})
|
|
return action
|