Skip to content

Commit

Permalink
Merge pull request #81 from acsone/add-odoo-18
Browse files Browse the repository at this point in the history
Add Odoo 18 support
  • Loading branch information
sbidoul authored Sep 13, 2024
2 parents 6507b6a + 314552c commit ec6b600
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions mk_core_addons
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ from manifestoo_core.odoo_series import OdooEdition

SERIES = [
# branch, enterprise, target
("master", True, "18.0"),
("17.0", True, None),
("16.0", True, None),
("15.0", True, None),
Expand Down
1 change: 1 addition & 0 deletions news/81.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add preliminary Odoo 18 support.
11 changes: 11 additions & 0 deletions src/manifestoo_core/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,17 @@ def from_odoo_series(
git_postversion_strategy=POST_VERSION_STRATEGY_DOT_N,
core_addons=get_core_addons(OdooSeries.v17_0),
),
OdooSeries.v18_0: OdooSeriesInfo(
odoo_dep="odoo==18.0.*",
pkg_name_pfx="odoo-addon",
pkg_version_specifier="==18.0.*",
addons_ns="odoo.addons",
namespace_packages=None,
python_requires=">=3.10", # TODO To be confirmed
universal_wheel=False,
git_postversion_strategy=POST_VERSION_STRATEGY_DOT_N,
core_addons=get_core_addons(OdooSeries.v18_0),
),
}

# map names of common python external dependencies in Odoo manifest files
Expand Down
1 change: 1 addition & 0 deletions src/manifestoo_core/odoo_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class OdooSeries(str, Enum):
v15_0 = "15.0"
v16_0 = "16.0"
v17_0 = "17.0"
v18_0 = "18.0"

@classmethod
def from_str(cls, value: str, context: Optional[str] = None) -> "OdooSeries":
Expand Down

0 comments on commit ec6b600

Please sign in to comment.