diff options
Diffstat (limited to 'indoteknik_custom/models/purchase_order_multi_uangmuka2.py')
| -rw-r--r-- | indoteknik_custom/models/purchase_order_multi_uangmuka2.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/indoteknik_custom/models/purchase_order_multi_uangmuka2.py b/indoteknik_custom/models/purchase_order_multi_uangmuka2.py new file mode 100644 index 00000000..56539c5f --- /dev/null +++ b/indoteknik_custom/models/purchase_order_multi_uangmuka2.py @@ -0,0 +1,18 @@ +from odoo import fields, models, _, api +from odoo.exceptions import UserError +from datetime import datetime +from odoo.http import request + +import logging, math + +_logger = logging.getLogger(__name__) + + +class PurchaseOrderMultiUangmuka2(models.TransientModel): + _name = 'purchase.order.multi_uangmuka2' + + def redirect_to_po(self): + po_ids = self._context['order_ids'] + purchase = self.env['purchase.order'].browse(po_ids) + purchase.is_create_uangmuka = False + return purchase.open_form_multi_create_uang_muka2()
\ No newline at end of file |
