From 19c89403f7ba9ba4ef47dfa1f8a7edc879aaeee6 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Wed, 19 Nov 2025 15:46:35 +0700 Subject: fix bug --- indoteknik_custom/models/partial_delivery.py | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/indoteknik_custom/models/partial_delivery.py b/indoteknik_custom/models/partial_delivery.py index 519f505c..4e8ddbda 100644 --- a/indoteknik_custom/models/partial_delivery.py +++ b/indoteknik_custom/models/partial_delivery.py @@ -213,14 +213,22 @@ class PartialDeliveryWizard(models.TransientModel): new_picking.action_assign() picking.action_assign() - existing_partials = self.env['stock.picking'].search([ - ('origin', '=', picking.origin), - ('state_reserve', '=', 'partial'), + origin_name = picking.name + + existing_siblings = self.env['stock.picking'].search([ + ('name', 'like', f"{origin_name}/%"), ('id', '!=', new_picking.id), - ], order='name asc') + ]) + + suffixes = [] + for p in existing_siblings: + match = re.search(r'/(\d+)$', p.name) + if match: + suffixes.append(int(match.group(1))) + + next_suffix = max(suffixes) + 1 if suffixes else 1 - suffix_number = len(existing_partials) + 1 - new_picking.name = f"{picking.name}/{suffix_number}" + new_picking.name = f"{origin_name}/{next_suffix}" if picking.origin: sale_order = self.env['sale.order'].search([('name', '=', picking.origin)], limit=1) -- cgit v1.2.3 From 82f7eba8fb07f65455eeba9274207243c15ce807 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Wed, 19 Nov 2025 15:56:58 +0700 Subject: fix bug --- indoteknik_custom/models/account_move_due_extension.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indoteknik_custom/models/account_move_due_extension.py b/indoteknik_custom/models/account_move_due_extension.py index 352200e0..bd51e93b 100644 --- a/indoteknik_custom/models/account_move_due_extension.py +++ b/indoteknik_custom/models/account_move_due_extension.py @@ -129,7 +129,7 @@ class DueExtension(models.Model): self.date_approve = datetime.utcnow() # self.order_id.message_post("Due Extension telah di approve") - self.order_id.message_post(f"Due Extension {self.number} telah di approve") + self.order_id.message_post(f"Due Extension telah di approve") template = self.env.ref('indoteknik_custom.mail_template_due_extension_approve') template.send_mail(self.id, force_send=True) return { -- cgit v1.2.3 From b40af2acc7c5be6ca8b08404d9b471254aa49962 Mon Sep 17 00:00:00 2001 From: FIN-IT_AndriFP Date: Wed, 19 Nov 2025 16:07:20 +0700 Subject: fix --- indoteknik_custom/models/account_move_due_extension.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indoteknik_custom/models/account_move_due_extension.py b/indoteknik_custom/models/account_move_due_extension.py index bd51e93b..2e4fd58b 100644 --- a/indoteknik_custom/models/account_move_due_extension.py +++ b/indoteknik_custom/models/account_move_due_extension.py @@ -129,7 +129,7 @@ class DueExtension(models.Model): self.date_approve = datetime.utcnow() # self.order_id.message_post("Due Extension telah di approve") - self.order_id.message_post(f"Due Extension telah di approve") + self.order_id.message_post("Due Extension telah di approve") template = self.env.ref('indoteknik_custom.mail_template_due_extension_approve') template.send_mail(self.id, force_send=True) return { -- cgit v1.2.3 From 6c967a62c9bd6658919a19f1c4534a3672090ec1 Mon Sep 17 00:00:00 2001 From: FIN-IT_AndriFP Date: Wed, 19 Nov 2025 16:22:23 +0700 Subject: fix --- indoteknik_custom/models/account_move_due_extension.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indoteknik_custom/models/account_move_due_extension.py b/indoteknik_custom/models/account_move_due_extension.py index 2e4fd58b..7faad418 100644 --- a/indoteknik_custom/models/account_move_due_extension.py +++ b/indoteknik_custom/models/account_move_due_extension.py @@ -129,7 +129,7 @@ class DueExtension(models.Model): self.date_approve = datetime.utcnow() # self.order_id.message_post("Due Extension telah di approve") - self.order_id.message_post("Due Extension telah di approve") + self.order_id.message_post(body="Due Extension telah di approve") template = self.env.ref('indoteknik_custom.mail_template_due_extension_approve') template.send_mail(self.id, force_send=True) return { -- cgit v1.2.3 From 0b92afc7a54ab1a9a826a0a3780ccea1cdecead5 Mon Sep 17 00:00:00 2001 From: HafidBuroiroh Date: Wed, 19 Nov 2025 16:29:09 +0700 Subject: fix overlap --- indoteknik_custom/models/refund_sale_order.py | 1 + 1 file changed, 1 insertion(+) diff --git a/indoteknik_custom/models/refund_sale_order.py b/indoteknik_custom/models/refund_sale_order.py index cbc0b717..97b1d185 100644 --- a/indoteknik_custom/models/refund_sale_order.py +++ b/indoteknik_custom/models/refund_sale_order.py @@ -696,6 +696,7 @@ class RefundSaleOrder(models.Model): domain = [ ('journal_id', '=', 11), + ('sale_id', '=', False), ('state', '=', 'posted'), ('ref', 'ilike', 'uang muka penjualan'), ('ref', 'not ilike', 'reklas'), -- cgit v1.2.3 From a990e53230aac80609af11c4fcf665b582b621ae Mon Sep 17 00:00:00 2001 From: HafidBuroiroh Date: Thu, 20 Nov 2025 10:38:24 +0700 Subject: push --- indoteknik_custom/models/refund_sale_order.py | 1 + 1 file changed, 1 insertion(+) diff --git a/indoteknik_custom/models/refund_sale_order.py b/indoteknik_custom/models/refund_sale_order.py index 97b1d185..f9ae514d 100644 --- a/indoteknik_custom/models/refund_sale_order.py +++ b/indoteknik_custom/models/refund_sale_order.py @@ -331,6 +331,7 @@ class RefundSaleOrder(models.Model): so_names = self.env['sale.order'].browse(so_ids).mapped('name') domain = [ ('journal_id', '=', 11), + ('sale_id', '=', False), ('state', '=', 'posted'), ('ref', 'ilike', 'uang muka penjualan'), ('ref', 'not ilike', 'reklas'), -- cgit v1.2.3 From 83d9d90e2e7bfa05371134b82e61065ef26b6ef0 Mon Sep 17 00:00:00 2001 From: FIN-IT_AndriFP Date: Thu, 20 Nov 2025 10:50:53 +0700 Subject: fix day to due DE --- indoteknik_custom/models/account_move_due_extension.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indoteknik_custom/models/account_move_due_extension.py b/indoteknik_custom/models/account_move_due_extension.py index 7faad418..3c64aae3 100644 --- a/indoteknik_custom/models/account_move_due_extension.py +++ b/indoteknik_custom/models/account_move_due_extension.py @@ -215,7 +215,8 @@ class DueExtensionLine(models.Model): def _compute_day_to_due(self): for line in self: - line.day_to_due = line.invoice_id.invoice_day_to_due + # line.day_to_due = line.invoice_id.invoice_day_to_due + line.day_to_due = line.invoice_id.new_invoice_day_to_due def _compute_due_date(self): for line in self: -- cgit v1.2.3 From 23adbda98e96b8bb09c9575a9f87fd27e89b5a65 Mon Sep 17 00:00:00 2001 From: HafidBuroiroh Date: Thu, 20 Nov 2025 15:17:56 +0700 Subject: fix website checkout amount and journal amount --- indoteknik_custom/models/refund_sale_order.py | 46 +++++++++++---------------- 1 file changed, 19 insertions(+), 27 deletions(-) diff --git a/indoteknik_custom/models/refund_sale_order.py b/indoteknik_custom/models/refund_sale_order.py index f9ae514d..38ab69fa 100644 --- a/indoteknik_custom/models/refund_sale_order.py +++ b/indoteknik_custom/models/refund_sale_order.py @@ -352,30 +352,23 @@ class RefundSaleOrder(models.Model): has_settlement = any(so.payment_status == 'settlement' for so in ssos) sisa_uang_masuk = 0.0 - amounts = [] - if has_moves and has_settlement: - amounts.append(sum(moves.mapped('amount_total_signed'))) - amounts.append(sum(ssos.mapped('gross_amount'))) - else: - if has_moves: - amounts.append(sum(moves.mapped('amount_total_signed'))) - if has_settlement: - amounts.append(sum(ssos.mapped('gross_amount'))) + has_journal = has_moves or has_moves2 or has_moves3 or has_piutangbca or has_piutangmdr or has_misc - # sisanya bisa dijumlahkan tanpa konflik + if has_moves: + sisa_uang_masuk += sum(moves.mapped('amount_total_signed')) if has_moves2: - amounts.append(sum(moves2.mapped('amount_total_signed'))) + sisa_uang_masuk += sum(moves2.mapped('amount_total_signed')) if has_moves3: - amounts.append(sum(moves3.mapped('amount_total_signed'))) + sisa_uang_masuk += sum(moves3.mapped('amount_total_signed')) if has_piutangbca: - amounts.append(sum(piutangbca.mapped('amount_total_signed'))) + sisa_uang_masuk += sum(piutangbca.mapped('amount_total_signed')) if has_piutangmdr: - amounts.append(sum(piutangmdr.mapped('amount_total_signed'))) + sisa_uang_masuk += sum(piutangmdr.mapped('amount_total_signed')) if has_misc: - amounts.append(sum(misc.mapped('amount_total_signed'))) - - sisa_uang_masuk = sum(amounts) + sisa_uang_masuk += sum(misc.mapped('amount_total_signed')) + if has_settlement and not has_journal: + sisa_uang_masuk += sum(ssos.mapped('gross_amount')) if not sisa_uang_masuk: raise UserError( @@ -719,24 +712,23 @@ class RefundSaleOrder(models.Model): sisa_uang_masuk = 0.0 - amounts = [] + has_journal = has_moves or has_moves2 or has_moves3 or has_piutangbca or has_piutangmdr or has_misc if has_moves: - amounts.append(sum(moves.mapped('amount_total_signed'))) + sisa_uang_masuk += sum(moves.mapped('amount_total_signed')) if has_moves2: - amounts.append(sum(moves2.mapped('amount_total_signed'))) + sisa_uang_masuk += sum(moves2.mapped('amount_total_signed')) if has_moves3: - amounts.append(sum(moves3.mapped('amount_total_signed'))) + sisa_uang_masuk += sum(moves3.mapped('amount_total_signed')) if has_piutangbca: - amounts.append(sum(piutangbca.mapped('amount_total_signed'))) + sisa_uang_masuk += sum(piutangbca.mapped('amount_total_signed')) if has_piutangmdr: - amounts.append(sum(piutangmdr.mapped('amount_total_signed'))) + sisa_uang_masuk += sum(piutangmdr.mapped('amount_total_signed')) if has_misc: - amounts.append(sum(misc.mapped('amount_total_signed'))) - if has_settlement: - amounts.append(sum(ssos.mapped('gross_amount'))) + sisa_uang_masuk += sum(misc.mapped('amount_total_signed')) - sisa_uang_masuk = sum(amounts) + if has_settlement and not has_journal: + sisa_uang_masuk += sum(ssos.mapped('gross_amount')) self.uang_masuk = sisa_uang_masuk - amount_refund_before -- cgit v1.2.3 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 From 5f4f209e9f04dfc196ef7a8cbc765fad219b15bd Mon Sep 17 00:00:00 2001 From: FIN-IT_AndriFP Date: Mon, 24 Nov 2025 13:34:27 +0700 Subject: (andri) add handle widget line tree form realisasi PUM & Reimburse --- indoteknik_custom/models/advance_payment_request.py | 8 +++++++- indoteknik_custom/views/advance_payment_request.xml | 1 + indoteknik_custom/views/advance_payment_settlement.xml | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/indoteknik_custom/models/advance_payment_request.py b/indoteknik_custom/models/advance_payment_request.py index ec23de63..06807fb8 100644 --- a/indoteknik_custom/models/advance_payment_request.py +++ b/indoteknik_custom/models/advance_payment_request.py @@ -823,6 +823,9 @@ class AdvancePaymentUsageLine(models.Model): _name = 'advance.payment.usage.line' _description = 'Advance Payment Usage Line' + _order = 'sequence, id' + sequence = fields.Integer(string='Sequence', default=10) + realization_id = fields.Many2one('advance.payment.settlement', string='Realization') date = fields.Date(string='Tanggal', required=True, default=fields.Date.today) description = fields.Text(string='Description', required=True) @@ -903,7 +906,10 @@ class AdvancePaymentUsageLine(models.Model): class ReimburseLine(models.Model): _name = 'reimburse.line' - _description = 'Reimburse Line' + _description = 'Reimburse Line' + + _order = 'sequence, id' + sequence = fields.Integer(string='Sequence', default=10) request_id = fields.Many2one('advance.payment.request', string='Request') date = fields.Date(string='Tanggal', required=True, default=fields.Date.today) diff --git a/indoteknik_custom/views/advance_payment_request.xml b/indoteknik_custom/views/advance_payment_request.xml index 4e73bb28..60042554 100644 --- a/indoteknik_custom/views/advance_payment_request.xml +++ b/indoteknik_custom/views/advance_payment_request.xml @@ -130,6 +130,7 @@ + diff --git a/indoteknik_custom/views/advance_payment_settlement.xml b/indoteknik_custom/views/advance_payment_settlement.xml index 050e3933..a77baffe 100644 --- a/indoteknik_custom/views/advance_payment_settlement.xml +++ b/indoteknik_custom/views/advance_payment_settlement.xml @@ -74,6 +74,7 @@ + -- cgit v1.2.3 From 61aabd2a7be015a19d9a16d8e160f5a3c3c6efaf Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Mon, 24 Nov 2025 15:09:25 +0700 Subject: add salesperson on due extension line --- indoteknik_custom/models/account_move_due_extension.py | 1 + indoteknik_custom/views/account_move_views.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/indoteknik_custom/models/account_move_due_extension.py b/indoteknik_custom/models/account_move_due_extension.py index 3c64aae3..828be824 100644 --- a/indoteknik_custom/models/account_move_due_extension.py +++ b/indoteknik_custom/models/account_move_due_extension.py @@ -195,6 +195,7 @@ class DueExtensionLine(models.Model): invoice_id = fields.Many2one('account.move', string='Invoice') date_invoice = fields.Date(string='Invoice Date') efaktur_id = fields.Many2one('vit.efaktur', string='Faktur Pajak') + user_id = fields.Many2one('res.users', string='Salesperson', related='invoice_id.invoice_user_id') reference = fields.Char(string='Reference') total_amt = fields.Float(string='Total Amount') open_amt = fields.Float(string='Open Amount') diff --git a/indoteknik_custom/views/account_move_views.xml b/indoteknik_custom/views/account_move_views.xml index 08b93f1f..b226460c 100644 --- a/indoteknik_custom/views/account_move_views.xml +++ b/indoteknik_custom/views/account_move_views.xml @@ -30,7 +30,7 @@ - + -- cgit v1.2.3