mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[I18N] multi: Initial Translations 15.0
This commit is contained in:
committed by
Salomon Chambi
parent
10f7ba474e
commit
90092470de
@@ -1,6 +1,6 @@
|
||||
import re
|
||||
|
||||
from odoo import fields, models
|
||||
from odoo import fields, models, _
|
||||
from odoo.exceptions import ValidationError
|
||||
|
||||
|
||||
@@ -12,4 +12,4 @@ class PartnerShippingAccount(models.Model):
|
||||
def fedex_check_validity(self):
|
||||
m = re.search(r'^\d{9}$', self.name or '')
|
||||
if not m:
|
||||
raise ValidationError('FedEx Account numbers must be 9 decimal numbers.')
|
||||
raise ValidationError(_('FedEx Account numbers must be 9 decimal numbers.'))
|
||||
|
||||
Reference in New Issue
Block a user