[UPD] format

This commit is contained in:
Mathieu Benoit 2023-04-29 16:34:34 -04:00
parent 427ab6150b
commit cbd9fba586
2 changed files with 12 additions and 11 deletions

View file

@ -116,17 +116,17 @@ def main():
f'get_{"_".join(url.replace("-", "_").strip("/").split("/"))}'
)
# template = f"""
# @http.route(
# ["{url}"],
# type="http",
# auth="user",
# website=True,
# )
# def {method_name}(self, **kw):
# return request.env["ir.ui.view"].render_template(
# "{module_name}.{view_id}",
# )
# template = f"""
# @http.route(
# ["{url}"],
# type="http",
# auth="user",
# website=True,
# )
# def {method_name}(self, **kw):
# return request.env["ir.ui.view"].render_template(
# "{module_name}.{view_id}",
# )
template = f"""
@http.route(
["{url}"],

View file

@ -1126,6 +1126,7 @@ async def run_code_generator_template_demo_internal_test(
return test_result, test_status
async def run_code_generator_template_demo_internal_inherit_test(
config,
) -> Tuple[str, int]: