diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-12-14 14:13:32 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-12-14 14:13:32 +0700 |
| commit | eabbbadc5114f6c1edb9ec6bb74a296477f02b5a (patch) | |
| tree | ee182a8121e3e66b4c78e28c028ff860914d279e /indoteknik_custom/models/purchasing_job_multi_update.py | |
| parent | bb2a3647ac1f5885bc6481ce10bfcd91813bfe81 (diff) | |
initial commit purchasing job
Diffstat (limited to 'indoteknik_custom/models/purchasing_job_multi_update.py')
| -rw-r--r-- | indoteknik_custom/models/purchasing_job_multi_update.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/indoteknik_custom/models/purchasing_job_multi_update.py b/indoteknik_custom/models/purchasing_job_multi_update.py new file mode 100644 index 00000000..e455c5a4 --- /dev/null +++ b/indoteknik_custom/models/purchasing_job_multi_update.py @@ -0,0 +1,22 @@ +from odoo import models, fields +import logging + +_logger = logging.getLogger(__name__) + + +class PurchasingJobMultiUpdate(models.TransientModel): + _name = 'purchasing.job.multi.update' + + def save_multi_update_purchasing_job(self): + product_ids = self._context['product_ids'] + product = self.env['product.product'].browse(product_ids) + product.action_multi_update_invoice_status() + return { + 'type': 'ir.actions.client', + 'tag': 'display_notification', + 'params': { + 'title': 'Notification', + 'message': 'Invoice Status berhasil diubah', + 'next': {'type': 'ir.actions.act_window_close'}, + } + }
\ No newline at end of file |
