Skip to content
Snippets Groups Projects

:hammer::sparkles: validator package does not assume a odoo.addons package name, provide full package name instead

Merged Vincent Hatakeyama requested to merge topic/18.0/change-validate-and-test into branch/18.0
Files
5
+ 3
− 2
import json
import pkgutil
from typing import Optional, Any
from typing import Any
from collections.abc import Generator
@@ -4,6 +5,6 @@
def get_schemas() -> list[Any]:
def get_schemas() -> Generator[Any]:
for file_prefix in ("product",):
data: bytes | None = pkgutil.get_data(__name__, f"{file_prefix}.schema.json")
if data:
Loading