mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
MIG delivery_partner_dhl to 12.0
This commit is contained in:
committed by
Salomon Chambi
parent
93953ac451
commit
cc4a00d86f
@@ -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.')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user