Add missing match_none argument to carrier match for subdivision
Closes #12835 (grafted from a0a01264db21e988026837d21bad5ea0b76e91dd) --HG-- branch : 7.0
This commit is contained in:
1 parent
7796408f84
commit
0bfae6ba41
1 file changed
+2
-2
@@ -41,7 +41,7 @@ class Selection(metaclass=PoolMeta):
|
||||
"the carrier delivers to.\n"
|
||||
"Leave empty to allow delivery to any postal code.")
|
||||
|
||||
def match(self, pattern):
|
||||
def match(self, pattern, match_none=False):
|
||||
pool = Pool()
|
||||
Subdivision = pool.get('country.subdivision')
|
||||
|
||||
@@ -78,4 +78,4 @@ class Selection(metaclass=PoolMeta):
|
||||
if (self.to_postal_code is not None
|
||||
and not re.search(self.to_postal_code, to_postal_code)):
|
||||
return False
|
||||
return super().match(pattern)
|
||||
return super().match(pattern, match_none=match_none)
|
||||
Reference in new issue
Block a user