[FIX] code generator new project code error
This commit is contained in:
parent
526205f7ae
commit
a2a03fa30f
1 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ with open(filename_odoo_version, "r") as f:
|
||||||
odoo_version = f.readline()
|
odoo_version = f.readline()
|
||||||
|
|
||||||
CODE_GENERATOR_DIRECTORY = (
|
CODE_GENERATOR_DIRECTORY = (
|
||||||
f"./odoo{ODOO_VERSION}/addons/TechnoLibre_odoo-code-generator-template/"
|
f"./odoo{odoo_version}/addons/TechnoLibre_odoo-code-generator-template/"
|
||||||
)
|
)
|
||||||
CODE_GENERATOR_DEMO_NAME = "code_generator_demo"
|
CODE_GENERATOR_DEMO_NAME = "code_generator_demo"
|
||||||
KEY_REPLACE_CODE_GENERATOR_DEMO = 'MODULE_NAME = "%s"'
|
KEY_REPLACE_CODE_GENERATOR_DEMO = 'MODULE_NAME = "%s"'
|
||||||
|
|
@ -143,7 +143,7 @@ class ProjectManagement:
|
||||||
|
|
||||||
# Replace addons/ by odoo12.0/addons/
|
# Replace addons/ by odoo12.0/addons/
|
||||||
module_directory = module_directory.replace(
|
module_directory = module_directory.replace(
|
||||||
"addons/", f"odoo{ODOO_VERSION}/addons/"
|
"addons/", f"odoo{odoo_version}/addons/"
|
||||||
)
|
)
|
||||||
|
|
||||||
self.module_directory = module_directory
|
self.module_directory = module_directory
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue