From c48a2248a874277b7795d86c6247f51430c0b810 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Tue, 20 Jan 2026 15:57:31 +0700 Subject: push --- fixco_custom/models/account_move.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'fixco_custom/models/account_move.py') diff --git a/fixco_custom/models/account_move.py b/fixco_custom/models/account_move.py index 2346fec..6315b6e 100644 --- a/fixco_custom/models/account_move.py +++ b/fixco_custom/models/account_move.py @@ -47,6 +47,11 @@ class AccountMove(models.Model): compute="_compute_need_refund", help="Flag otomatis kalau invoice sudah paid dan picking terkait di-return." ) + total_discount = fields.Monetary( + string='Total Discount', + related='sale_id.total_discount', + currency_field='currency_id', + ) # purchase_item_ids= fields.Many2many( # 'purchase.order.line', # string='Auto Complete (PO Item)', -- cgit v1.2.3