diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-06-05 02:29:48 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2024-06-05 02:29:48 +0000 |
| commit | ec4aefc64a9f42d1b40d03048fc384e158191218 (patch) | |
| tree | 14d1fd1358ae41d65b9412fdfc0195c8dd9f20bd /indoteknik_custom/models/account_move_multi_update_bills.py | |
| parent | abd7dd1ecc9246b1924dcf70b3ed41c964f3746f (diff) | |
| parent | 9306992db370c793e8cab494038b0de5b61b600f (diff) | |
Merged in production (pull request #144)
Production
Diffstat (limited to 'indoteknik_custom/models/account_move_multi_update_bills.py')
| -rw-r--r-- | indoteknik_custom/models/account_move_multi_update_bills.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/indoteknik_custom/models/account_move_multi_update_bills.py b/indoteknik_custom/models/account_move_multi_update_bills.py new file mode 100644 index 00000000..d348beed --- /dev/null +++ b/indoteknik_custom/models/account_move_multi_update_bills.py @@ -0,0 +1,26 @@ +from odoo import models, fields +import logging + +_logger = logging.getLogger(__name__) + + +class AccountMoveMultiUpdateBills(models.TransientModel): + _name = 'account.move.multi_update_bills' + + date_terima_tukar_faktur = fields.Date(string="Terima Faktur") + + def save_multi_update_bills(self): + move_ids = self._context['move_ids'] + moves = self.env['account.move'].browse(move_ids) + moves.update({ + 'date_terima_tukar_faktur': self.date_terima_tukar_faktur + }) + return { + 'type': 'ir.actions.client', + 'tag': 'display_notification', + 'params': { + 'title': 'Notification', + 'message': 'Account Move berhasil diubah', + 'next': {'type': 'ir.actions.act_window_close'}, + } + }
\ No newline at end of file |
