diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2026-01-20 15:57:31 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2026-01-20 15:57:31 +0700 |
| commit | c48a2248a874277b7795d86c6247f51430c0b810 (patch) | |
| tree | dfa9540bbc72bcbdbc54844e97c1a47788cbeefb /fixco_custom/models/account_move.py | |
| parent | d2268706824167cd23dd3ea9e22acc241bc35122 (diff) | |
push
Diffstat (limited to 'fixco_custom/models/account_move.py')
| -rw-r--r-- | fixco_custom/models/account_move.py | 5 |
1 files changed, 5 insertions, 0 deletions
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)', |
