mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX]pms: check mens move folio_ids in post mens validation error
This commit is contained in:
@@ -349,6 +349,7 @@ class AccountMove(models.Model):
|
||||
"The total amount of the simplified invoice is higher than the "
|
||||
"maximum amount allowed for simplified invoices."
|
||||
)
|
||||
self.folio_ids.message_post(body=mens)
|
||||
if self.folio_ids:
|
||||
self.folio_ids.message_post(body=mens)
|
||||
raise ValidationError(mens)
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user