From add0d418ab92e52197747f046d6d62e372ec4f97 Mon Sep 17 00:00:00 2001 From: Mqdd Date: Thu, 20 Nov 2025 17:10:38 +0700 Subject: fix coretax export --- indoteknik_custom/models/coretax_fatur.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/indoteknik_custom/models/coretax_fatur.py b/indoteknik_custom/models/coretax_fatur.py index cabcd5d6..755c5cc3 100644 --- a/indoteknik_custom/models/coretax_fatur.py +++ b/indoteknik_custom/models/coretax_fatur.py @@ -147,7 +147,15 @@ class CoretaxFaktur(models.Model): subtotal = line_price_subtotal quantity = line_quantity total_discount = round(line_discount, 2) - coretax_id = line.product_uom_id.coretax_id + if isinstance(line, dict): + product = line.get('product_id') + uom = product.uom_id if product else False + else: + uom = line.product_uom_id + + coretax_id = uom.coretax_id if uom else '' + + # coretax_id = line.product_uom_id.coretax_id # Calculate other tax values otherTaxBase = round(subtotal * (11 / 12), 2) if subtotal else 0 vat_amount = round(otherTaxBase * 0.12, 2) -- cgit v1.2.3 From cd165c35d8e984e9f38e76f52b95b223eab26784 Mon Sep 17 00:00:00 2001 From: Mqdd Date: Fri, 21 Nov 2025 13:46:33 +0700 Subject: allow return from srt or ort --- indoteknik_custom/models/stock_picking_return.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/indoteknik_custom/models/stock_picking_return.py b/indoteknik_custom/models/stock_picking_return.py index 53a85f67..9cf017f9 100644 --- a/indoteknik_custom/models/stock_picking_return.py +++ b/indoteknik_custom/models/stock_picking_return.py @@ -120,8 +120,19 @@ class ReturnPicking(models.TransientModel): 'target': 'current', 'context': context, } - if picking.sale_id or 'SO' in (picking.origin or ''): - _logger.info("This picking is NOT from a PO, fallback to SO.") + # if picking.sale_id or 'SO' in (picking.origin or ''): + # _logger.info("This picking is NOT from a PO, fallback to SO.") + # return { + # 'name': _('Tukar Guling SO'), + # 'type': 'ir.actions.act_window', + # 'res_model': 'tukar.guling', + # 'view_mode': 'form', + # 'target': 'current', + # 'context': context, + # } + + if picking.name and any(k in picking.name.upper() for k in ('PICK', 'OUT')): + _logger.info("Redirect ke Tukar Guling SO via sale_id / origin") return { 'name': _('Tukar Guling SO'), 'type': 'ir.actions.act_window', -- cgit v1.2.3 From 0f594802bbea90d27c033c5e4f797e0ae29261eb Mon Sep 17 00:00:00 2001 From: Mqdd Date: Fri, 21 Nov 2025 14:16:22 +0700 Subject: balikin ccm --- indoteknik_custom/models/tukar_guling.py | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/indoteknik_custom/models/tukar_guling.py b/indoteknik_custom/models/tukar_guling.py index aa116ce3..99a74505 100644 --- a/indoteknik_custom/models/tukar_guling.py +++ b/indoteknik_custom/models/tukar_guling.py @@ -737,18 +737,14 @@ class TukarGuling(models.Model): if mapping_koli and record.operations.picking_type_id.id == 29: for prod in mapping_koli.mapped('product_id'): qty_total = sum(mk.qty_return for mk in mapping_koli.filtered(lambda m: m.product_id == prod)) - - move_lines = bu_out.move_line_ids.filtered( - lambda ml: ml.product_id == prod and ml.qty_done > 0 and not ml.package_id - ) - - for ml in move_lines: - srt_return_lines.append((0, 0, { - 'product_id': ml.product_id.id, - 'quantity': ml.qty_done, - 'move_id': ml.move_id.id, - })) - + move = bu_out.move_lines.filtered(lambda m: m.product_id == prod) + if not move: + raise UserError(f"Move BU/OUT tidak ditemukan untuk produk {prod.display_name}") + srt_return_lines.append((0, 0, { + 'product_id': prod.id, + 'quantity': qty_total, + 'move_id': move.id, + })) _logger.info(f"📟 SRT line: {prod.display_name} | qty={qty_total}") elif not mapping_koli and record.operations.picking_type_id.id == 29: -- cgit v1.2.3 From b7f8da0c3e921c7567e5639e9c18ac04255eaba7 Mon Sep 17 00:00:00 2001 From: Mqdd Date: Sat, 22 Nov 2025 23:47:40 +0700 Subject: cannot create partner from account move line (journal entries) --- indoteknik_custom/views/account_move.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/indoteknik_custom/views/account_move.xml b/indoteknik_custom/views/account_move.xml index c5f9580c..d54b0f29 100644 --- a/indoteknik_custom/views/account_move.xml +++ b/indoteknik_custom/views/account_move.xml @@ -133,6 +133,11 @@ decoration-warning="payment_difficulty in ('agak_sulit', 'sulit')" decoration-danger="payment_difficulty == 'bermasalah'" optional="hide"/> + + + {'no_create':True} + + -- cgit v1.2.3 From d976fa7ad6f65c5e8a5c751283fa8b865a71e55f Mon Sep 17 00:00:00 2001 From: Mqdd Date: Sun, 23 Nov 2025 00:09:04 +0700 Subject: Balikin --- indoteknik_custom/views/account_move.xml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/indoteknik_custom/views/account_move.xml b/indoteknik_custom/views/account_move.xml index d54b0f29..c5f9580c 100644 --- a/indoteknik_custom/views/account_move.xml +++ b/indoteknik_custom/views/account_move.xml @@ -133,11 +133,6 @@ decoration-warning="payment_difficulty in ('agak_sulit', 'sulit')" decoration-danger="payment_difficulty == 'bermasalah'" optional="hide"/> - - - {'no_create':True} - - -- cgit v1.2.3 From 091c60f65e7fa2f6c950535bb61e505014c90bce Mon Sep 17 00:00:00 2001 From: Mqdd Date: Sun, 23 Nov 2025 00:09:30 +0700 Subject: cannot create partner id from journal entries --- indoteknik_custom/views/account_move_line.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/indoteknik_custom/views/account_move_line.xml b/indoteknik_custom/views/account_move_line.xml index 3a20388e..cb24a0f0 100644 --- a/indoteknik_custom/views/account_move_line.xml +++ b/indoteknik_custom/views/account_move_line.xml @@ -16,6 +16,9 @@ {'no_create': True} + + {'no_create': True, 'no_open': True} + -- cgit v1.2.3 From bc88583abda72e813d0426129979eb3f84cdefea Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Mon, 24 Nov 2025 11:28:22 +0700 Subject: push report po guangzhou --- indoteknik_custom/report/purchase_report.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/indoteknik_custom/report/purchase_report.xml b/indoteknik_custom/report/purchase_report.xml index 208e6472..f328f8a8 100644 --- a/indoteknik_custom/report/purchase_report.xml +++ b/indoteknik_custom/report/purchase_report.xml @@ -61,9 +61,9 @@ Alamat Pengiriman
PT. Indoteknik Dotcom Gemilang
- Jl. Bandengan Utara Komp A 8 B - RT. Penjaringan, Kec. Penjaringan, Jakarta - (BELAKANG INDOMARET)
+ JALAN BANDENGAN UTARA 85A NO.8-9 RT. 003 +RW. 016, PENJARINGAN, PENJARINGAN, KOTA +ADM. JAKARTA UTARA, DKI JAKARTA
Daerah Khusus Ibukota Jakarta 14440 -- cgit v1.2.3 From 56555cc5a11fe0bbf2b210622e3bd4b19cf033c1 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Mon, 24 Nov 2025 11:34:18 +0700 Subject: push --- indoteknik_custom/report/purchase_report.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/indoteknik_custom/report/purchase_report.xml b/indoteknik_custom/report/purchase_report.xml index f328f8a8..a3c3cf12 100644 --- a/indoteknik_custom/report/purchase_report.xml +++ b/indoteknik_custom/report/purchase_report.xml @@ -97,10 +97,16 @@ ADM. JAKARTA UTARA, DKI JAKARTA
- . - + . + + + + + +
+ -- cgit v1.2.3 From cd10b3dece04b57bce454ba652dc1bb7662d6456 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Mon, 24 Nov 2025 13:13:19 +0700 Subject: push --- indoteknik_custom/report/purchase_report.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/indoteknik_custom/report/purchase_report.xml b/indoteknik_custom/report/purchase_report.xml index a3c3cf12..c51ddc96 100644 --- a/indoteknik_custom/report/purchase_report.xml +++ b/indoteknik_custom/report/purchase_report.xml @@ -61,9 +61,10 @@ Alamat Pengiriman
PT. Indoteknik Dotcom Gemilang
- JALAN BANDENGAN UTARA 85A NO.8-9 RT. 003 -RW. 016, PENJARINGAN, PENJARINGAN, KOTA -ADM. JAKARTA UTARA, DKI JAKARTA
+ Jl. Bandengan Utara Komp A 8 B RT. + Penjaringan, Kec. Penjaringan, Jakarta + (BELAKANG INDOMARET) +
Daerah Khusus Ibukota Jakarta 14440 -- cgit v1.2.3