mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
MIG delivery_partner_fedex to 12.0
This commit is contained in:
@@ -10,7 +10,7 @@ class PartnerShippingAccount(models.Model):
|
||||
delivery_type = fields.Selection(selection_add=[('fedex', 'FedEx')])
|
||||
|
||||
def fedex_check_validity(self):
|
||||
m = re.search('^\d{9}$', self.name or '')
|
||||
m = re.search(r'^\d{9}$', self.name or '')
|
||||
if not m:
|
||||
raise ValidationError('FedEx Account numbers must be 9 decimal numbers.')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user