mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] pms: required partner name when reservation != 'out'
This commit is contained in:
@@ -1137,7 +1137,7 @@ class PmsFolio(models.Model):
|
||||
@api.constrains("name")
|
||||
def _check_required_partner_name(self):
|
||||
for record in self:
|
||||
if not record.partner_name and record.reservation_type != 'out':
|
||||
if not record.partner_name and record.reservation_type != "out":
|
||||
raise models.ValidationError(_("You must assign a customer name"))
|
||||
|
||||
@api.model
|
||||
|
||||
Reference in New Issue
Block a user