Format
This commit is contained in:
parent
e08b402f3a
commit
327870a175
7 changed files with 19 additions and 13 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
ERPLibre is a CRM/ERP platform including automated installation, maintenance, and development of open source modules of
|
||||
the Odoo community version. It is a "soft-fork" of the Odoo Community Edition (OCE), meaning it aims at contributing back
|
||||
upstream.
|
||||
upstream.
|
||||
It is based on a set of production-ready modules, supported by the Odoo Community Association (OCA) and an
|
||||
ecosystem of specialized companies. This solution ensures digital sovereignty in a local environment while integrating
|
||||
pre-trained Generative Transformers (GPT), bringing an additional dimension to data management and automation.
|
||||
|
|
@ -15,7 +15,7 @@ Select a guide to install your environment.
|
|||
|
||||
This has been tested in Debian 12 and Ubuntu 24.04 LTS.
|
||||
|
||||
**Note** : This is meant for a test environment, on a local network or similar environment not directly exposed to the Internet.
|
||||
**Note** : This is meant for a test environment, on a local network or similar environment not directly exposed to the Internet.
|
||||
|
||||
1. Make sure Docker and nginx web server are installed:<BR>
|
||||
```sudo apt install docker docker-compose nginx```
|
||||
|
|
|
|||
|
|
@ -119,9 +119,7 @@ def search_and_replace(
|
|||
# new_file_content = (
|
||||
# f'{f_lines[:t_index_second_quote]}"{models_name}"{f_lines[t_index_third_quote + len(second_char):]}'
|
||||
# )
|
||||
new_file_content = (
|
||||
f'{f_lines[:t_index_second_quote]}"{models_name}"{f_lines[t_index_third_quote + len(second_char):]}'
|
||||
)
|
||||
new_file_content = f'{f_lines[:t_index_second_quote]}"{models_name}"{f_lines[t_index_third_quote + len(second_char):]}'
|
||||
return new_file_content
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -240,7 +240,10 @@ def main():
|
|||
|
||||
# not finish to empty the queue
|
||||
if dct_depend_image:
|
||||
_logger.info("Missing dependencies, auto-run all image generation for last execution")
|
||||
_logger.info(
|
||||
"Missing dependencies, auto-run all image generation for last"
|
||||
" execution"
|
||||
)
|
||||
for depend_image, lst_module in dct_depend_image.items():
|
||||
lst_queue_parallel.append(lst_module)
|
||||
# print command to execute
|
||||
|
|
|
|||
|
|
@ -91,9 +91,9 @@ def edit_text(config):
|
|||
if is_find:
|
||||
key = "image:"
|
||||
value = lst_docker_info[i]
|
||||
lst_docker_info[
|
||||
i
|
||||
] = f"{value[:value.find(key) + len(key)]} {config.prod_version}\n"
|
||||
lst_docker_info[i] = (
|
||||
f"{value[:value.find(key) + len(key)]} {config.prod_version}\n"
|
||||
)
|
||||
break
|
||||
if "ERPLibre" in docker_info:
|
||||
is_find = True
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@ def get_lst_requirements_txt():
|
|||
def get_lst_manifest_py():
|
||||
return get_file_from_glob("__manifest__.py")
|
||||
|
||||
|
||||
def get_file_from_glob(glob_txt):
|
||||
with open(".odoo-version") as txt:
|
||||
odoo_version = txt.read()
|
||||
|
|
@ -77,7 +78,9 @@ def get_file_from_glob(glob_txt):
|
|||
a_dirname = os.path.dirname(a)
|
||||
if a_dirname.startswith(".repo/") or a_dirname.startswith(".venv"):
|
||||
continue
|
||||
if a_dirname.startswith("addons") and not a_dirname.startswith(f"addons.odoo{odoo_version}"):
|
||||
if a_dirname.startswith("addons") and not a_dirname.startswith(
|
||||
f"addons.odoo{odoo_version}"
|
||||
):
|
||||
continue
|
||||
lst_v.append(a)
|
||||
return lst_v
|
||||
|
|
|
|||
|
|
@ -38,13 +38,13 @@ def run(config, selenium_tool):
|
|||
try:
|
||||
connexion_button = selenium_tool.driver.find_element(
|
||||
By.XPATH,
|
||||
"/html/body/div/div/div/form/div[3]/button"
|
||||
"/html/body/div/div/div/form/div[3]/button",
|
||||
# '//button[contains(text(), "Log in")]'
|
||||
)
|
||||
except Exception:
|
||||
connexion_button = selenium_tool.driver.find_element(
|
||||
By.XPATH,
|
||||
"/html/body/div/main/div/form/div[3]/button"
|
||||
"/html/body/div/main/div/form/div[3]/button",
|
||||
# '//button[contains(text(), "Connexion")]'
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -483,7 +483,9 @@ class Update:
|
|||
pycharm_is_installed = os.path.exists(".idea")
|
||||
if not pycharm_is_installed or not self.execute_log:
|
||||
return
|
||||
os.system("./.venv/bin/python ./script/ide/pycharm_configuration.py --init")
|
||||
os.system(
|
||||
"./.venv/bin/python ./script/ide/pycharm_configuration.py --init"
|
||||
)
|
||||
|
||||
def install_erplibre(self):
|
||||
self.execute_log.append(f"Dev installation")
|
||||
|
|
|
|||
Loading…
Reference in a new issue