Debian Codegraph @

addons/l10n_dk_nemhandel/wizard/account_move_send_batch_wizard.py

raw
1 from odoo import models
2
3
4 class AccountMoveSendBatchWizard(models.TransientModel):
5 _inherit = 'account.move.send.batch.wizard'
6
7 def action_send_and_print(self, force_synchronous=False, allow_fallback_pdf=False):
8 # EXTENDS 'account'
9 self.ensure_one()
10 self.move_ids.filtered(lambda m: self._get_default_sending_methods(m) == 'nemhandel').nemhandel_move_state = 'to_send'
11 return super().action_send_and_print(force_synchronous=force_synchronous, allow_fallback_pdf=allow_fallback_pdf)