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:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
'name': 'Fedex Partner Shipping Accounts',
|
||||
'author': 'Hibou Corp. <hello@hibou.io>',
|
||||
'version': '11.0.1.0.0',
|
||||
'version': '12.0.1.0.0',
|
||||
'category': 'Stock',
|
||||
'sequence': 95,
|
||||
'summary': 'Fedex Partner Shipping Accounts',
|
||||
|
||||
@@ -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