summaryrefslogtreecommitdiff
path: root/fixco_custom/models/account_move.py
diff options
context:
space:
mode:
Diffstat (limited to 'fixco_custom/models/account_move.py')
-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()