Skip to content
Snippets Groups Projects
Commit b82a9f7e authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:pencil: docker_prettier: use prettier from the image for odoo 11

parent bdfd30fe
No related branches found
No related tags found
1 merge request!147📝 docker_prettier: use prettier from the image for odoo 11
......@@ -15,6 +15,8 @@
Add tests for python 3.11.
Prettier is in Odoo 11 image, update docker_prettier accordingly.
16.10.0
-------
......
......@@ -6,7 +6,7 @@
import os
import sys
from .config import ODOO_11, Config
from .config import ODOO_7, ODOO_8, ODOO_9, ODOO_10, Config
from .docker_build import add_build_options, build_local_image, get_build_options
from .docker_client import DockerClient
from .parsing import apply, basic_parser
......@@ -72,7 +72,7 @@
"""Run prettier"""
config = Config()
if config.odoo_type == ODOO_11:
if config.odoo_type in (ODOO_7, ODOO_8, ODOO_9, ODOO_10):
image = "quay.orus.io/xcgd/prettier"
tag = "2.5.1"
else:
......@@ -76,7 +76,7 @@
image = "quay.orus.io/xcgd/prettier"
tag = "2.5.1"
else:
# Only works on Odoo 13+ where prettier is in the image
# Only works on Odoo 11+ where prettier is in the image
build_local_image(build_options)
image = config.local_image
tag = config.local_tag
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment