diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2026-02-02 07:50:23 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2026-02-02 07:50:23 +0000 |
| commit | 50b9bc544cd837772c66ea3314558ef03a09fe21 (patch) | |
| tree | 4d9ecdf80e524b248087777266c21af322467cb2 /indoteknik_custom/models/sale_order.py | |
| parent | bc49bd0455ad498c4b908517b20d184ca219f80f (diff) | |
| parent | 8b28af52afe07363209601a1ad1cb90b7778d1d8 (diff) | |
Merged in cashback_brand (pull request #487)
<hafid> fix margin po 2
Diffstat (limited to 'indoteknik_custom/models/sale_order.py')
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py index 469509d4..a4bc2309 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -3438,7 +3438,7 @@ class SaleOrder(models.Model): def button_refund(self): self.ensure_one() - invoice_ids = self.invoice_ids.filtered(lambda inv: inv.payment_state == 'paid') + invoice_ids = self.invoice_ids.filtered(lambda inv: inv.state == 'posted') moves = self.env['account.move'].search([ ('sale_id', '=', self.id), |
