[FIX] pms: Adding missing super statment on _compute_name

Odoo introduced following commit:
1dcd071b27

Where converts the name field on account.move.line model into a computed field, this leads
on a conflict since pms module make the same, but now it's overwriting the original funciton made by odoo
so this it's addind the mising super statement to compleate inheritance
This commit is contained in:
Hugo Adan
2023-02-28 23:11:28 +00:00
committed by Darío Lodeiros
parent 70ea605649
commit add26c408a

View File

@@ -57,8 +57,9 @@ class AccountMoveLine(models.Model):
)
move_id = fields.Many2one(check_pms_properties=True)
@api.depends("quantity")
@api.depends('move_id.payment_reference', "quantity")
def _compute_name(self):
res = super()._compute_name()
for record in self:
if record.folio_line_ids and not record.name_changed_by_user:
record.name_changed_by_user = False
@@ -70,6 +71,7 @@ class AccountMoveLine(models.Model):
record.folio_line_ids.service_line_ids,
qty=record.quantity,
)
return res
@api.depends("move_id")
def _compute_pms_property_id(self):