[IMP]pms: replace reservation sequence by folio + compute sequence

This commit is contained in:
Darío Lodeiros
2022-04-07 19:10:29 +02:00
parent 19029b4f4d
commit 2e5f4f4447
7 changed files with 15 additions and 47 deletions

View File

@@ -781,5 +781,8 @@ class ResPartner(models.Model):
"pms", "various_pms_partner"
)
if various_partner_id in self.ids:
raise ValidationError(_("The partner 'Various Clients' cannot be deleted"))
various_partner = self.browse(various_partner_id)
raise ValidationError(
_("The partner %s cannot be deleted"), various_partner.name
)
return super().unlink()