summaryrefslogtreecommitdiff
path: root/fixco_custom/models/account_move_line.py
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2026-02-23 15:57:03 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2026-02-23 15:57:03 +0700
commitb6d4737a8db5607172ac4f9a683cccb1e6c633cd (patch)
tree3ad1e8ee066f6ca51a8382ec4d61c108dac995aa /fixco_custom/models/account_move_line.py
parentc0781114ae9c1e1616b6ccbff22d43452e7e1fcc (diff)
parentd108fdcf6994664bf7475f1e7fdce76e2597a2a2 (diff)
Merge branch 'main' of https://bitbucket.org/altafixco/fixco-addons
merge
Diffstat (limited to 'fixco_custom/models/account_move_line.py')
-rw-r--r--fixco_custom/models/account_move_line.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/fixco_custom/models/account_move_line.py b/fixco_custom/models/account_move_line.py
index d84c802..9cd5d85 100644
--- a/fixco_custom/models/account_move_line.py
+++ b/fixco_custom/models/account_move_line.py
@@ -6,7 +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', related='move_id.faktur_pajak')
+ 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