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

View file

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