# HG changeset patch # User Vincent Hatakeyama <vincent.hatakeyama@xcg-consulting.fr> # Date 1583423942 -3600 # Thu Mar 05 16:59:02 2020 +0100 # Node ID 19306a04ac159daa1b43951bad9fc0063af2ef9d # Parent cd784cd0d7b81028888703106120da4f4c3b550d 📠allow importing from local directory no path in that case diff --git a/odoo_scripts/importing.py b/odoo_scripts/importing.py --- a/odoo_scripts/importing.py +++ b/odoo_scripts/importing.py @@ -33,7 +33,7 @@ model_filenames: List[Tuple[str, str, str]] = list() # files need to be named according to the following regexp pattern = re.compile( - r"(?P<path>.*/)" + r"(?P<path>.*/)?" r"(?:[\d\s\w_-]*\s)?" r"(?P<model>[\w.]+?)" r"(?:@(?P<lang>\w{2,3}(?:@latin|_\w{2})))?"