MIG delivery_partner_dhl to 12.0

This commit is contained in:
Jared Kipe
2019-04-02 10:38:19 -07:00
committed by Salomon Chambi
parent 93953ac451
commit cc4a00d86f
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ class PartnerShippingAccount(models.Model):
delivery_type = fields.Selection(selection_add=[('dhl', 'DHL')])
def dhl_check_validity(self):
m = re.search('^\d{10}$', self.name or '')
m = re.search(r'^\d{10}$', self.name or '')
if not m:
raise ValidationError('DHL Account numbers must be 10 decimal numbers.')