summaryrefslogtreecommitdiff
path: root/fixco_custom/models
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2026-02-11 16:38:40 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2026-02-11 16:38:40 +0700
commit3a9fdb91554a9b65ae0e9dc14a92cd1a437c7bab (patch)
tree2b93de7502ed1c4501f928262879b9239bafbaa2 /fixco_custom/models
parentb2b4be7ed8c92c6ce7b2fbdecd794054eda07437 (diff)
<Miqdad> req iqmal JE
Diffstat (limited to 'fixco_custom/models')
-rw-r--r--fixco_custom/models/account_move.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/fixco_custom/models/account_move.py b/fixco_custom/models/account_move.py
index 6315b6e..09e4e45 100644
--- a/fixco_custom/models/account_move.py
+++ b/fixco_custom/models/account_move.py
@@ -56,6 +56,16 @@ class AccountMove(models.Model):
# 'purchase.order.line',
# string='Auto Complete (PO Item)',
# )
+ partner_compute = fields.Char(
+ string='Partner Compute',
+ compute='_compute_partner_compute',
+ )
+
+ @api.depends('line_ids.partner_id')
+ def _compute_partner_compute(self):
+ for move in self:
+ partners = move.mapped('line_ids.partner_id.name')
+ move.partner_compute = ', '.join(partners)
def action_open_po_item_wizard(self):
self.ensure_one()