diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-05-30 16:09:35 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-05-30 16:09:35 +0700 |
| commit | 65fe5e9cb0865293eb6d0626d2c99f35d6862b3c (patch) | |
| tree | 9b101f91df2be5e08a489991579b9edd691cbdfd /indoteknik_custom/models/account_move_multi_update_bills.py | |
| parent | c0bc0039928cdb7e2eef8e39dc5daad6e5ecfc28 (diff) | |
add invoice_date_due and terima faktur on bills
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 |
