mirror of
https://github.com/odoo-ide/odoo-stubs.git
synced 2025-05-08 16:52:26 +03:00
20 lines
680 B
Python
20 lines
680 B
Python
from typing import Any, Callable, TypeVar
|
|
|
|
from ..api import Environment
|
|
from ..models import BaseModel
|
|
from ..sql_db import Cursor
|
|
|
|
_CallableT = TypeVar("_CallableT", bound=Callable)
|
|
|
|
PG_CONCURRENCY_ERRORS_TO_RETRY: tuple[str, str, str]
|
|
MAX_TRIES_ON_CONCURRENCY_FAILURE: int
|
|
|
|
def get_public_method(model: BaseModel, name: str): ...
|
|
def dispatch(method: str, params): ...
|
|
def execute_cr(cr: Cursor, uid: int, obj: str, method: str, *args, **kw): ...
|
|
def execute_kw(
|
|
db: str, uid: int, obj: str, method: str, args, kw: dict | None = ...
|
|
): ...
|
|
def execute(db: str, uid: int, obj: str, method: str, *args, **kw): ...
|
|
def retrying(func: Callable[[], Any], env: Environment): ...
|