From 233662316ed9b108271f5f4aacb1fcc0b05be63a Mon Sep 17 00:00:00 2001 From: Mqdd Date: Fri, 20 Feb 2026 10:45:48 +0700 Subject: fix faktur pajak GL --- fixco_custom/models/account_move_line.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/fixco_custom/models/account_move_line.py b/fixco_custom/models/account_move_line.py index a2a6e02..0c64fe1 100644 --- a/fixco_custom/models/account_move_line.py +++ b/fixco_custom/models/account_move_line.py @@ -6,7 +6,17 @@ class AccountMoveLine(models.Model): qty_outstanding = fields.Float(string='Qty Outstanding', compute='_compute_qty_outstanding') invoice_marketplace = fields.Text("Invoice Mearketplace", compute='_compute_invoice_marketplace') - faktur_pajak = fields.Char(string='Faktur Pajak', related='move_id.faktur_pajak') + faktur_pajak = fields.Char(string='Faktur Pajak', compute='_compute_faktur_pajak') + + def _compute_faktur_pajak(self): + for line in self: + line.faktur_pajak = False + move = line.move_id + + if not move: + continue + + line.faktur_pajak = move.efaktur_id.name if move.efaktur_id else False def action_gl_reconcile(self): lines = self -- cgit v1.2.3 From 8bba994b80718a078ec24ade3b1cdf03eac8c0ff Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Mon, 23 Feb 2026 09:54:56 +0700 Subject: push --- fixco_custom/models/sale_order_multi_invoices.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fixco_custom/models/sale_order_multi_invoices.py b/fixco_custom/models/sale_order_multi_invoices.py index e6b0b98..de53797 100644 --- a/fixco_custom/models/sale_order_multi_invoices.py +++ b/fixco_custom/models/sale_order_multi_invoices.py @@ -9,9 +9,9 @@ class SaleOrderMultiInvoices(models.TransientModel): so_ids = self._context.get('so_ids', []) sale_orders = self.env['sale.order'].browse(so_ids) for sale in sale_orders: - queue_job = self.env['queue.job'].search([('res_id', '=', sale.id), ('method_name', '=', 'create_invoices')], limit=1) - if queue_job: - continue + # queue_job = self.env['queue.job'].search([('res_id', '=', sale.id), ('method_name', '=', 'create_invoices')], limit=1) + # if queue_job: + # continue self.env['queue.job'].create({ 'name': f'Create Invoice {sale.name}', 'model_name': 'sale.order', -- cgit v1.2.3 From d108fdcf6994664bf7475f1e7fdce76e2597a2a2 Mon Sep 17 00:00:00 2001 From: Mqdd Date: Mon, 23 Feb 2026 11:02:00 +0700 Subject: show SO and invoice mp in credit note --- fixco_custom/views/account_move.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fixco_custom/views/account_move.xml b/fixco_custom/views/account_move.xml index ee3cd20..3618ec7 100644 --- a/fixco_custom/views/account_move.xml +++ b/fixco_custom/views/account_move.xml @@ -65,7 +65,7 @@ - + @@ -87,7 +87,7 @@ - + -- cgit v1.2.3