mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms: replace reservation sequence by folio + compute sequence
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user