From aae8214e9ae9c1de24a2ee81aefbc3d109d47920 Mon Sep 17 00:00:00 2001 From: Trinh Anh Ngoc Date: Sat, 8 Oct 2022 22:42:08 +0700 Subject: [PATCH] Update stubs --- odoo-stubs/tools/test_reports.pyi | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/odoo-stubs/tools/test_reports.pyi b/odoo-stubs/tools/test_reports.pyi index d9ac8eb..f0970f6 100644 --- a/odoo-stubs/tools/test_reports.pyi +++ b/odoo-stubs/tools/test_reports.pyi @@ -1,8 +1,10 @@ +from typing import Any, Literal + from . import config as config -from typing import Any +from ..sql_db import Cursor -_logger: Any -_test_logger: Any - -def try_report(cr, uid, rname, ids, data: Any | None = ..., context: Any | None = ..., our_module: Any | None = ..., report_type: Any | None = ...): ... -def try_report_action(cr, uid, action_id, active_model: Any | None = ..., active_ids: Any | None = ..., wiz_data: Any | None = ..., wiz_buttons: Any | None = ..., context: Any | None = ..., our_module: Any | None = ...): ... +def try_report(cr: Cursor, uid: int, rname: str, ids, data: Any | None = ..., context: dict | None = ..., + our_module: Any | None = ..., report_type: Any | None = ...) -> bool: ... +def try_report_action(cr: Cursor, uid: int, action_id: int, active_model: str | None = ..., active_ids: list[int] | None = ..., + wiz_data: dict | None = ..., wiz_buttons: list[str] | None = ..., context: dict | None = ..., + our_module: str | None = ...) -> Literal[True]: ...