mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[FIX]repair_countin rma group
This commit is contained in:
@@ -11,7 +11,7 @@ class RmaOrder(models.Model):
|
||||
def _compute_repair_count(self):
|
||||
for rma in self:
|
||||
repairs = rma.mapped('rma_line_ids.repair_ids')
|
||||
rma.rma_count = len(repairs)
|
||||
rma.repair_count = len(repairs)
|
||||
|
||||
repair_count = fields.Integer(
|
||||
compute='_compute_repair_count', string='# of Repairs')
|
||||
|
||||
Reference in New Issue
Block a user