| 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) |