mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[FIX]UsreError to Validation Error
This commit is contained in:
@@ -626,5 +626,5 @@ class RmaOrderLine(models.Model):
|
||||
@api.constrains("partner_id", "rma_id")
|
||||
def _check_partner_id(self):
|
||||
if self.rma_id and self.partner_id != self.rma_id.partner_id:
|
||||
raise UserError(_(
|
||||
raise ValidationError(_(
|
||||
"Group partner and RMA's partner must be the same."))
|
||||
|
||||
Reference in New Issue
Block a user