summaryrefslogtreecommitdiff
path: root/fixco_custom/models
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2026-02-03 16:38:59 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2026-02-03 16:38:59 +0700
commit3a18b6f0ca12384e009db08d99e94d38974f9811 (patch)
treebcc01464b0aefb6d92cf66def750c2a33378134c /fixco_custom/models
parent20ab2011bc9766e436cf3f81be70c1c52af824ba (diff)
<Miqdad> add invoice marketplace in tree view general ledger
Diffstat (limited to 'fixco_custom/models')
-rw-r--r--fixco_custom/models/account_move_line.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/fixco_custom/models/account_move_line.py b/fixco_custom/models/account_move_line.py
index f03d6e6..bf579f9 100644
--- a/fixco_custom/models/account_move_line.py
+++ b/fixco_custom/models/account_move_line.py
@@ -5,6 +5,13 @@ class AccountMoveLine(models.Model):
_inherit = "account.move.line"
qty_outstanding = fields.Float(string='Qty Outstanding', compute='_compute_qty_outstanding')
+ invoice_marketplace = fields.Text("Invoice Mearketplace", compute='_compute_invoice_marketplace')
+
+ @api.depends('move_id', 'move_id.invoice_marketplace')
+ def _compute_invoice_marketplace(self):
+ for line in self:
+ invoice_origin = line.move_id.invoice_marketplace
+ line.invoice_marketplace = invoice_origin
def _compute_qty_outstanding(self):
for line in self: