From ecbdec9343e56effbacb56d0060f7a6e9912f047 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Wed, 7 Jan 2026 17:12:10 +0700 Subject: push upload bills queue job --- fixco_custom/models/purchase_order.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'fixco_custom/models/purchase_order.py') diff --git a/fixco_custom/models/purchase_order.py b/fixco_custom/models/purchase_order.py index 43fe8f6..c745fbe 100644 --- a/fixco_custom/models/purchase_order.py +++ b/fixco_custom/models/purchase_order.py @@ -58,6 +58,18 @@ class PurchaseOrder(models.Model): soo_tax = fields.Float('SOO Tax', copy=False) discount_total = fields.Float('Discount Total', help = 'Total Discount for Each Product', copy=False, default=0.0) + def open_form_multi_create_bills(self): + return { + 'name': _('Create Bills'), + 'type': 'ir.actions.act_window', + 'res_model': 'purchase.order.multi_bills', + 'view_mode': 'form', + 'target': 'new', + 'context': { + 'po_ids': self.ids, + } + } + def _get_fixco_token(self, source='auto'): ICP = self.env['ir.config_parameter'].sudo() TokenLog = self.env['token.log'].sudo() -- cgit v1.2.3