summaryrefslogtreecommitdiff
path: root/fixco_custom/models/account_move_line.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2026-02-23 09:56:11 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2026-02-23 09:56:11 +0700
commita74cf187f1e25edc18b7718c53af9f74554cfed8 (patch)
treeb5ec5cd2fd68a7dea6f0026ea869063f670f53f4 /fixco_custom/models/account_move_line.py
parent8bba994b80718a078ec24ade3b1cdf03eac8c0ff (diff)
parent233662316ed9b108271f5f4aacb1fcc0b05be63a (diff)
Merge branch 'main' of bitbucket.org:altafixco/fixco-addons
pull
Diffstat (limited to 'fixco_custom/models/account_move_line.py')
-rw-r--r--fixco_custom/models/account_move_line.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/fixco_custom/models/account_move_line.py b/fixco_custom/models/account_move_line.py
index 1f4ed9d..0c64fe1 100644
--- a/fixco_custom/models/account_move_line.py
+++ b/fixco_custom/models/account_move_line.py
@@ -6,6 +6,17 @@ class AccountMoveLine(models.Model):
qty_outstanding = fields.Float(string='Qty Outstanding', compute='_compute_qty_outstanding')
invoice_marketplace = fields.Text("Invoice Mearketplace", compute='_compute_invoice_marketplace')
+ faktur_pajak = fields.Char(string='Faktur Pajak', compute='_compute_faktur_pajak')
+
+ def _compute_faktur_pajak(self):
+ for line in self:
+ line.faktur_pajak = False
+ move = line.move_id
+
+ if not move:
+ continue
+
+ line.faktur_pajak = move.efaktur_id.name if move.efaktur_id else False
def action_gl_reconcile(self):
lines = self