update
This commit is contained in:
parent
ffc7cef059
commit
57286a15e3
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,7 +6,6 @@ __pycache__/
|
|||||||
|
|
||||||
# C extensions
|
# C extensions
|
||||||
*.so
|
*.so
|
||||||
config/*.yaml
|
|
||||||
# Distribution / packaging
|
# Distribution / packaging
|
||||||
.Python
|
.Python
|
||||||
build/
|
build/
|
||||||
|
@ -1,25 +1,12 @@
|
|||||||
odoo_instances:
|
odoo_instances:
|
||||||
- name: "ftacpa"
|
- name: "server"
|
||||||
host: "10.1.1.31"
|
host: "10.1.1.34"
|
||||||
port: 8069
|
|
||||||
database: "ftacpa"
|
|
||||||
username: "nextzen"
|
|
||||||
password: "smartyourlife"
|
|
||||||
type: "systemctl"
|
|
||||||
service_name: "odoo18"
|
|
||||||
git:
|
|
||||||
repo_url: "https://hoangvv:smartyourlife@git.nextzenos.com/NextERP/Odoo18-FTACPA.git"
|
|
||||||
branch: "community/demo/ftacpa"
|
|
||||||
local_path: "/opt/odoo18/addons"
|
|
||||||
ssh:
|
|
||||||
user: root
|
|
||||||
password: Smartyourlife123@*
|
|
||||||
key_path: "/root/.ssh/privatessh.key"
|
|
||||||
odoo_instances:
|
|
||||||
- name: "ftacpa"
|
|
||||||
host: "10.1.1.31"
|
|
||||||
port: 8069
|
port: 8069
|
||||||
database: "server"
|
database: "server"
|
||||||
|
modules:
|
||||||
|
- "hr_holidays"
|
||||||
|
- "timesheet"
|
||||||
|
- "hr"
|
||||||
username: "nextzen"
|
username: "nextzen"
|
||||||
password: "smartyourlife"
|
password: "smartyourlife"
|
||||||
type: "systemctl"
|
type: "systemctl"
|
||||||
|
@ -66,15 +66,15 @@ class OdooModuleManager:
|
|||||||
if instance_name and instance["name"] != instance_name:
|
if instance_name and instance["name"] != instance_name:
|
||||||
continue
|
continue
|
||||||
color_log.Show("INFO", f"Fetching modules for instance: {instance['name']}")
|
color_log.Show("INFO", f"Fetching modules for instance: {instance['name']}")
|
||||||
module_ids = self.config.execute(
|
if not instance.get("modules"):
|
||||||
instance["name"],
|
color_log.Show(
|
||||||
"ir.module.module",
|
"WARNING",
|
||||||
"search_read",
|
f"No modules found for instance {instance['name']}, skipping.",
|
||||||
[],
|
|
||||||
["name"],
|
|
||||||
)
|
)
|
||||||
modules.extend([mod["name"] for mod in module_ids])
|
continue
|
||||||
|
modules.extend(instance["modules"])
|
||||||
return modules
|
return modules
|
||||||
|
|
||||||
def install(self, instance_name: str = None, module_names: list = None) -> None:
|
def install(self, instance_name: str = None, module_names: list = None) -> None:
|
||||||
"""Install multiple modules for the specified instance(s)."""
|
"""Install multiple modules for the specified instance(s)."""
|
||||||
self._manage_module("install", instance_name, module_names)
|
self._manage_module("install", instance_name, module_names)
|
||||||
|
Loading…
Reference in New Issue
Block a user