mirror of
https://github.com/odoo-ide/odoo-stubs.git
synced 2025-05-08 16:52:26 +03:00
Update stubs
This commit is contained in:
@@ -5,13 +5,13 @@ from typing import Any, Optional
|
|||||||
__path__: Any
|
__path__: Any
|
||||||
evented: bool
|
evented: bool
|
||||||
|
|
||||||
def gevent_wait_callback(conn: Any, timeout: Optional[Any] = ...) -> None: ...
|
def gevent_wait_callback(conn, timeout: Optional[Any] = ...) -> None: ...
|
||||||
|
|
||||||
multi_process: bool
|
multi_process: bool
|
||||||
_babelCoreParseLocale: Any
|
_babelCoreParseLocale: Any
|
||||||
|
|
||||||
def _babelCoreParseLocale_unitag(identifier: Any, sep: str = ...): ...
|
def _babelCoreParseLocale_unitag(identifier, sep: str = ...): ...
|
||||||
def _decompress(data: Any): ...
|
def _decompress(data): ...
|
||||||
|
|
||||||
SUPERUSER_ID: int
|
SUPERUSER_ID: int
|
||||||
|
|
||||||
|
|||||||
@@ -12,87 +12,87 @@ WRAPPED_ATTRS: Any
|
|||||||
INHERITED_ATTRS: Any
|
INHERITED_ATTRS: Any
|
||||||
|
|
||||||
class Params:
|
class Params:
|
||||||
args: Any = ...
|
args: Any
|
||||||
kwargs: Any = ...
|
kwargs: Any
|
||||||
def __init__(self, args: Any, kwargs: Any) -> None: ...
|
def __init__(self, args, kwargs) -> None: ...
|
||||||
def __str__(self): ...
|
def __str__(self): ...
|
||||||
|
|
||||||
class Meta(type):
|
class Meta(type):
|
||||||
def __new__(meta: Any, name: Any, bases: Any, attrs: Any): ...
|
def __new__(meta, name, bases, attrs): ...
|
||||||
|
|
||||||
def attrsetter(attr: Any, value: Any): ...
|
def attrsetter(attr, value): ...
|
||||||
def propagate(method1: Any, method2: Any): ...
|
def propagate(method1, method2): ...
|
||||||
def constrains(*args: Any): ...
|
def constrains(*args): ...
|
||||||
def onchange(*args: Any): ...
|
def onchange(*args): ...
|
||||||
def depends(*args: Any): ...
|
def depends(*args): ...
|
||||||
def returns(model: Any, downgrade: Optional[Any] = ..., upgrade: Optional[Any] = ...): ...
|
def returns(model, downgrade: Optional[Any] = ..., upgrade: Optional[Any] = ...): ...
|
||||||
def downgrade(method: Any, value: Any, self: Any, args: Any, kwargs: Any): ...
|
def downgrade(method, value, self, args, kwargs): ...
|
||||||
def aggregate(method: Any, value: Any, self: Any): ...
|
def aggregate(method, value, self): ...
|
||||||
def split_context(method: Any, args: Any, kwargs: Any): ...
|
def split_context(method, args, kwargs): ...
|
||||||
def model(method: Any): ...
|
def model(method): ...
|
||||||
def multi(method: Any): ...
|
def multi(method): ...
|
||||||
def one(method: Any): ...
|
def one(method): ...
|
||||||
def model_cr(method: Any): ...
|
def model_cr(method): ...
|
||||||
def model_cr_context(method: Any): ...
|
def model_cr_context(method): ...
|
||||||
|
|
||||||
_create_logger: Any
|
_create_logger: Any
|
||||||
|
|
||||||
def _model_create_single(create: Any, self: Any, arg: Any): ...
|
def _model_create_single(create, self, arg): ...
|
||||||
def model_create_single(method: Any): ...
|
def model_create_single(method): ...
|
||||||
def _model_create_multi(create: Any, self: Any, arg: Any): ...
|
def _model_create_multi(create, self, arg): ...
|
||||||
def model_create_multi(method: Any): ...
|
def model_create_multi(method): ...
|
||||||
def cr(method: Any): ...
|
def cr(method): ...
|
||||||
def cr_context(method: Any): ...
|
def cr_context(method): ...
|
||||||
def cr_uid(method: Any): ...
|
def cr_uid(method): ...
|
||||||
def cr_uid_context(method: Any): ...
|
def cr_uid_context(method): ...
|
||||||
def cr_uid_id(method: Any): ...
|
def cr_uid_id(method): ...
|
||||||
def cr_uid_id_context(method: Any): ...
|
def cr_uid_id_context(method): ...
|
||||||
def cr_uid_ids(method: Any): ...
|
def cr_uid_ids(method): ...
|
||||||
def cr_uid_ids_context(method: Any): ...
|
def cr_uid_ids_context(method): ...
|
||||||
def cr_uid_records(method: Any): ...
|
def cr_uid_records(method): ...
|
||||||
def cr_uid_records_context(method: Any): ...
|
def cr_uid_records_context(method): ...
|
||||||
def v7(method_v7: Any): ...
|
def v7(method_v7): ...
|
||||||
def v8(method_v8: Any): ...
|
def v8(method_v8): ...
|
||||||
def noguess(method: Any): ...
|
def noguess(method): ...
|
||||||
def guess(method: Any): ...
|
def guess(method): ...
|
||||||
def expected(decorator: Any, func: Any): ...
|
def expected(decorator, func): ...
|
||||||
def _call_kw_model(method: Any, self: Any, args: Any, kwargs: Any): ...
|
def _call_kw_model(method, self, args, kwargs): ...
|
||||||
def _call_kw_model_create(method: Any, self: Any, args: Any, kwargs: Any): ...
|
def _call_kw_model_create(method, self, args, kwargs): ...
|
||||||
def _call_kw_multi(method: Any, self: Any, args: Any, kwargs: Any): ...
|
def _call_kw_multi(method, self, args, kwargs): ...
|
||||||
def call_kw(model: Any, name: Any, args: Any, kwargs: Any): ...
|
def call_kw(model, name, args, kwargs): ...
|
||||||
|
|
||||||
class Environment(Mapping):
|
class Environment(Mapping):
|
||||||
cr: Cursor = ...
|
cr: Cursor
|
||||||
uid: int = ...
|
uid: int
|
||||||
context: dict = ...
|
context: dict
|
||||||
_local: Any = ...
|
_local: Any
|
||||||
envs: Environments = ...
|
envs: Environments
|
||||||
@classmethod
|
@classmethod
|
||||||
def manage(cls) -> None: ...
|
def manage(cls) -> None: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def reset(cls) -> None: ...
|
def reset(cls) -> None: ...
|
||||||
registry: Registry = ...
|
registry: Registry
|
||||||
cache: Cache = ...
|
cache: Cache
|
||||||
_cache_key: Any = ...
|
_cache_key: Any
|
||||||
_protected: Any = ...
|
_protected: Any
|
||||||
dirty: Any = ...
|
dirty: Any
|
||||||
all: Environments = ...
|
all: Environments
|
||||||
def __new__(cls, cr: Cursor, uid: Any, context: Any) -> Environment: ...
|
def __new__(cls, cr: Cursor, uid, context) -> Environment: ...
|
||||||
def __contains__(self, model_name: Any) -> bool: ...
|
def __contains__(self, model_name) -> bool: ...
|
||||||
def __getitem__(self, model_name: Any): ...
|
def __getitem__(self, model_name): ...
|
||||||
def __iter__(self) -> Any: ...
|
def __iter__(self) -> Any: ...
|
||||||
def __len__(self) -> int: ...
|
def __len__(self) -> int: ...
|
||||||
def __eq__(self, other: Any) -> bool: ...
|
def __eq__(self, other) -> bool: ...
|
||||||
def __ne__(self, other: Any) -> bool: ...
|
def __ne__(self, other) -> bool: ...
|
||||||
def __hash__(self) -> int: ...
|
def __hash__(self) -> int: ...
|
||||||
def __call__(self, cr: Optional[Cursor] = ..., user: Optional[Any] = ..., context: Optional[Any] = ...) -> Environment: ...
|
def __call__(self, cr: Optional[Cursor] = ..., user: Optional[Any] = ..., context: Optional[Any] = ...) -> Environment: ...
|
||||||
def ref(self, xml_id: Any, raise_if_not_found: bool = ...): ...
|
def ref(self, xml_id, raise_if_not_found: bool = ...): ...
|
||||||
@property
|
@property
|
||||||
def user(self):
|
def user(self):
|
||||||
return self['res.users']
|
return self['res.users']
|
||||||
@property
|
@property
|
||||||
def lang(self) -> str: ...
|
def lang(self) -> str: ...
|
||||||
def _do_in_mode(self, mode: Any) -> None: ...
|
def _do_in_mode(self, mode) -> None: ...
|
||||||
def do_in_draft(self): ...
|
def do_in_draft(self): ...
|
||||||
@property
|
@property
|
||||||
def in_draft(self): ...
|
def in_draft(self): ...
|
||||||
@@ -101,50 +101,50 @@ class Environment(Mapping):
|
|||||||
def in_onchange(self): ...
|
def in_onchange(self): ...
|
||||||
def clear(self) -> None: ...
|
def clear(self) -> None: ...
|
||||||
def clear_upon_failure(self) -> None: ...
|
def clear_upon_failure(self) -> None: ...
|
||||||
def protected(self, field: Any): ...
|
def protected(self, field): ...
|
||||||
def protecting(self, what: Any, records: Optional[Any] = ...) -> None: ...
|
def protecting(self, what, records: Optional[Any] = ...) -> None: ...
|
||||||
def field_todo(self, field: Any): ...
|
def field_todo(self, field): ...
|
||||||
def check_todo(self, field: Any, record: Any): ...
|
def check_todo(self, field, record): ...
|
||||||
def add_todo(self, field: Any, records: Any) -> None: ...
|
def add_todo(self, field, records) -> None: ...
|
||||||
def remove_todo(self, field: Any, records: Any) -> None: ...
|
def remove_todo(self, field, records) -> None: ...
|
||||||
def has_todo(self): ...
|
def has_todo(self): ...
|
||||||
def get_todo(self): ...
|
def get_todo(self): ...
|
||||||
@property
|
@property
|
||||||
def recompute(self): ...
|
def recompute(self): ...
|
||||||
def norecompute(self) -> None: ...
|
def norecompute(self) -> None: ...
|
||||||
def cache_key(self, field: Any): ...
|
def cache_key(self, field): ...
|
||||||
|
|
||||||
class Environments:
|
class Environments:
|
||||||
envs: WeakSet = ...
|
envs: WeakSet
|
||||||
cache: Cache = ...
|
cache: Cache
|
||||||
todo: Any = ...
|
todo: Any
|
||||||
mode: bool = ...
|
mode: bool
|
||||||
recompute: bool = ...
|
recompute: bool
|
||||||
def __init__(self) -> None: ...
|
def __init__(self) -> None: ...
|
||||||
def add(self, env: Any) -> None: ...
|
def add(self, env) -> None: ...
|
||||||
def __iter__(self) -> Any: ...
|
def __iter__(self) -> Any: ...
|
||||||
|
|
||||||
class Cache:
|
class Cache:
|
||||||
_data: Any = ...
|
_data: Any
|
||||||
def __init__(self): ...
|
def __init__(self): ...
|
||||||
def contains(self, record: Any, field: Any): ...
|
def contains(self, record, field): ...
|
||||||
def get(self, record: Any, field: Any): ...
|
def get(self, record, field): ...
|
||||||
def set(self, record: Any, field: Any, value: Any) -> None: ...
|
def set(self, record, field, value) -> None: ...
|
||||||
def update(self, records: Any, field: Any, values: Any) -> None: ...
|
def update(self, records, field, values) -> None: ...
|
||||||
def remove(self, record: Any, field: Any) -> None: ...
|
def remove(self, record, field) -> None: ...
|
||||||
def contains_value(self, record: Any, field: Any): ...
|
def contains_value(self, record, field): ...
|
||||||
def get_value(self, record: Any, field: Any, default: Optional[Any] = ...): ...
|
def get_value(self, record, field, default: Optional[Any] = ...): ...
|
||||||
def get_special(self, record: Any, field: Any, default: Optional[Any] = ...): ...
|
def get_special(self, record, field, default: Optional[Any] = ...): ...
|
||||||
def set_special(self, record: Any, field: Any, getter: Any) -> None: ...
|
def set_special(self, record, field, getter) -> None: ...
|
||||||
def set_failed(self, records: Any, fields: Any, exception: Any) -> None: ...
|
def set_failed(self, records, fields, exception) -> None: ...
|
||||||
def get_fields(self, record: Any) -> None: ...
|
def get_fields(self, record) -> None: ...
|
||||||
def get_records(self, model: Any, field: Any): ...
|
def get_records(self, model, field): ...
|
||||||
def get_missing_ids(self, records: Any, field: Any) -> None: ...
|
def get_missing_ids(self, records, field) -> None: ...
|
||||||
def copy(self, records: Any, env: Any) -> None: ...
|
def copy(self, records, env) -> None: ...
|
||||||
def invalidate(self, spec: Optional[Any] = ...) -> None: ...
|
def invalidate(self, spec: Optional[Any] = ...) -> None: ...
|
||||||
def check(self, env: Any) -> None: ...
|
def check(self, env) -> None: ...
|
||||||
|
|
||||||
class SpecialValue:
|
class SpecialValue:
|
||||||
__slots__: Any = ...
|
__slots__: Any
|
||||||
get: Any = ...
|
get: Any
|
||||||
def __init__(self, getter: Any) -> None: ...
|
def __init__(self, getter) -> None: ...
|
||||||
|
|||||||
@@ -3,11 +3,11 @@ from typing import Any
|
|||||||
commands: Any
|
commands: Any
|
||||||
|
|
||||||
class CommandType(type):
|
class CommandType(type):
|
||||||
def __init__(cls, name: Any, bases: Any, attrs: Any) -> None: ...
|
def __init__(cls, name, bases, attrs) -> None: ...
|
||||||
|
|
||||||
Command: Any
|
Command: Any
|
||||||
|
|
||||||
class Help(Command):
|
class Help(Command):
|
||||||
def run(self, args: Any) -> None: ...
|
def run(self, args) -> None: ...
|
||||||
|
|
||||||
def main() -> None: ...
|
def main() -> None: ...
|
||||||
|
|||||||
@@ -2,9 +2,9 @@ from . import Command
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
class Deploy(Command):
|
class Deploy(Command):
|
||||||
session: Any = ...
|
session: Any
|
||||||
def __init__(self) -> None: ...
|
def __init__(self) -> None: ...
|
||||||
def deploy_module(self, module_path: Any, url: Any, login: Any, password: Any, db: str = ..., force: bool = ...): ...
|
def deploy_module(self, module_path, url, login, password, db: str = ..., force: bool = ...): ...
|
||||||
def login_upload_module(self, module_file: Any, url: Any, login: Any, password: Any, db: Any, force: bool = ...): ...
|
def login_upload_module(self, module_file, url, login, password, db, force: bool = ...): ...
|
||||||
def zip_module(self, path: Any): ...
|
def zip_module(self, path): ...
|
||||||
def run(self, cmdargs: Any) -> None: ...
|
def run(self, cmdargs) -> None: ...
|
||||||
|
|||||||
@@ -2,24 +2,24 @@ from . import Command
|
|||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
class Scaffold(Command):
|
class Scaffold(Command):
|
||||||
def run(self, cmdargs: Any) -> None: ...
|
def run(self, cmdargs) -> None: ...
|
||||||
def epilog(self): ...
|
def epilog(self): ...
|
||||||
|
|
||||||
builtins: Any
|
builtins: Any
|
||||||
|
|
||||||
def snake(s: Any): ...
|
def snake(s): ...
|
||||||
def pascal(s: Any): ...
|
def pascal(s): ...
|
||||||
def directory(p: Any, create: bool = ...): ...
|
def directory(p, create: bool = ...): ...
|
||||||
|
|
||||||
env: Any
|
env: Any
|
||||||
|
|
||||||
class template:
|
class template:
|
||||||
id: Any = ...
|
id: Any
|
||||||
path: Any = ...
|
path: Any
|
||||||
def __init__(self, identifier: Any) -> None: ...
|
def __init__(self, identifier) -> None: ...
|
||||||
def __str__(self): ...
|
def __str__(self): ...
|
||||||
def files(self) -> None: ...
|
def files(self) -> None: ...
|
||||||
def render_to(self, modname: Any, directory: Any, params: Optional[Any] = ...) -> None: ...
|
def render_to(self, modname, directory, params: Optional[Any] = ...) -> None: ...
|
||||||
|
|
||||||
def die(message: Any, code: int = ...) -> None: ...
|
def die(message, code: int = ...) -> None: ...
|
||||||
def warn(message: Any) -> None: ...
|
def warn(message) -> None: ...
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ _logger: Any
|
|||||||
def check_root_user() -> None: ...
|
def check_root_user() -> None: ...
|
||||||
def check_postgres_user() -> None: ...
|
def check_postgres_user() -> None: ...
|
||||||
def report_configuration() -> None: ...
|
def report_configuration() -> None: ...
|
||||||
def rm_pid_file(main_pid: Any) -> None: ...
|
def rm_pid_file(main_pid) -> None: ...
|
||||||
def setup_pid_file() -> None: ...
|
def setup_pid_file() -> None: ...
|
||||||
def export_translation() -> None: ...
|
def export_translation() -> None: ...
|
||||||
def import_translation() -> None: ...
|
def import_translation() -> None: ...
|
||||||
def main(args: Any) -> None: ...
|
def main(args) -> None: ...
|
||||||
|
|
||||||
class Server(Command):
|
class Server(Command):
|
||||||
def run(self, args: Any) -> None: ...
|
def run(self, args) -> None: ...
|
||||||
|
|||||||
@@ -4,18 +4,18 @@ from typing import Any, Optional
|
|||||||
|
|
||||||
_logger: Any
|
_logger: Any
|
||||||
|
|
||||||
def raise_keyboard_interrupt(*a: Any) -> None: ...
|
def raise_keyboard_interrupt(*a) -> None: ...
|
||||||
|
|
||||||
class Console(code.InteractiveConsole):
|
class Console(code.InteractiveConsole):
|
||||||
def __init__(self, locals: Optional[Any] = ..., filename: str = ...) -> None: ...
|
def __init__(self, locals: Optional[Any] = ..., filename: str = ...) -> None: ...
|
||||||
|
|
||||||
class Shell(Command):
|
class Shell(Command):
|
||||||
supported_shells: Any = ...
|
supported_shells: Any
|
||||||
def init(self, args: Any) -> None: ...
|
def init(self, args) -> None: ...
|
||||||
def console(self, local_vars: Any): ...
|
def console(self, local_vars): ...
|
||||||
def ipython(self, local_vars: Any) -> None: ...
|
def ipython(self, local_vars) -> None: ...
|
||||||
def ptpython(self, local_vars: Any) -> None: ...
|
def ptpython(self, local_vars) -> None: ...
|
||||||
def bpython(self, local_vars: Any) -> None: ...
|
def bpython(self, local_vars) -> None: ...
|
||||||
def python(self, local_vars: Any) -> None: ...
|
def python(self, local_vars) -> None: ...
|
||||||
def shell(self, dbname: Any) -> None: ...
|
def shell(self, dbname) -> None: ...
|
||||||
def run(self, args: Any): ...
|
def run(self, args): ...
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
from . import Command
|
from . import Command
|
||||||
from typing import Any
|
|
||||||
|
|
||||||
class Start(Command):
|
class Start(Command):
|
||||||
def get_module_list(self, path: Any): ...
|
def get_module_list(self, path): ...
|
||||||
def run(self, cmdargs: Any): ...
|
def run(self, cmdargs): ...
|
||||||
|
|
||||||
def die(message: Any, code: int = ...) -> None: ...
|
def die(message, code: int = ...) -> None: ...
|
||||||
|
|||||||
@@ -3,13 +3,13 @@ from typing import Any, Optional
|
|||||||
_logger: Any
|
_logger: Any
|
||||||
|
|
||||||
class except_orm(Exception):
|
class except_orm(Exception):
|
||||||
name: Any = ...
|
name: Any
|
||||||
value: Any = ...
|
value: Any
|
||||||
args: Any = ...
|
args: Any
|
||||||
def __init__(self, name: Any, value: Optional[Any] = ...) -> None: ...
|
def __init__(self, name, value: Optional[Any] = ...) -> None: ...
|
||||||
|
|
||||||
class UserError(except_orm):
|
class UserError(except_orm):
|
||||||
def __init__(self, msg: Any) -> None: ...
|
def __init__(self, msg) -> None: ...
|
||||||
Warning = UserError
|
Warning = UserError
|
||||||
|
|
||||||
class RedirectWarning(Exception):
|
class RedirectWarning(Exception):
|
||||||
@@ -17,25 +17,25 @@ class RedirectWarning(Exception):
|
|||||||
def name(self): ...
|
def name(self): ...
|
||||||
|
|
||||||
class AccessDenied(Exception):
|
class AccessDenied(Exception):
|
||||||
__cause__: Any = ...
|
__cause__: Any
|
||||||
traceback: Any = ...
|
traceback: Any
|
||||||
def __init__(self, message: str = ...) -> None: ...
|
def __init__(self, message: str = ...) -> None: ...
|
||||||
|
|
||||||
class AccessError(except_orm):
|
class AccessError(except_orm):
|
||||||
def __init__(self, msg: Any) -> None: ...
|
def __init__(self, msg) -> None: ...
|
||||||
|
|
||||||
class CacheMiss(except_orm, KeyError):
|
class CacheMiss(except_orm, KeyError):
|
||||||
def __init__(self, record: Any, field: Any) -> None: ...
|
def __init__(self, record, field) -> None: ...
|
||||||
|
|
||||||
class MissingError(except_orm):
|
class MissingError(except_orm):
|
||||||
def __init__(self, msg: Any) -> None: ...
|
def __init__(self, msg) -> None: ...
|
||||||
|
|
||||||
class ValidationError(except_orm):
|
class ValidationError(except_orm):
|
||||||
def __init__(self, msg: Any) -> None: ...
|
def __init__(self, msg) -> None: ...
|
||||||
|
|
||||||
class DeferredException(Exception):
|
class DeferredException(Exception):
|
||||||
message: Any = ...
|
message: Any
|
||||||
traceback: Any = ...
|
traceback: Any
|
||||||
def __init__(self, msg: Any, tb: Any) -> None: ...
|
def __init__(self, msg, tb) -> None: ...
|
||||||
|
|
||||||
class QWebException(Exception): ...
|
class QWebException(Exception): ...
|
||||||
|
|||||||
@@ -15,391 +15,391 @@ _logger: Any
|
|||||||
_schema: Any
|
_schema: Any
|
||||||
Default: Any
|
Default: Any
|
||||||
|
|
||||||
def copy_cache(records: Any, env: Any) -> None: ...
|
def copy_cache(records, env) -> None: ...
|
||||||
def first(records: Any): ...
|
def first(records): ...
|
||||||
def resolve_mro(model: Any, name: Any, predicate: Any): ...
|
def resolve_mro(model, name, predicate): ...
|
||||||
|
|
||||||
class MetaField(type):
|
class MetaField(type):
|
||||||
by_type: Any = ...
|
by_type: Any
|
||||||
def __new__(meta: Any, name: Any, bases: Any, attrs: Any): ...
|
def __new__(meta, name, bases, attrs): ...
|
||||||
def __init__(cls, name: Any, bases: Any, attrs: Any) -> None: ...
|
def __init__(cls, name, bases, attrs) -> None: ...
|
||||||
|
|
||||||
_global_seq: Any
|
_global_seq: Any
|
||||||
|
|
||||||
class Field(Generic[_FieldValueT], metaclass=MetaField):
|
class Field(Generic[_FieldValueT], metaclass=MetaField):
|
||||||
type: Any = ...
|
type: Any
|
||||||
relational: bool = ...
|
relational: bool
|
||||||
translate: bool = ...
|
translate: bool
|
||||||
column_type: Any = ...
|
column_type: Any
|
||||||
column_format: str = ...
|
column_format: str
|
||||||
column_cast_from: Any = ...
|
column_cast_from: Any
|
||||||
_slots: Any = ...
|
_slots: Any
|
||||||
_sequence: Any = ...
|
_sequence: Any
|
||||||
args: Any = ...
|
args: Any
|
||||||
_setup_done: Any = ...
|
_setup_done: Any
|
||||||
def __init__(self, string: Any = ..., **kwargs: Any) -> None: ...
|
def __init__(self, string=..., **kwargs) -> None: ...
|
||||||
def new(self, **kwargs: Any): ...
|
def new(self, **kwargs): ...
|
||||||
def __getattr__(self, name: Any): ...
|
def __getattr__(self, name): ...
|
||||||
_attrs: Any = ...
|
_attrs: Any
|
||||||
def __setattr__(self, name: Any, value: Any) -> None: ...
|
def __setattr__(self, name, value) -> None: ...
|
||||||
def set_all_attrs(self, attrs: Any) -> None: ...
|
def set_all_attrs(self, attrs) -> None: ...
|
||||||
def __delattr__(self, name: Any) -> None: ...
|
def __delattr__(self, name) -> None: ...
|
||||||
def __str__(self): ...
|
def __str__(self): ...
|
||||||
def __repr__(self): ...
|
def __repr__(self): ...
|
||||||
def setup_base(self, model: Any, name: Any) -> None: ...
|
def setup_base(self, model, name) -> None: ...
|
||||||
def _can_setup_from(self, field: Any): ...
|
def _can_setup_from(self, field): ...
|
||||||
def _get_attrs(self, model: Any, name: Any): ...
|
def _get_attrs(self, model, name): ...
|
||||||
prefetch: bool = ...
|
prefetch: bool
|
||||||
string: Any = ...
|
string: Any
|
||||||
default: Any = ...
|
default: Any
|
||||||
def _setup_attrs(self, model: Any, name: Any): ...
|
def _setup_attrs(self, model, name): ...
|
||||||
def setup_full(self, model: Any) -> None: ...
|
def setup_full(self, model) -> None: ...
|
||||||
def _setup_regular_base(self, model: Any) -> None: ...
|
def _setup_regular_base(self, model) -> None: ...
|
||||||
depends: Any = ...
|
depends: Any
|
||||||
def _setup_regular_full(self, model: Any): ...
|
def _setup_regular_full(self, model): ...
|
||||||
related: Any = ...
|
related: Any
|
||||||
related_field: Any = ...
|
related_field: Any
|
||||||
compute: Any = ...
|
compute: Any
|
||||||
inverse: Any = ...
|
inverse: Any
|
||||||
search: Any = ...
|
search: Any
|
||||||
states: Any = ...
|
states: Any
|
||||||
required: bool = ...
|
required: bool
|
||||||
def _setup_related_full(self, model: Any) -> None: ...
|
def _setup_related_full(self, model) -> None: ...
|
||||||
def traverse_related(self, record: Any): ...
|
def traverse_related(self, record): ...
|
||||||
def _compute_related(self, records: Any) -> None: ...
|
def _compute_related(self, records) -> None: ...
|
||||||
def _inverse_related(self, records: Any) -> None: ...
|
def _inverse_related(self, records) -> None: ...
|
||||||
def _search_related(self, records: Any, operator: Any, value: Any): ...
|
def _search_related(self, records, operator, value): ...
|
||||||
_related_comodel_name: Any = ...
|
_related_comodel_name: Any
|
||||||
_related_string: Any = ...
|
_related_string: Any
|
||||||
_related_help: Any = ...
|
_related_help: Any
|
||||||
_related_groups: Any = ...
|
_related_groups: Any
|
||||||
_related_group_operator: Any = ...
|
_related_group_operator: Any
|
||||||
_related_context_dependent: Any = ...
|
_related_context_dependent: Any
|
||||||
@property
|
@property
|
||||||
def base_field(self): ...
|
def base_field(self): ...
|
||||||
def _default_company_dependent(self, model: Any): ...
|
def _default_company_dependent(self, model): ...
|
||||||
def _compute_company_dependent(self, records: Any) -> None: ...
|
def _compute_company_dependent(self, records) -> None: ...
|
||||||
def _inverse_company_dependent(self, records: Any) -> None: ...
|
def _inverse_company_dependent(self, records) -> None: ...
|
||||||
def _search_company_dependent(self, records: Any, operator: Any, value: Any): ...
|
def _search_company_dependent(self, records, operator, value): ...
|
||||||
def resolve_deps(self, model: Any, path0: Any = ..., seen: Any = ...): ...
|
def resolve_deps(self, model, path0=..., seen: Any = ...): ...
|
||||||
recursive: bool = ...
|
recursive: bool
|
||||||
def setup_triggers(self, model: Any) -> None: ...
|
def setup_triggers(self, model) -> None: ...
|
||||||
def get_description(self, env: Any): ...
|
def get_description(self, env): ...
|
||||||
_description_store: Any = ...
|
_description_store: Any
|
||||||
_description_manual: Any = ...
|
_description_manual: Any
|
||||||
_description_depends: Any = ...
|
_description_depends: Any
|
||||||
_description_related: Any = ...
|
_description_related: Any
|
||||||
_description_company_dependent: Any = ...
|
_description_company_dependent: Any
|
||||||
_description_readonly: Any = ...
|
_description_readonly: Any
|
||||||
_description_required: Any = ...
|
_description_required: Any
|
||||||
_description_states: Any = ...
|
_description_states: Any
|
||||||
_description_groups: Any = ...
|
_description_groups: Any
|
||||||
_description_change_default: Any = ...
|
_description_change_default: Any
|
||||||
_description_deprecated: Any = ...
|
_description_deprecated: Any
|
||||||
_description_group_operator: Any = ...
|
_description_group_operator: Any
|
||||||
@property
|
@property
|
||||||
def _description_searchable(self): ...
|
def _description_searchable(self): ...
|
||||||
@property
|
@property
|
||||||
def _description_sortable(self): ...
|
def _description_sortable(self): ...
|
||||||
def _description_string(self, env: Any): ...
|
def _description_string(self, env): ...
|
||||||
def _description_help(self, env: Any): ...
|
def _description_help(self, env): ...
|
||||||
def null(self, record: Any): ...
|
def null(self, record): ...
|
||||||
def convert_to_column(self, value: Any, record: Any, values: Optional[Any] = ..., validate: bool = ...): ...
|
def convert_to_column(self, value, record, values: Optional[Any] = ..., validate: bool = ...): ...
|
||||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
def convert_to_cache(self, value, record, validate: bool = ...): ...
|
||||||
def convert_to_record(self, value: Any, record: Any): ...
|
def convert_to_record(self, value, record): ...
|
||||||
def convert_to_read(self, value: Any, record: Any, use_name_get: bool = ...): ...
|
def convert_to_read(self, value, record, use_name_get: bool = ...): ...
|
||||||
def convert_to_write(self, value: Any, record: Any): ...
|
def convert_to_write(self, value, record): ...
|
||||||
def convert_to_onchange(self, value: Any, record: Any, names: Any): ...
|
def convert_to_onchange(self, value, record, names): ...
|
||||||
def convert_to_export(self, value: Any, record: Any): ...
|
def convert_to_export(self, value, record): ...
|
||||||
def convert_to_display_name(self, value: Any, record: Any): ...
|
def convert_to_display_name(self, value, record): ...
|
||||||
def update_db(self, model: Any, columns: Any): ...
|
def update_db(self, model, columns): ...
|
||||||
def update_db_column(self, model: Any, column: Any) -> None: ...
|
def update_db_column(self, model, column) -> None: ...
|
||||||
def update_db_notnull(self, model: Any, column: Any) -> None: ...
|
def update_db_notnull(self, model, column) -> None: ...
|
||||||
def update_db_index(self, model: Any, column: Any) -> None: ...
|
def update_db_index(self, model, column) -> None: ...
|
||||||
def read(self, records: Any): ...
|
def read(self, records): ...
|
||||||
def create(self, record_values: Any) -> None: ...
|
def create(self, record_values) -> None: ...
|
||||||
def write(self, records: Any, value: Any): ...
|
def write(self, records, value): ...
|
||||||
@overload
|
@overload
|
||||||
def __get__(self, record: BaseModel, owner: Any) -> _FieldValueT: ...
|
def __get__(self, record: BaseModel, owner) -> _FieldValueT: ...
|
||||||
@overload
|
@overload
|
||||||
def __get__(self: _FieldT, record: None, owner: Any) -> _FieldT: ...
|
def __get__(self: _FieldT, record: None, owner) -> _FieldT: ...
|
||||||
def __set__(self, record: Any, value: Any) -> None: ...
|
def __set__(self, record, value) -> None: ...
|
||||||
def _compute_value(self, records: Any) -> None: ...
|
def _compute_value(self, records) -> None: ...
|
||||||
def compute_value(self, records: Any) -> None: ...
|
def compute_value(self, records) -> None: ...
|
||||||
def determine_value(self, record: Any) -> None: ...
|
def determine_value(self, record) -> None: ...
|
||||||
def determine_draft_value(self, record: Any): ...
|
def determine_draft_value(self, record): ...
|
||||||
def determine_inverse(self, records: Any) -> None: ...
|
def determine_inverse(self, records) -> None: ...
|
||||||
def determine_domain(self, records: Any, operator: Any, value: Any): ...
|
def determine_domain(self, records, operator, value): ...
|
||||||
def modified_draft(self, records: Any): ...
|
def modified_draft(self, records): ...
|
||||||
|
|
||||||
class Boolean(Field[bool]):
|
class Boolean(Field[bool]):
|
||||||
type: str = ...
|
type: str
|
||||||
column_type: Any = ...
|
column_type: Any
|
||||||
def convert_to_column(self, value: Any, record: Any, values: Optional[Any] = ..., validate: bool = ...): ...
|
def convert_to_column(self, value, record, values: Optional[Any] = ..., validate: bool = ...): ...
|
||||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
def convert_to_cache(self, value, record, validate: bool = ...): ...
|
||||||
def convert_to_export(self, value: Any, record: Any): ...
|
def convert_to_export(self, value, record): ...
|
||||||
|
|
||||||
class Integer(Field[int]):
|
class Integer(Field[int]):
|
||||||
type: str = ...
|
type: str
|
||||||
column_type: Any = ...
|
column_type: Any
|
||||||
_slots: Any = ...
|
_slots: Any
|
||||||
def convert_to_column(self, value: Any, record: Any, values: Optional[Any] = ..., validate: bool = ...): ...
|
def convert_to_column(self, value, record, values: Optional[Any] = ..., validate: bool = ...): ...
|
||||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
def convert_to_cache(self, value, record, validate: bool = ...): ...
|
||||||
def convert_to_read(self, value: Any, record: Any, use_name_get: bool = ...): ...
|
def convert_to_read(self, value, record, use_name_get: bool = ...): ...
|
||||||
def _update(self, records: Any, value: Any) -> None: ...
|
def _update(self, records, value) -> None: ...
|
||||||
def convert_to_export(self, value: Any, record: Any): ...
|
def convert_to_export(self, value, record): ...
|
||||||
|
|
||||||
class Float(Field[float]):
|
class Float(Field[float]):
|
||||||
type: str = ...
|
type: str
|
||||||
column_cast_from: Any = ...
|
column_cast_from: Any
|
||||||
_slots: Any = ...
|
_slots: Any
|
||||||
def __init__(self, string: Any = ..., digits: Any = ..., **kwargs: Any) -> None: ...
|
def __init__(self, string=..., digits=..., **kwargs) -> None: ...
|
||||||
@property
|
@property
|
||||||
def column_type(self): ...
|
def column_type(self): ...
|
||||||
@property
|
@property
|
||||||
def digits(self): ...
|
def digits(self): ...
|
||||||
_related__digits: Any = ...
|
_related__digits: Any
|
||||||
_description_digits: Any = ...
|
_description_digits: Any
|
||||||
def convert_to_column(self, value: Any, record: Any, values: Optional[Any] = ..., validate: bool = ...): ...
|
def convert_to_column(self, value, record, values: Optional[Any] = ..., validate: bool = ...): ...
|
||||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
def convert_to_cache(self, value, record, validate: bool = ...): ...
|
||||||
def convert_to_export(self, value: Any, record: Any): ...
|
def convert_to_export(self, value, record): ...
|
||||||
|
|
||||||
class Monetary(Field[float]):
|
class Monetary(Field[float]):
|
||||||
type: str = ...
|
type: str
|
||||||
column_type: Any = ...
|
column_type: Any
|
||||||
column_cast_from: Any = ...
|
column_cast_from: Any
|
||||||
_slots: Any = ...
|
_slots: Any
|
||||||
def __init__(self, string: Any = ..., currency_field: Any = ..., **kwargs: Any) -> None: ...
|
def __init__(self, string=..., currency_field=..., **kwargs) -> None: ...
|
||||||
_description_currency_field: Any = ...
|
_description_currency_field: Any
|
||||||
currency_field: str = ...
|
currency_field: str
|
||||||
def _setup_currency_field(self, model: Any) -> None: ...
|
def _setup_currency_field(self, model) -> None: ...
|
||||||
def _setup_regular_full(self, model: Any) -> None: ...
|
def _setup_regular_full(self, model) -> None: ...
|
||||||
def _setup_related_full(self, model: Any) -> None: ...
|
def _setup_related_full(self, model) -> None: ...
|
||||||
def convert_to_column(self, value: Any, record: Any, values: Optional[Any] = ..., validate: bool = ...): ...
|
def convert_to_column(self, value, record, values: Optional[Any] = ..., validate: bool = ...): ...
|
||||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
def convert_to_cache(self, value, record, validate: bool = ...): ...
|
||||||
def convert_to_read(self, value: Any, record: Any, use_name_get: bool = ...): ...
|
def convert_to_read(self, value, record, use_name_get: bool = ...): ...
|
||||||
def convert_to_write(self, value: Any, record: Any): ...
|
def convert_to_write(self, value, record): ...
|
||||||
|
|
||||||
class _String(Field[str]):
|
class _String(Field[str]):
|
||||||
_slots: Any = ...
|
_slots: Any
|
||||||
def __init__(self, string: Any = ..., **kwargs: Any) -> None: ...
|
def __init__(self, string=..., **kwargs) -> None: ...
|
||||||
prefetch: Any = ...
|
prefetch: Any
|
||||||
def _setup_attrs(self, model: Any, name: Any) -> None: ...
|
def _setup_attrs(self, model, name) -> None: ...
|
||||||
_related_translate: Any = ...
|
_related_translate: Any
|
||||||
def _description_translate(self, env: Any): ...
|
def _description_translate(self, env): ...
|
||||||
def get_trans_terms(self, value: Any): ...
|
def get_trans_terms(self, value): ...
|
||||||
def get_trans_func(self, records: Any): ...
|
def get_trans_func(self, records): ...
|
||||||
def check_trans_value(self, value: Any): ...
|
def check_trans_value(self, value): ...
|
||||||
|
|
||||||
class Char(_String):
|
class Char(_String):
|
||||||
type: str = ...
|
type: str
|
||||||
column_cast_from: Any = ...
|
column_cast_from: Any
|
||||||
_slots: Any = ...
|
_slots: Any
|
||||||
@property
|
@property
|
||||||
def column_type(self): ...
|
def column_type(self): ...
|
||||||
def update_db_column(self, model: Any, column: Any) -> None: ...
|
def update_db_column(self, model, column) -> None: ...
|
||||||
_related_size: Any = ...
|
_related_size: Any
|
||||||
_related_trim: Any = ...
|
_related_trim: Any
|
||||||
_description_size: Any = ...
|
_description_size: Any
|
||||||
_description_trim: Any = ...
|
_description_trim: Any
|
||||||
def _setup_regular_base(self, model: Any) -> None: ...
|
def _setup_regular_base(self, model) -> None: ...
|
||||||
def convert_to_column(self, value: Any, record: Any, values: Optional[Any] = ..., validate: bool = ...): ...
|
def convert_to_column(self, value, record, values: Optional[Any] = ..., validate: bool = ...): ...
|
||||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
def convert_to_cache(self, value, record, validate: bool = ...): ...
|
||||||
|
|
||||||
class Text(_String):
|
class Text(_String):
|
||||||
type: str = ...
|
type: str
|
||||||
column_type: Any = ...
|
column_type: Any
|
||||||
column_cast_from: Any = ...
|
column_cast_from: Any
|
||||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
def convert_to_cache(self, value, record, validate: bool = ...): ...
|
||||||
|
|
||||||
class Html(_String):
|
class Html(_String):
|
||||||
type: str = ...
|
type: str
|
||||||
column_type: Any = ...
|
column_type: Any
|
||||||
_slots: Any = ...
|
_slots: Any
|
||||||
def _get_attrs(self, model: Any, name: Any): ...
|
def _get_attrs(self, model, name): ...
|
||||||
_related_sanitize: Any = ...
|
_related_sanitize: Any
|
||||||
_related_sanitize_tags: Any = ...
|
_related_sanitize_tags: Any
|
||||||
_related_sanitize_attributes: Any = ...
|
_related_sanitize_attributes: Any
|
||||||
_related_sanitize_style: Any = ...
|
_related_sanitize_style: Any
|
||||||
_related_strip_style: Any = ...
|
_related_strip_style: Any
|
||||||
_related_strip_classes: Any = ...
|
_related_strip_classes: Any
|
||||||
_description_sanitize: Any = ...
|
_description_sanitize: Any
|
||||||
_description_sanitize_tags: Any = ...
|
_description_sanitize_tags: Any
|
||||||
_description_sanitize_attributes: Any = ...
|
_description_sanitize_attributes: Any
|
||||||
_description_sanitize_style: Any = ...
|
_description_sanitize_style: Any
|
||||||
_description_strip_style: Any = ...
|
_description_strip_style: Any
|
||||||
_description_strip_classes: Any = ...
|
_description_strip_classes: Any
|
||||||
def convert_to_column(self, value: Any, record: Any, values: Optional[Any] = ..., validate: bool = ...): ...
|
def convert_to_column(self, value, record, values: Optional[Any] = ..., validate: bool = ...): ...
|
||||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
def convert_to_cache(self, value, record, validate: bool = ...): ...
|
||||||
|
|
||||||
class Date(Field[datetime.date]):
|
class Date(Field[datetime.date]):
|
||||||
type: str = ...
|
type: str
|
||||||
column_type: Any = ...
|
column_type: Any
|
||||||
column_cast_from: Any = ...
|
column_cast_from: Any
|
||||||
start_of = date_utils.start_of
|
start_of = date_utils.start_of
|
||||||
end_of = date_utils.end_of
|
end_of = date_utils.end_of
|
||||||
add: date_utils.add
|
add: date_utils.add
|
||||||
subtract: date_utils.subtract
|
subtract: date_utils.subtract
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def today(*args: Any) -> datetime.date: ...
|
def today(*args) -> datetime.date: ...
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def context_today(record: Any, timestamp: Optional[Any] = ...) -> datetime.date: ...
|
def context_today(record, timestamp: Optional[Any] = ...) -> datetime.date: ...
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def to_date(value: Any) -> datetime.date: ...
|
def to_date(value) -> datetime.date: ...
|
||||||
from_string = to_date
|
from_string = to_date
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def to_string(value: Any): ...
|
def to_string(value): ...
|
||||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
def convert_to_cache(self, value, record, validate: bool = ...): ...
|
||||||
def convert_to_export(self, value: Any, record: Any): ...
|
def convert_to_export(self, value, record): ...
|
||||||
|
|
||||||
class Datetime(Field[datetime.datetime]):
|
class Datetime(Field[datetime.datetime]):
|
||||||
type: str = ...
|
type: str
|
||||||
column_type: Any = ...
|
column_type: Any
|
||||||
column_cast_from: Any = ...
|
column_cast_from: Any
|
||||||
start_of = date_utils.start_of
|
start_of = date_utils.start_of
|
||||||
end_of = date_utils.end_of
|
end_of = date_utils.end_of
|
||||||
add = date_utils.add
|
add = date_utils.add
|
||||||
subtract: date_utils.subtract
|
subtract: date_utils.subtract
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def now(*args: Any) -> datetime.datetime: ...
|
def now(*args) -> datetime.datetime: ...
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def today(*args: Any) -> datetime.datetime: ...
|
def today(*args) -> datetime.datetime: ...
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def context_timestamp(record: Any, timestamp: Any) -> datetime.datetime: ...
|
def context_timestamp(record, timestamp) -> datetime.datetime: ...
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def to_datetime(value: Any) -> datetime.datetime: ...
|
def to_datetime(value) -> datetime.datetime: ...
|
||||||
from_string = to_datetime
|
from_string = to_datetime
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def to_string(value: Any) -> str: ...
|
def to_string(value) -> str: ...
|
||||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
def convert_to_cache(self, value, record, validate: bool = ...): ...
|
||||||
def convert_to_export(self, value: Any, record: Any): ...
|
def convert_to_export(self, value, record): ...
|
||||||
def convert_to_display_name(self, value: Any, record: Any): ...
|
def convert_to_display_name(self, value, record): ...
|
||||||
_BINARY = memoryview
|
_BINARY = memoryview
|
||||||
|
|
||||||
class Binary(Field[bytes]):
|
class Binary(Field[bytes]):
|
||||||
type: str = ...
|
type: str
|
||||||
_slots: Any = ...
|
_slots: Any
|
||||||
@property
|
@property
|
||||||
def column_type(self): ...
|
def column_type(self): ...
|
||||||
_description_attachment: Any = ...
|
_description_attachment: Any
|
||||||
def convert_to_column(self, value: Any, record: Any, values: Optional[Any] = ..., validate: bool = ...): ...
|
def convert_to_column(self, value, record, values: Optional[Any] = ..., validate: bool = ...): ...
|
||||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
def convert_to_cache(self, value, record, validate: bool = ...): ...
|
||||||
def read(self, records: Any) -> None: ...
|
def read(self, records) -> None: ...
|
||||||
def create(self, record_values: Any) -> None: ...
|
def create(self, record_values) -> None: ...
|
||||||
def write(self, records: Any, value: Any) -> None: ...
|
def write(self, records, value) -> None: ...
|
||||||
|
|
||||||
class Selection(Field[str]):
|
class Selection(Field[str]):
|
||||||
type: str = ...
|
type: str
|
||||||
_slots: Any = ...
|
_slots: Any
|
||||||
def __init__(self, selection: Any = ..., string: Any = ..., **kwargs: Any) -> None: ...
|
def __init__(self, selection=..., string=..., **kwargs) -> None: ...
|
||||||
@property
|
@property
|
||||||
def column_type(self): ...
|
def column_type(self): ...
|
||||||
def _setup_regular_base(self, model: Any) -> None: ...
|
def _setup_regular_base(self, model) -> None: ...
|
||||||
selection: Any = ...
|
selection: Any
|
||||||
def _setup_related_full(self, model: Any): ...
|
def _setup_related_full(self, model): ...
|
||||||
def _setup_attrs(self, model: Any, name: Any) -> None: ...
|
def _setup_attrs(self, model, name) -> None: ...
|
||||||
def _description_selection(self, env: Any): ...
|
def _description_selection(self, env): ...
|
||||||
def get_values(self, env: Any): ...
|
def get_values(self, env): ...
|
||||||
def convert_to_column(self, value: Any, record: Any, values: Optional[Any] = ..., validate: bool = ...): ...
|
def convert_to_column(self, value, record, values: Optional[Any] = ..., validate: bool = ...): ...
|
||||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
def convert_to_cache(self, value, record, validate: bool = ...): ...
|
||||||
def convert_to_export(self, value: Any, record: Any): ...
|
def convert_to_export(self, value, record): ...
|
||||||
|
|
||||||
class Reference(Selection):
|
class Reference(Selection):
|
||||||
type: str = ...
|
type: str
|
||||||
@property
|
@property
|
||||||
def column_type(self): ...
|
def column_type(self): ...
|
||||||
def convert_to_column(self, value: Any, record: Any, values: Optional[Any] = ..., validate: bool = ...): ...
|
def convert_to_column(self, value, record, values: Optional[Any] = ..., validate: bool = ...): ...
|
||||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
def convert_to_cache(self, value, record, validate: bool = ...): ...
|
||||||
def convert_to_record(self, value: Any, record: Any): ...
|
def convert_to_record(self, value, record): ...
|
||||||
def convert_to_read(self, value: Any, record: Any, use_name_get: bool = ...): ...
|
def convert_to_read(self, value, record, use_name_get: bool = ...): ...
|
||||||
def convert_to_export(self, value: Any, record: Any): ...
|
def convert_to_export(self, value, record): ...
|
||||||
def convert_to_display_name(self, value: Any, record: Any): ...
|
def convert_to_display_name(self, value, record): ...
|
||||||
|
|
||||||
class _Relational(Field[BaseModel]):
|
class _Relational(Field[BaseModel]):
|
||||||
relational: bool = ...
|
relational: bool
|
||||||
_slots: Any = ...
|
_slots: Any
|
||||||
comodel_name: str = ...
|
comodel_name: str
|
||||||
def _setup_regular_base(self, model: Any) -> None: ...
|
def _setup_regular_base(self, model) -> None: ...
|
||||||
@property
|
@property
|
||||||
def _related_domain(self): ...
|
def _related_domain(self): ...
|
||||||
_related_context: Any = ...
|
_related_context: Any
|
||||||
_description_relation: Any = ...
|
_description_relation: Any
|
||||||
_description_context: Any = ...
|
_description_context: Any
|
||||||
def _description_domain(self, env: Any): ...
|
def _description_domain(self, env): ...
|
||||||
def null(self, record: Any): ...
|
def null(self, record): ...
|
||||||
|
|
||||||
class Many2one(_Relational):
|
class Many2one(_Relational):
|
||||||
type: str = ...
|
type: str
|
||||||
column_type: Any = ...
|
column_type: Any
|
||||||
_slots: Any = ...
|
_slots: Any
|
||||||
def __init__(self, comodel_name: Any = ..., string: Any = ..., **kwargs: Any) -> None: ...
|
def __init__(self, comodel_name=..., string=..., **kwargs) -> None: ...
|
||||||
delegate: Any = ...
|
delegate: Any
|
||||||
def _setup_attrs(self, model: Any, name: Any) -> None: ...
|
def _setup_attrs(self, model, name) -> None: ...
|
||||||
ondelete: Any = ...
|
ondelete: Any
|
||||||
def update_db(self, model: Any, columns: Any): ...
|
def update_db(self, model, columns): ...
|
||||||
def update_db_column(self, model: Any, column: Any) -> None: ...
|
def update_db_column(self, model, column) -> None: ...
|
||||||
def update_db_foreign_key(self, model: Any, column: Any) -> None: ...
|
def update_db_foreign_key(self, model, column) -> None: ...
|
||||||
def _update(self, records: Any, value: Any) -> None: ...
|
def _update(self, records, value) -> None: ...
|
||||||
def convert_to_column(self, value: Any, record: Any, values: Optional[Any] = ..., validate: bool = ...): ...
|
def convert_to_column(self, value, record, values: Optional[Any] = ..., validate: bool = ...): ...
|
||||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
def convert_to_cache(self, value, record, validate: bool = ...): ...
|
||||||
def convert_to_record(self, value: Any, record: Any): ...
|
def convert_to_record(self, value, record): ...
|
||||||
def convert_to_read(self, value: Any, record: Any, use_name_get: bool = ...): ...
|
def convert_to_read(self, value, record, use_name_get: bool = ...): ...
|
||||||
def convert_to_write(self, value: Any, record: Any): ...
|
def convert_to_write(self, value, record): ...
|
||||||
def convert_to_export(self, value: Any, record: Any): ...
|
def convert_to_export(self, value, record): ...
|
||||||
def convert_to_display_name(self, value: Any, record: Any): ...
|
def convert_to_display_name(self, value, record): ...
|
||||||
def convert_to_onchange(self, value: Any, record: Any, names: Any): ...
|
def convert_to_onchange(self, value, record, names): ...
|
||||||
|
|
||||||
class _RelationalMultiUpdate:
|
class _RelationalMultiUpdate:
|
||||||
__slots__: Any = ...
|
__slots__: Any
|
||||||
record: Any = ...
|
record: Any
|
||||||
field: Any = ...
|
field: Any
|
||||||
value: Any = ...
|
value: Any
|
||||||
def __init__(self, record: Any, field: Any, value: Any) -> None: ...
|
def __init__(self, record, field, value) -> None: ...
|
||||||
def __call__(self): ...
|
def __call__(self): ...
|
||||||
|
|
||||||
class _RelationalMulti(_Relational):
|
class _RelationalMulti(_Relational):
|
||||||
_slots: Any = ...
|
_slots: Any
|
||||||
def _update(self, records: Any, value: Any) -> None: ...
|
def _update(self, records, value) -> None: ...
|
||||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
def convert_to_cache(self, value, record, validate: bool = ...): ...
|
||||||
def convert_to_record(self, value: Any, record: Any): ...
|
def convert_to_record(self, value, record): ...
|
||||||
def convert_to_read(self, value: Any, record: Any, use_name_get: bool = ...): ...
|
def convert_to_read(self, value, record, use_name_get: bool = ...): ...
|
||||||
def convert_to_write(self, value: Any, record: Any): ...
|
def convert_to_write(self, value, record): ...
|
||||||
def convert_to_onchange(self, value: Any, record: Any, names: Any): ...
|
def convert_to_onchange(self, value, record, names): ...
|
||||||
def convert_to_export(self, value: Any, record: Any): ...
|
def convert_to_export(self, value, record): ...
|
||||||
def convert_to_display_name(self, value: Any, record: Any) -> None: ...
|
def convert_to_display_name(self, value, record) -> None: ...
|
||||||
def _compute_related(self, records: Any): ...
|
def _compute_related(self, records): ...
|
||||||
def _setup_regular_full(self, model: Any) -> None: ...
|
def _setup_regular_full(self, model) -> None: ...
|
||||||
|
|
||||||
class One2many(_RelationalMulti):
|
class One2many(_RelationalMulti):
|
||||||
type: str = ...
|
type: str
|
||||||
_slots: Any = ...
|
_slots: Any
|
||||||
def __init__(self, comodel_name: Any = ..., inverse_name: Any = ..., string: Any = ..., **kwargs: Any) -> None: ...
|
def __init__(self, comodel_name=..., inverse_name=..., string=..., **kwargs) -> None: ...
|
||||||
def _setup_regular_full(self, model: Any) -> None: ...
|
def _setup_regular_full(self, model) -> None: ...
|
||||||
_description_relation_field: Any = ...
|
_description_relation_field: Any
|
||||||
def convert_to_onchange(self, value: Any, record: Any, names: Any): ...
|
def convert_to_onchange(self, value, record, names): ...
|
||||||
def update_db(self, model: Any, columns: Any) -> None: ...
|
def update_db(self, model, columns) -> None: ...
|
||||||
def read(self, records: Any): ...
|
def read(self, records): ...
|
||||||
def create(self, record_values: Any) -> None: ...
|
def create(self, record_values) -> None: ...
|
||||||
def write(self, records: Any, value: Any) -> None: ...
|
def write(self, records, value) -> None: ...
|
||||||
|
|
||||||
class Many2many(_RelationalMulti):
|
class Many2many(_RelationalMulti):
|
||||||
type: str = ...
|
type: str
|
||||||
_slots: Any = ...
|
_slots: Any
|
||||||
def __init__(self, comodel_name: Any = ..., relation: Any = ..., column1: Any = ..., column2: Any = ..., string: Any = ..., **kwargs: Any) -> None: ...
|
def __init__(self, comodel_name=..., relation=..., column1=..., column2=..., string=..., **kwargs) -> None: ...
|
||||||
relation: Any = ...
|
relation: Any
|
||||||
column1: Any = ...
|
column1: Any
|
||||||
column2: Any = ...
|
column2: Any
|
||||||
def _setup_regular_base(self, model: Any) -> None: ...
|
def _setup_regular_base(self, model) -> None: ...
|
||||||
def _setup_regular_full(self, model: Any) -> None: ...
|
def _setup_regular_full(self, model) -> None: ...
|
||||||
def update_db(self, model: Any, columns: Any): ...
|
def update_db(self, model, columns): ...
|
||||||
def update_db_foreign_keys(self, model: Any) -> None: ...
|
def update_db_foreign_keys(self, model) -> None: ...
|
||||||
def read(self, records: Any) -> None: ...
|
def read(self, records) -> None: ...
|
||||||
def create(self, record_values: Any) -> None: ...
|
def create(self, record_values) -> None: ...
|
||||||
def write(self, records: Any, value: Any) -> None: ...
|
def write(self, records, value) -> None: ...
|
||||||
|
|
||||||
class Id(Field[int]):
|
class Id(Field[int]):
|
||||||
type: str = ...
|
type: str
|
||||||
column_type: Any = ...
|
column_type: Any
|
||||||
_slots: Any = ...
|
_slots: Any
|
||||||
def update_db(self, model: Any, columns: Any) -> None: ...
|
def update_db(self, model, columns) -> None: ...
|
||||||
def __set__(self, record: Any, value: Any) -> None: ...
|
def __set__(self, record, value) -> None: ...
|
||||||
|
|||||||
@@ -12,38 +12,38 @@ STATIC_CACHE: Any
|
|||||||
_request_stack: Any
|
_request_stack: Any
|
||||||
request: Union[HttpRequest, JsonRequest]
|
request: Union[HttpRequest, JsonRequest]
|
||||||
|
|
||||||
def replace_request_password(args: Any): ...
|
def replace_request_password(args): ...
|
||||||
|
|
||||||
NO_POSTMORTEM: Any
|
NO_POSTMORTEM: Any
|
||||||
|
|
||||||
def dispatch_rpc(service_name: Any, method: Any, params: Any): ...
|
def dispatch_rpc(service_name, method, params): ...
|
||||||
def local_redirect(path: Any, query: Optional[Any] = ..., keep_hash: bool = ..., forward_debug: bool = ..., code: int = ...): ...
|
def local_redirect(path, query: Optional[Any] = ..., keep_hash: bool = ..., forward_debug: bool = ..., code: int = ...): ...
|
||||||
def redirect_with_hash(url: Any, code: int = ...): ...
|
def redirect_with_hash(url, code: int = ...): ...
|
||||||
|
|
||||||
class WebRequest:
|
class WebRequest:
|
||||||
httprequest: werkzeug.wrappers.Request = ...
|
httprequest: werkzeug.wrappers.Request
|
||||||
httpresponse: Response = ...
|
httpresponse: Response
|
||||||
disable_db: bool = ...
|
disable_db: bool
|
||||||
endpoint: Any = ...
|
endpoint: Any
|
||||||
endpoint_arguments: Any = ...
|
endpoint_arguments: Any
|
||||||
auth_method: Any = ...
|
auth_method: Any
|
||||||
website = Environment()['website']
|
website = Environment()['website']
|
||||||
_cr: Cursor = ...
|
_cr: Cursor
|
||||||
_uid: int = ...
|
_uid: int
|
||||||
_context: dict = ...
|
_context: dict
|
||||||
_env: Environment = ...
|
_env: Environment
|
||||||
_failed: Any = ...
|
_failed: Any
|
||||||
def __init__(self, httprequest: Any) -> None: ...
|
def __init__(self, httprequest) -> None: ...
|
||||||
@property
|
@property
|
||||||
def cr(self) -> Cursor: ...
|
def cr(self) -> Cursor: ...
|
||||||
@property
|
@property
|
||||||
def uid(self) -> int: ...
|
def uid(self) -> int: ...
|
||||||
@uid.setter
|
@uid.setter
|
||||||
def uid(self, val: Any) -> None: ...
|
def uid(self, val) -> None: ...
|
||||||
@property
|
@property
|
||||||
def context(self) -> dict: ...
|
def context(self) -> dict: ...
|
||||||
@context.setter
|
@context.setter
|
||||||
def context(self, val: Any) -> None: ...
|
def context(self, val) -> None: ...
|
||||||
@property
|
@property
|
||||||
def env(self) -> Environment: ...
|
def env(self) -> Environment: ...
|
||||||
@property
|
@property
|
||||||
@@ -51,10 +51,10 @@ class WebRequest:
|
|||||||
@property
|
@property
|
||||||
def session(self) -> OpenERPSession: ...
|
def session(self) -> OpenERPSession: ...
|
||||||
def __enter__(self): ...
|
def __enter__(self): ...
|
||||||
def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> None: ...
|
def __exit__(self, exc_type, exc_value, traceback) -> None: ...
|
||||||
def set_handler(self, endpoint: Any, arguments: Any, auth: Any) -> None: ...
|
def set_handler(self, endpoint, arguments, auth) -> None: ...
|
||||||
def _handle_exception(self, exception: Any) -> None: ...
|
def _handle_exception(self, exception) -> None: ...
|
||||||
def _call_function(self, *args: Any, **kwargs: Any): ...
|
def _call_function(self, *args, **kwargs): ...
|
||||||
@property
|
@property
|
||||||
def debug(self): ...
|
def debug(self): ...
|
||||||
def registry_cr(self) -> None: ...
|
def registry_cr(self) -> None: ...
|
||||||
@@ -63,89 +63,89 @@ class WebRequest:
|
|||||||
@property
|
@property
|
||||||
def db(self): ...
|
def db(self): ...
|
||||||
def csrf_token(self, time_limit: int = ...): ...
|
def csrf_token(self, time_limit: int = ...): ...
|
||||||
def validate_csrf(self, csrf: Any): ...
|
def validate_csrf(self, csrf): ...
|
||||||
def redirect(self, url: str, code=302): ...
|
def redirect(self, url: str, code=302): ...
|
||||||
|
|
||||||
def route(route: Optional[Any] = ..., **kw: Any): ...
|
def route(route: Optional[Any] = ..., **kw): ...
|
||||||
|
|
||||||
class JsonRequest(WebRequest):
|
class JsonRequest(WebRequest):
|
||||||
_request_type: str = ...
|
_request_type: str
|
||||||
jsonp_handler: Any = ...
|
jsonp_handler: Any
|
||||||
params: Any = ...
|
params: Any
|
||||||
jsonp: Any = ...
|
jsonp: Any
|
||||||
jsonrequest: Any = ...
|
jsonrequest: Any
|
||||||
context: Any = ...
|
context: Any
|
||||||
def __init__(self, *args: Any): ...
|
def __init__(self, *args): ...
|
||||||
def _json_response(self, result: Optional[Any] = ..., error: Optional[Any] = ...): ...
|
def _json_response(self, result: Optional[Any] = ..., error: Optional[Any] = ...): ...
|
||||||
def _handle_exception(self, exception: Any): ...
|
def _handle_exception(self, exception): ...
|
||||||
def dispatch(self): ...
|
def dispatch(self): ...
|
||||||
|
|
||||||
def serialize_exception(e: Any): ...
|
def serialize_exception(e): ...
|
||||||
|
|
||||||
class HttpRequest(WebRequest):
|
class HttpRequest(WebRequest):
|
||||||
_request_type: str = ...
|
_request_type: str
|
||||||
params: Any = ...
|
params: Any
|
||||||
def __init__(self, *args: Any) -> None: ...
|
def __init__(self, *args) -> None: ...
|
||||||
def _handle_exception(self, exception: Any): ...
|
def _handle_exception(self, exception): ...
|
||||||
def dispatch(self): ...
|
def dispatch(self): ...
|
||||||
def make_response(self, data: Any, headers: Optional[Any] = ..., cookies: Optional[Any] = ...): ...
|
def make_response(self, data, headers: Optional[Any] = ..., cookies: Optional[Any] = ...): ...
|
||||||
def render(self, template: Any, qcontext: Optional[Any] = ..., lazy: bool = ..., **kw: Any): ...
|
def render(self, template, qcontext: Optional[Any] = ..., lazy: bool = ..., **kw): ...
|
||||||
def not_found(self, description: Optional[Any] = ...): ...
|
def not_found(self, description: Optional[Any] = ...): ...
|
||||||
|
|
||||||
addons_manifest: Any
|
addons_manifest: Any
|
||||||
controllers_per_module: Any
|
controllers_per_module: Any
|
||||||
|
|
||||||
class ControllerType(type):
|
class ControllerType(type):
|
||||||
def __init__(cls, name: Any, bases: Any, attrs: Any) -> None: ...
|
def __init__(cls, name, bases, attrs) -> None: ...
|
||||||
|
|
||||||
Controller: Any
|
Controller: Any
|
||||||
|
|
||||||
class EndPoint:
|
class EndPoint:
|
||||||
method: Any = ...
|
method: Any
|
||||||
original: Any = ...
|
original: Any
|
||||||
routing: Any = ...
|
routing: Any
|
||||||
arguments: Any = ...
|
arguments: Any
|
||||||
def __init__(self, method: Any, routing: Any) -> None: ...
|
def __init__(self, method, routing) -> None: ...
|
||||||
@property
|
@property
|
||||||
def first_arg_is_req(self): ...
|
def first_arg_is_req(self): ...
|
||||||
def __call__(self, *args: Any, **kw: Any): ...
|
def __call__(self, *args, **kw): ...
|
||||||
|
|
||||||
def routing_map(modules: Any, nodb_only: Any, converters: Optional[Any] = ...): ...
|
def routing_map(modules, nodb_only, converters: Optional[Any] = ...): ...
|
||||||
|
|
||||||
class AuthenticationError(Exception): ...
|
class AuthenticationError(Exception): ...
|
||||||
class SessionExpiredException(Exception): ...
|
class SessionExpiredException(Exception): ...
|
||||||
|
|
||||||
class OpenERPSession(werkzeug.contrib.sessions.Session):
|
class OpenERPSession(werkzeug.contrib.sessions.Session):
|
||||||
inited: bool = ...
|
inited: bool
|
||||||
modified: bool = ...
|
modified: bool
|
||||||
rotate: bool = ...
|
rotate: bool
|
||||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
def __init__(self, *args, **kwargs) -> None: ...
|
||||||
def __getattr__(self, attr: Any): ...
|
def __getattr__(self, attr): ...
|
||||||
def __setattr__(self, k: Any, v: Any): ...
|
def __setattr__(self, k, v): ...
|
||||||
db: Any = ...
|
db: Any
|
||||||
uid: Any = ...
|
uid: Any
|
||||||
login: Any = ...
|
login: Any
|
||||||
session_token: Any = ...
|
session_token: Any
|
||||||
def authenticate(self, db: Any, login: Optional[Any] = ..., password: Optional[Any] = ..., uid: Optional[Any] = ...): ...
|
def authenticate(self, db, login: Optional[Any] = ..., password: Optional[Any] = ..., uid: Optional[Any] = ...): ...
|
||||||
def check_security(self) -> None: ...
|
def check_security(self) -> None: ...
|
||||||
def logout(self, keep_db: bool = ...) -> None: ...
|
def logout(self, keep_db: bool = ...) -> None: ...
|
||||||
def _default_values(self) -> None: ...
|
def _default_values(self) -> None: ...
|
||||||
context: Any = ...
|
context: Any
|
||||||
def get_context(self): ...
|
def get_context(self): ...
|
||||||
def _fix_lang(self, context: Any) -> None: ...
|
def _fix_lang(self, context) -> None: ...
|
||||||
def save_action(self, action: Any): ...
|
def save_action(self, action): ...
|
||||||
def get_action(self, key: Any): ...
|
def get_action(self, key): ...
|
||||||
def save_request_data(self) -> None: ...
|
def save_request_data(self) -> None: ...
|
||||||
def load_request_data(self) -> None: ...
|
def load_request_data(self) -> None: ...
|
||||||
|
|
||||||
def session_gc(session_store: Any) -> None: ...
|
def session_gc(session_store) -> None: ...
|
||||||
|
|
||||||
class Response(werkzeug.wrappers.Response):
|
class Response(werkzeug.wrappers.Response):
|
||||||
default_mimetype: str = ...
|
default_mimetype: str
|
||||||
def __init__(self, *args: Any, **kw: Any) -> None: ...
|
def __init__(self, *args, **kw) -> None: ...
|
||||||
template: Any = ...
|
template: Any
|
||||||
qcontext: Any = ...
|
qcontext: Any
|
||||||
uid: Any = ...
|
uid: Any
|
||||||
def set_default(self, template: Optional[Any] = ..., qcontext: Optional[Any] = ..., uid: Optional[Any] = ...) -> None: ...
|
def set_default(self, template: Optional[Any] = ..., qcontext: Optional[Any] = ..., uid: Optional[Any] = ...) -> None: ...
|
||||||
@property
|
@property
|
||||||
def is_qweb(self): ...
|
def is_qweb(self): ...
|
||||||
@@ -153,30 +153,30 @@ class Response(werkzeug.wrappers.Response):
|
|||||||
def flatten(self) -> None: ...
|
def flatten(self) -> None: ...
|
||||||
|
|
||||||
class DisableCacheMiddleware:
|
class DisableCacheMiddleware:
|
||||||
app: Any = ...
|
app: Any
|
||||||
def __init__(self, app: Any) -> None: ...
|
def __init__(self, app) -> None: ...
|
||||||
def __call__(self, environ: Any, start_response: Any): ...
|
def __call__(self, environ, start_response): ...
|
||||||
|
|
||||||
class Root:
|
class Root:
|
||||||
_loaded: bool = ...
|
_loaded: bool
|
||||||
def __init__(self) -> None: ...
|
def __init__(self) -> None: ...
|
||||||
def session_store(self): ...
|
def session_store(self): ...
|
||||||
def nodb_routing_map(self): ...
|
def nodb_routing_map(self): ...
|
||||||
def __call__(self, environ: Any, start_response: Any): ...
|
def __call__(self, environ, start_response): ...
|
||||||
def load_addons(self) -> None: ...
|
def load_addons(self) -> None: ...
|
||||||
def setup_session(self, httprequest: Any): ...
|
def setup_session(self, httprequest): ...
|
||||||
def setup_db(self, httprequest: Any) -> None: ...
|
def setup_db(self, httprequest) -> None: ...
|
||||||
def setup_lang(self, httprequest: Any) -> None: ...
|
def setup_lang(self, httprequest) -> None: ...
|
||||||
def get_request(self, httprequest: Any): ...
|
def get_request(self, httprequest): ...
|
||||||
def get_response(self, httprequest: Any, result: Any, explicit_session: Any): ...
|
def get_response(self, httprequest, result, explicit_session): ...
|
||||||
def dispatch(self, environ: Any, start_response: Any): ...
|
def dispatch(self, environ, start_response): ...
|
||||||
def get_db_router(self, db: Any): ...
|
def get_db_router(self, db): ...
|
||||||
|
|
||||||
def db_list(force: bool = ..., httprequest: Optional[Any] = ...): ...
|
def db_list(force: bool = ..., httprequest: Optional[Any] = ...): ...
|
||||||
def db_filter(dbs: Any, httprequest: Optional[Any] = ...): ...
|
def db_filter(dbs, httprequest: Optional[Any] = ...): ...
|
||||||
def db_monodb(httprequest: Optional[Any] = ...): ...
|
def db_monodb(httprequest: Optional[Any] = ...): ...
|
||||||
def send_file(filepath_or_fp: Any, mimetype: Optional[Any] = ..., as_attachment: bool = ..., filename: Optional[Any] = ..., mtime: Optional[Any] = ..., add_etags: bool = ..., cache_timeout: Any = ..., conditional: bool = ...): ...
|
def send_file(filepath_or_fp, mimetype: Optional[Any] = ..., as_attachment: bool = ..., filename: Optional[Any] = ..., mtime: Optional[Any] = ..., add_etags: bool = ..., cache_timeout=..., conditional: bool = ...): ...
|
||||||
def content_disposition(filename: Any): ...
|
def content_disposition(filename): ...
|
||||||
|
|
||||||
class CommonController(Controller):
|
class CommonController(Controller):
|
||||||
def gen_session_id(self): ...
|
def gen_session_id(self): ...
|
||||||
|
|||||||
@@ -11,5 +11,5 @@ def get_encodings(hint_encoding: str = ...) -> None: ...
|
|||||||
|
|
||||||
text_type: Any
|
text_type: Any
|
||||||
|
|
||||||
def ustr(value: Any, hint_encoding: str = ..., errors: str = ...): ...
|
def ustr(value, hint_encoding: str = ..., errors: str = ...): ...
|
||||||
def exception_to_unicode(e: Any): ...
|
def exception_to_unicode(e): ...
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ from .api import Environment
|
|||||||
from .modules.registry import Registry
|
from .modules.registry import Registry
|
||||||
from .sql_db import Cursor
|
from .sql_db import Cursor
|
||||||
|
|
||||||
_M = TypeVar('_M')
|
_ModelT = TypeVar('_ModelT', bound=BaseModel)
|
||||||
|
|
||||||
_logger: Any
|
_logger: Any
|
||||||
_schema: Any
|
_schema: Any
|
||||||
@@ -17,29 +17,29 @@ regex_pg_name: Any
|
|||||||
regex_field_agg: Any
|
regex_field_agg: Any
|
||||||
AUTOINIT_RECALCULATE_STORED_FIELDS: int
|
AUTOINIT_RECALCULATE_STORED_FIELDS: int
|
||||||
|
|
||||||
def check_object_name(name: Any): ...
|
def check_object_name(name): ...
|
||||||
def raise_on_invalid_object_name(name: Any) -> None: ...
|
def raise_on_invalid_object_name(name) -> None: ...
|
||||||
def check_pg_name(name: Any) -> None: ...
|
def check_pg_name(name) -> None: ...
|
||||||
|
|
||||||
regex_private: Any
|
regex_private: Any
|
||||||
|
|
||||||
def check_method_name(name: Any) -> None: ...
|
def check_method_name(name) -> None: ...
|
||||||
def same_name(f: Any, g: Any): ...
|
def same_name(f, g): ...
|
||||||
def fix_import_export_id_paths(fieldname: Any): ...
|
def fix_import_export_id_paths(fieldname): ...
|
||||||
|
|
||||||
class MetaModel(api.Meta):
|
class MetaModel(api.Meta):
|
||||||
module_to_models: Any = ...
|
module_to_models: Any
|
||||||
_register: bool = ...
|
_register: bool
|
||||||
_module: Any = ...
|
_module: Any
|
||||||
def __init__(self, name: Any, bases: Any, attrs: Any) -> None: ...
|
def __init__(self, name, bases, attrs) -> None: ...
|
||||||
def _get_addon_name(self, full_name: Any): ...
|
def _get_addon_name(self, full_name): ...
|
||||||
|
|
||||||
class NewId:
|
class NewId:
|
||||||
__slots__: Any = ...
|
__slots__: Any
|
||||||
ref: Any = ...
|
ref: Any
|
||||||
def __init__(self, ref: Optional[Any] = ...) -> None: ...
|
def __init__(self, ref: Optional[Any] = ...) -> None: ...
|
||||||
def __bool__(self): ...
|
def __bool__(self): ...
|
||||||
__nonzero__: Any = ...
|
__nonzero__: Any
|
||||||
|
|
||||||
IdType: Any
|
IdType: Any
|
||||||
PREFETCH_MAX: int
|
PREFETCH_MAX: int
|
||||||
@@ -47,35 +47,35 @@ LOG_ACCESS_COLUMNS: Any
|
|||||||
MAGIC_COLUMNS: Any
|
MAGIC_COLUMNS: Any
|
||||||
VALID_AGGREGATE_FUNCTIONS: Any
|
VALID_AGGREGATE_FUNCTIONS: Any
|
||||||
|
|
||||||
class BaseModel(MetaModel('DummyModel', (object,), {'_register': False})):
|
class BaseModel(metaclass=MetaModel):
|
||||||
_auto: bool = ...
|
_auto: bool
|
||||||
_register: bool = ...
|
_register: bool
|
||||||
_abstract: bool = ...
|
_abstract: bool
|
||||||
_transient: bool = ...
|
_transient: bool
|
||||||
_name: str
|
_name: str
|
||||||
_description: str
|
_description: str
|
||||||
_custom: bool = ...
|
_custom: bool
|
||||||
_inherit: Any
|
_inherit: Any
|
||||||
_inherits: Dict[str, str]
|
_inherits: Dict[str, str]
|
||||||
_constraints: Any = ...
|
_constraints: Any
|
||||||
_table: str = ...
|
_table: str
|
||||||
_sequence: Any = ...
|
_sequence: Any
|
||||||
_sql_constraints: list
|
_sql_constraints: list
|
||||||
_rec_name: str
|
_rec_name: str
|
||||||
_order: str
|
_order: str
|
||||||
_parent_name: str = ...
|
_parent_name: str
|
||||||
_parent_store: bool = ...
|
_parent_store: bool
|
||||||
_date_name: str = ...
|
_date_name: str
|
||||||
_fold_name: str = ...
|
_fold_name: str
|
||||||
_needaction: bool = ...
|
_needaction: bool
|
||||||
_translate: bool = ...
|
_translate: bool
|
||||||
_depends: Any = ...
|
_depends: Any
|
||||||
_transient_check_count: int = ...
|
_transient_check_count: int
|
||||||
_transient_max_count: Any = ...
|
_transient_max_count: Any
|
||||||
_transient_max_hours: Any = ...
|
_transient_max_hours: Any
|
||||||
_fields: Dict[str, fields.Field]
|
_fields: Dict[str, fields.Field]
|
||||||
_ids: tuple
|
_ids: tuple
|
||||||
env: Environment = ...
|
env: Environment
|
||||||
pool: Registry
|
pool: Registry
|
||||||
id = fields.Id()
|
id = fields.Id()
|
||||||
display_name = fields.Char()
|
display_name = fields.Char()
|
||||||
@@ -83,22 +83,22 @@ class BaseModel(MetaModel('DummyModel', (object,), {'_register': False})):
|
|||||||
create_date = fields.Datetime()
|
create_date = fields.Datetime()
|
||||||
write_uid = fields.Many2one('res.users')
|
write_uid = fields.Many2one('res.users')
|
||||||
write_date = fields.Datetime()
|
write_date = fields.Datetime()
|
||||||
CONCURRENCY_CHECK_FIELD: str = ...
|
CONCURRENCY_CHECK_FIELD: str
|
||||||
def view_init(self, fields_list: Any) -> None: ...
|
def view_init(self, fields_list) -> None: ...
|
||||||
def _reflect(self) -> None: ...
|
def _reflect(self) -> None: ...
|
||||||
def _add_field(self, name: Any, field: Any) -> None: ...
|
def _add_field(self, name, field) -> None: ...
|
||||||
def _pop_field(self, name: Any): ...
|
def _pop_field(self, name): ...
|
||||||
def _add_magic_fields(self) -> None: ...
|
def _add_magic_fields(self) -> None: ...
|
||||||
def compute_concurrency_field(self) -> None: ...
|
def compute_concurrency_field(self) -> None: ...
|
||||||
def compute_concurrency_field_with_access(self) -> None: ...
|
def compute_concurrency_field_with_access(self) -> None: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def _build_model(cls, pool: Any, cr: Any): ...
|
def _build_model(cls, pool, cr): ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def _build_model_check_base(model_class: Any, cls: Any) -> None: ...
|
def _build_model_check_base(model_class, cls) -> None: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def _build_model_check_parent(model_class: Any, cls: Any, parent_class: Any) -> None: ...
|
def _build_model_check_parent(model_class, cls, parent_class) -> None: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def _build_model_attributes(cls, pool: Any) -> None: ...
|
def _build_model_attributes(cls, pool) -> None: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def _init_constraints_onchanges(cls) -> None: ...
|
def _init_constraints_onchanges(cls) -> None: ...
|
||||||
@property
|
@property
|
||||||
@@ -106,22 +106,22 @@ class BaseModel(MetaModel('DummyModel', (object,), {'_register': False})):
|
|||||||
@property
|
@property
|
||||||
def _onchange_methods(self): ...
|
def _onchange_methods(self): ...
|
||||||
def __new__(cls) -> None: ...
|
def __new__(cls) -> None: ...
|
||||||
def __init__(self, pool: Any, cr: Any) -> None: ...
|
def __init__(self, pool, cr) -> None: ...
|
||||||
def _is_an_ordinary_table(self): ...
|
def _is_an_ordinary_table(self): ...
|
||||||
def __ensure_xml_id(self, skip: bool = ...): ...
|
def __ensure_xml_id(self, skip: bool = ...): ...
|
||||||
def _export_rows(self, fields: Any, *, _is_toplevel_call: bool = ...): ...
|
def _export_rows(self, fields, *, _is_toplevel_call: bool = ...): ...
|
||||||
__export_rows: Any = ...
|
__export_rows: Any
|
||||||
def export_data(self, fields_to_export: Any, raw_data: bool = ...): ...
|
def export_data(self, fields_to_export, raw_data: bool = ...): ...
|
||||||
def load(self, fields: Any, data: Any): ...
|
def load(self, fields, data): ...
|
||||||
def _add_fake_fields(self, fields: Any): ...
|
def _add_fake_fields(self, fields): ...
|
||||||
def _extract_records(self, fields_: Any, data: Any, log: Any = ...): ...
|
def _extract_records(self, fields_, data, log: Any = ...): ...
|
||||||
def _convert_records(self, records: Any, log: Any = ...) -> None: ...
|
def _convert_records(self, records, log: Any = ...) -> None: ...
|
||||||
def _validate_fields(self, field_names: Any) -> None: ...
|
def _validate_fields(self, field_names) -> None: ...
|
||||||
def default_get(self, fields_list: Any): ...
|
def default_get(self, fields_list): ...
|
||||||
def fields_get_keys(self): ...
|
def fields_get_keys(self): ...
|
||||||
def _rec_name_fallback(self): ...
|
def _rec_name_fallback(self): ...
|
||||||
def view_header_get(self, view_id: Optional[Any] = ..., view_type: str = ...): ...
|
def view_header_get(self, view_id: Optional[Any] = ..., view_type: str = ...): ...
|
||||||
def user_has_groups(self, groups: Any): ...
|
def user_has_groups(self, groups): ...
|
||||||
def _get_default_form_view(self): ...
|
def _get_default_form_view(self): ...
|
||||||
def _get_default_search_view(self): ...
|
def _get_default_search_view(self): ...
|
||||||
def _get_default_tree_view(self): ...
|
def _get_default_tree_view(self): ...
|
||||||
@@ -130,36 +130,36 @@ class BaseModel(MetaModel('DummyModel', (object,), {'_register': False})):
|
|||||||
def _get_default_kanban_view(self): ...
|
def _get_default_kanban_view(self): ...
|
||||||
def _get_default_graph_view(self): ...
|
def _get_default_graph_view(self): ...
|
||||||
def _get_default_calendar_view(self): ...
|
def _get_default_calendar_view(self): ...
|
||||||
def load_views(self, views: Any, options: Optional[Any] = ...): ...
|
def load_views(self, views, options: Optional[Any] = ...): ...
|
||||||
def _fields_view_get(self, view_id: Optional[Any] = ..., view_type: str = ..., toolbar: bool = ..., submenu: bool = ...): ...
|
def _fields_view_get(self, view_id: Optional[Any] = ..., view_type: str = ..., toolbar: bool = ..., submenu: bool = ...): ...
|
||||||
def fields_view_get(self, view_id: Optional[Any] = ..., view_type: str = ..., toolbar: bool = ..., submenu: bool = ...): ...
|
def fields_view_get(self, view_id: Optional[Any] = ..., view_type: str = ..., toolbar: bool = ..., submenu: bool = ...): ...
|
||||||
def get_formview_id(self, access_uid: Optional[Any] = ...): ...
|
def get_formview_id(self, access_uid: Optional[Any] = ...): ...
|
||||||
def get_formview_action(self, access_uid: Optional[Any] = ...): ...
|
def get_formview_action(self, access_uid: Optional[Any] = ...): ...
|
||||||
def get_access_action(self, access_uid: Optional[Any] = ...): ...
|
def get_access_action(self, access_uid: Optional[Any] = ...): ...
|
||||||
def search_count(self, args: Any) -> int: ...
|
def search_count(self, args) -> int: ...
|
||||||
def search(self: _M, args: Any, offset: int = ..., limit: Optional[Any] = ..., order: Optional[Any] = ..., count: bool = ...) -> _M: ...
|
def search(self: _ModelT, args, offset: int = ..., limit: Optional[Any] = ..., order: Optional[Any] = ..., count: bool = ...) -> _ModelT: ...
|
||||||
def _compute_display_name(self) -> None: ...
|
def _compute_display_name(self) -> None: ...
|
||||||
def name_get(self): ...
|
def name_get(self): ...
|
||||||
def name_create(self, name: Any): ...
|
def name_create(self, name): ...
|
||||||
def name_search(self, name: str = ..., args: Optional[Any] = ..., operator: str = ..., limit: int = ...): ...
|
def name_search(self, name: str = ..., args: Optional[Any] = ..., operator: str = ..., limit: int = ...): ...
|
||||||
def _name_search(self, name: str = ..., args: Optional[Any] = ..., operator: str = ..., limit: int = ..., name_get_uid: Optional[Any] = ...): ...
|
def _name_search(self, name: str = ..., args: Optional[Any] = ..., operator: str = ..., limit: int = ..., name_get_uid: Optional[Any] = ...): ...
|
||||||
def _add_missing_default_values(self, values: Any): ...
|
def _add_missing_default_values(self, values): ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def clear_caches(cls) -> None: ...
|
def clear_caches(cls) -> None: ...
|
||||||
def _read_group_fill_results(self, domain: Any, groupby: Any, remaining_groupbys: Any, aggregated_fields: Any, count_field: Any, read_group_result: Any, read_group_order: Optional[Any] = ...): ...
|
def _read_group_fill_results(self, domain, groupby, remaining_groupbys, aggregated_fields, count_field, read_group_result, read_group_order: Optional[Any] = ...): ...
|
||||||
def _read_group_fill_temporal(self, data: Any, groupby: Any, aggregated_fields: Any, annotated_groupbys: Any, interval: Any = ...): ...
|
def _read_group_fill_temporal(self, data, groupby, aggregated_fields, annotated_groupbys, interval: Any = ...): ...
|
||||||
def _read_group_prepare(self, orderby: Any, aggregated_fields: Any, annotated_groupbys: Any, query: Any): ...
|
def _read_group_prepare(self, orderby, aggregated_fields, annotated_groupbys, query): ...
|
||||||
def _read_group_process_groupby(self, gb: Any, query: Any): ...
|
def _read_group_process_groupby(self, gb, query): ...
|
||||||
def _read_group_prepare_data(self, key: Any, value: Any, groupby_dict: Any): ...
|
def _read_group_prepare_data(self, key, value, groupby_dict): ...
|
||||||
def _read_group_format_result(self, data: Any, annotated_groupbys: Any, groupby: Any, domain: Any): ...
|
def _read_group_format_result(self, data, annotated_groupbys, groupby, domain): ...
|
||||||
def read_group(self, domain: Any, fields: Any, groupby: Any, offset: int = ..., limit: Optional[Any] = ..., orderby: bool = ..., lazy: bool = ...): ...
|
def read_group(self, domain, fields, groupby, offset: int = ..., limit: Optional[Any] = ..., orderby: bool = ..., lazy: bool = ...): ...
|
||||||
def _read_group_raw(self, domain: Any, fields: Any, groupby: Any, offset: int = ..., limit: Optional[Any] = ..., orderby: bool = ..., lazy: bool = ...): ...
|
def _read_group_raw(self, domain, fields, groupby, offset: int = ..., limit: Optional[Any] = ..., orderby: bool = ..., lazy: bool = ...): ...
|
||||||
def _read_group_resolve_many2one_fields(self, data: Any, fields: Any) -> None: ...
|
def _read_group_resolve_many2one_fields(self, data, fields) -> None: ...
|
||||||
def _inherits_join_add(self, current_model: Any, parent_model_name: Any, query: Any): ...
|
def _inherits_join_add(self, current_model, parent_model_name, query): ...
|
||||||
def _inherits_join_calc(self, alias: Any, fname: Any, query: Any, implicit: bool = ..., outer: bool = ...): ...
|
def _inherits_join_calc(self, alias, fname, query, implicit: bool = ..., outer: bool = ...): ...
|
||||||
def _parent_store_compute(self): ...
|
def _parent_store_compute(self): ...
|
||||||
def _check_removed_columns(self, log: bool = ...) -> None: ...
|
def _check_removed_columns(self, log: bool = ...) -> None: ...
|
||||||
def _init_column(self, column_name: Any) -> None: ...
|
def _init_column(self, column_name) -> None: ...
|
||||||
def _table_has_rows(self): ...
|
def _table_has_rows(self): ...
|
||||||
def _auto_init(self) -> None: ...
|
def _auto_init(self) -> None: ...
|
||||||
def init(self) -> None: ...
|
def init(self) -> None: ...
|
||||||
@@ -173,154 +173,154 @@ class BaseModel(MetaModel('DummyModel', (object,), {'_register': False})):
|
|||||||
def _setup_fields(self) -> None: ...
|
def _setup_fields(self) -> None: ...
|
||||||
def _setup_complete(self) -> None: ...
|
def _setup_complete(self) -> None: ...
|
||||||
def fields_get(self, allfields: Optional[Any] = ..., attributes: Optional[Any] = ...): ...
|
def fields_get(self, allfields: Optional[Any] = ..., attributes: Optional[Any] = ...): ...
|
||||||
def get_empty_list_help(self, help: Any): ...
|
def get_empty_list_help(self, help): ...
|
||||||
def check_field_access_rights(self, operation: Any, fields: Any): ...
|
def check_field_access_rights(self, operation, fields): ...
|
||||||
def read(self, fields: Optional[list[str]] = ..., load: str = ...) -> list[dict[str, Any]]: ...
|
def read(self, fields: Optional[list[str]] = ..., load: str = ...) -> list[dict[str, Any]]: ...
|
||||||
def _prefetch_field(self, field: Any) -> None: ...
|
def _prefetch_field(self, field) -> None: ...
|
||||||
def _read_from_database(self, field_names: Any, inherited_field_names: Any = ...): ...
|
def _read_from_database(self, field_names, inherited_field_names: Any = ...): ...
|
||||||
def get_metadata(self): ...
|
def get_metadata(self): ...
|
||||||
def _check_concurrency(self) -> None: ...
|
def _check_concurrency(self) -> None: ...
|
||||||
def check_access_rights(self, operation: Any, raise_exception: bool = ...): ...
|
def check_access_rights(self, operation, raise_exception: bool = ...): ...
|
||||||
def check_access_rule(self, operation: Any) -> None: ...
|
def check_access_rule(self, operation) -> None: ...
|
||||||
def _filter_access_rules(self, operation: Any): ...
|
def _filter_access_rules(self, operation): ...
|
||||||
def unlink(self): ...
|
def unlink(self): ...
|
||||||
def write(self, vals: dict[str, Any]): ...
|
def write(self, vals: dict[str, Any]): ...
|
||||||
def _write(self, vals: dict[str, Any]): ...
|
def _write(self, vals: dict[str, Any]): ...
|
||||||
def create(self: _M, vals_list: list[dict[str, Any]] | dict[str, Any]) -> _M: ...
|
def create(self: _ModelT, vals_list: list[dict[str, Any]] | dict[str, Any]) -> _ModelT: ...
|
||||||
def _create(self: _M, data_list: list[dict[str, Any]]) -> _M: ...
|
def _create(self: _ModelT, data_list: list[dict[str, Any]]) -> _ModelT: ...
|
||||||
def _parent_store_create(self) -> None: ...
|
def _parent_store_create(self) -> None: ...
|
||||||
def _parent_store_update_prepare(self, vals: Any): ...
|
def _parent_store_update_prepare(self, vals): ...
|
||||||
def _parent_store_update(self) -> None: ...
|
def _parent_store_update(self) -> None: ...
|
||||||
def _load_records_write(self, values: Any) -> None: ...
|
def _load_records_write(self, values) -> None: ...
|
||||||
def _load_records_create(self, values: Any): ...
|
def _load_records_create(self, values): ...
|
||||||
def _load_records(self, data_list: Any, update: bool = ...): ...
|
def _load_records(self, data_list, update: bool = ...): ...
|
||||||
def _where_calc(self, domain: Any, active_test: bool = ...): ...
|
def _where_calc(self, domain, active_test: bool = ...): ...
|
||||||
def _check_qorder(self, word: Any): ...
|
def _check_qorder(self, word): ...
|
||||||
def _apply_ir_rules(self, query: Any, mode: str = ...) -> None: ...
|
def _apply_ir_rules(self, query, mode: str = ...) -> None: ...
|
||||||
def _generate_translated_field(self, table_alias: Any, field: Any, query: Any): ...
|
def _generate_translated_field(self, table_alias, field, query): ...
|
||||||
def _generate_m2o_order_by(self, alias: Any, order_field: Any, query: Any, reverse_direction: Any, seen: Any): ...
|
def _generate_m2o_order_by(self, alias, order_field, query, reverse_direction, seen): ...
|
||||||
def _generate_order_by_inner(self, alias: Any, order_spec: Any, query: Any, reverse_direction: bool = ..., seen: Optional[Any] = ...): ...
|
def _generate_order_by_inner(self, alias, order_spec, query, reverse_direction: bool = ..., seen: Optional[Any] = ...): ...
|
||||||
def _generate_order_by(self, order_spec: Any, query: Any): ...
|
def _generate_order_by(self, order_spec, query): ...
|
||||||
def _search(self, args: Any, offset: int = ..., limit: Optional[Any] = ..., order: Optional[Any] = ..., count: bool = ..., access_rights_uid: Optional[Any] = ...): ...
|
def _search(self, args, offset: int = ..., limit: Optional[Any] = ..., order: Optional[Any] = ..., count: bool = ..., access_rights_uid: Optional[Any] = ...): ...
|
||||||
def copy_data(self, default: Optional[Any] = ...): ...
|
def copy_data(self, default: Optional[Any] = ...): ...
|
||||||
def copy_translations(old: Any, new: Any, excluded: Any = ...): ...
|
def copy_translations(old, new, excluded: Any = ...): ...
|
||||||
def copy(self: _M, default: Optional[Any] = ...) -> _M: ...
|
def copy(self: _ModelT, default: Optional[Any] = ...) -> _ModelT: ...
|
||||||
def exists(self: _M) -> _M: ...
|
def exists(self: _ModelT) -> _ModelT: ...
|
||||||
def _check_recursion(self, parent: Optional[Any] = ...): ...
|
def _check_recursion(self, parent: Optional[Any] = ...): ...
|
||||||
def _check_m2m_recursion(self, field_name: Any): ...
|
def _check_m2m_recursion(self, field_name): ...
|
||||||
def _get_external_ids(self): ...
|
def _get_external_ids(self): ...
|
||||||
def get_external_id(self): ...
|
def get_external_id(self): ...
|
||||||
get_xml_id: Any = ...
|
get_xml_id: Any
|
||||||
_get_xml_ids: Any = ...
|
_get_xml_ids: Any
|
||||||
@classmethod
|
@classmethod
|
||||||
def is_transient(cls): ...
|
def is_transient(cls): ...
|
||||||
def _transient_clean_rows_older_than(self, seconds: Any) -> None: ...
|
def _transient_clean_rows_older_than(self, seconds) -> None: ...
|
||||||
def _transient_clean_old_rows(self, max_count: Any) -> None: ...
|
def _transient_clean_old_rows(self, max_count) -> None: ...
|
||||||
def _transient_vacuum(self, force: bool = ...): ...
|
def _transient_vacuum(self, force: bool = ...): ...
|
||||||
def resolve_2many_commands(self, field_name: Any, commands: Any, fields: Optional[Any] = ...): ...
|
def resolve_2many_commands(self, field_name, commands, fields: Optional[Any] = ...): ...
|
||||||
resolve_o2m_commands_to_record_dicts: Any = ...
|
resolve_o2m_commands_to_record_dicts: Any
|
||||||
def search_read(self, domain: Optional[Any] = ..., fields: Optional[Any] = ..., offset: int = ..., limit: Optional[Any] = ..., order: Optional[Any] = ...): ...
|
def search_read(self, domain: Optional[Any] = ..., fields: Optional[Any] = ..., offset: int = ..., limit: Optional[Any] = ..., order: Optional[Any] = ...): ...
|
||||||
def toggle_active(self) -> None: ...
|
def toggle_active(self) -> None: ...
|
||||||
def _register_hook(self) -> None: ...
|
def _register_hook(self) -> None: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def _patch_method(cls, name: Any, method: Any) -> None: ...
|
def _patch_method(cls, name, method) -> None: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def _revert_method(cls, name: Any) -> None: ...
|
def _revert_method(cls, name) -> None: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def _browse(cls, ids: Any, env: Any, prefetch: Optional[Any] = ..., add_prefetch: bool = ...): ...
|
def _browse(cls, ids, env, prefetch: Optional[Any] = ..., add_prefetch: bool = ...): ...
|
||||||
def browse(self: _M, arg: Optional[Any] = ..., prefetch: Optional[Any] = ...) -> _M: ...
|
def browse(self: _ModelT, arg: Optional[Any] = ..., prefetch: Optional[Any] = ...) -> _ModelT: ...
|
||||||
@property
|
@property
|
||||||
def ids(self) -> List[int]: ...
|
def ids(self) -> List[int]: ...
|
||||||
_cr: Cursor
|
_cr: Cursor
|
||||||
_uid: int
|
_uid: int
|
||||||
_context: dict
|
_context: dict
|
||||||
def ensure_one(self): ...
|
def ensure_one(self): ...
|
||||||
def with_env(self: _M, env: Any) -> _M: ...
|
def with_env(self: _ModelT, env) -> _ModelT: ...
|
||||||
def sudo(self: _M, user: Any = ...) -> _M: ...
|
def sudo(self: _ModelT, user: Any = ...) -> _ModelT: ...
|
||||||
def with_context(self: _M, *args: Any, **kwargs: Any) -> _M: ...
|
def with_context(self: _ModelT, *args, **kwargs) -> _ModelT: ...
|
||||||
def with_prefetch(self: _M, prefetch: Optional[Any] = ...) -> _M: ...
|
def with_prefetch(self: _ModelT, prefetch: Optional[Any] = ...) -> _ModelT: ...
|
||||||
def _convert_to_cache(self, values: Any, update: bool = ..., validate: bool = ...): ...
|
def _convert_to_cache(self, values, update: bool = ..., validate: bool = ...): ...
|
||||||
def _convert_to_record(self, values: Any): ...
|
def _convert_to_record(self, values): ...
|
||||||
def _convert_to_write(self, values: dict[str, Any]) -> dict[str, Any]: ...
|
def _convert_to_write(self, values: dict[str, Any]) -> dict[str, Any]: ...
|
||||||
def _mapped_func(self, func: Any): ...
|
def _mapped_func(self, func): ...
|
||||||
def mapped(self, func: Any): ...
|
def mapped(self, func): ...
|
||||||
def _mapped_cache(self, name_seq: Any): ...
|
def _mapped_cache(self, name_seq): ...
|
||||||
def filtered(self: _M, func: Any) -> _M: ...
|
def filtered(self: _ModelT, func) -> _ModelT: ...
|
||||||
def sorted(self: _M, key: Optional[Any] = ..., reverse: bool = ...) -> _M: ...
|
def sorted(self: _ModelT, key: Optional[Any] = ..., reverse: bool = ...) -> _ModelT: ...
|
||||||
def update(self, values: Any) -> None: ...
|
def update(self, values) -> None: ...
|
||||||
def new(self: _M, values: Any = ..., ref: Optional[Any] = ...) -> _M: ...
|
def new(self: _ModelT, values=..., ref: Optional[Any] = ...) -> _ModelT: ...
|
||||||
def _is_dirty(self): ...
|
def _is_dirty(self): ...
|
||||||
def _get_dirty(self): ...
|
def _get_dirty(self): ...
|
||||||
def _set_dirty(self, field_name: Any) -> None: ...
|
def _set_dirty(self, field_name) -> None: ...
|
||||||
def __bool__(self) -> bool: ...
|
def __bool__(self) -> bool: ...
|
||||||
__nonzero__: Any = ...
|
__nonzero__: Any
|
||||||
def __len__(self) -> int: ...
|
def __len__(self) -> int: ...
|
||||||
def __iter__(self: _M) -> Generator[_M]: ...
|
def __iter__(self: _ModelT) -> Generator[_ModelT]: ...
|
||||||
def __contains__(self, item: Any) -> bool: ...
|
def __contains__(self, item) -> bool: ...
|
||||||
def __add__(self: _M, other: Any) -> _M: ...
|
def __add__(self: _ModelT, other) -> _ModelT: ...
|
||||||
def concat(self: _M, *args: Any) -> _M: ...
|
def concat(self: _ModelT, *args) -> _ModelT: ...
|
||||||
def __sub__(self: _M, other: Any) -> _M: ...
|
def __sub__(self: _ModelT, other) -> _ModelT: ...
|
||||||
def __and__(self: _M, other: Any) -> _M: ...
|
def __and__(self: _ModelT, other) -> _ModelT: ...
|
||||||
def __or__(self: _M, other: Any) -> _M: ...
|
def __or__(self: _ModelT, other) -> _ModelT: ...
|
||||||
def union(self: _M, *args: Any) -> _M: ...
|
def union(self: _ModelT, *args) -> _ModelT: ...
|
||||||
def __eq__(self, other: Any) -> bool: ...
|
def __eq__(self, other) -> bool: ...
|
||||||
def __lt__(self, other: Any) -> bool: ...
|
def __lt__(self, other) -> bool: ...
|
||||||
def __le__(self, other: Any) -> bool: ...
|
def __le__(self, other) -> bool: ...
|
||||||
def __gt__(self, other: Any) -> bool: ...
|
def __gt__(self, other) -> bool: ...
|
||||||
def __ge__(self, other: Any) -> bool: ...
|
def __ge__(self, other) -> bool: ...
|
||||||
def __int__(self): ...
|
def __int__(self): ...
|
||||||
def __str__(self): ...
|
def __str__(self): ...
|
||||||
def __repr__(self): ...
|
def __repr__(self): ...
|
||||||
def __hash__(self) -> Any: ...
|
def __hash__(self) -> Any: ...
|
||||||
def __getitem__(self, key: Any): ...
|
def __getitem__(self, key): ...
|
||||||
def __setitem__(self, key: Any, value: Any): ...
|
def __setitem__(self, key, value): ...
|
||||||
def _cache(self): ...
|
def _cache(self): ...
|
||||||
def _in_cache_without(self, field: Any, limit: Any = ...): ...
|
def _in_cache_without(self, field, limit: Any = ...): ...
|
||||||
def refresh(self) -> None: ...
|
def refresh(self) -> None: ...
|
||||||
def invalidate_cache(self, fnames: Optional[Any] = ..., ids: Optional[Any] = ...): ...
|
def invalidate_cache(self, fnames: Optional[Any] = ..., ids: Optional[Any] = ...): ...
|
||||||
def modified(self, fnames: Any) -> None: ...
|
def modified(self, fnames) -> None: ...
|
||||||
def _recompute_check(self, field: Any): ...
|
def _recompute_check(self, field): ...
|
||||||
def _recompute_todo(self, field: Any) -> None: ...
|
def _recompute_todo(self, field) -> None: ...
|
||||||
def _recompute_done(self, field: Any) -> None: ...
|
def _recompute_done(self, field) -> None: ...
|
||||||
def recompute(self) -> None: ...
|
def recompute(self) -> None: ...
|
||||||
def _has_onchange(self, field: Any, other_fields: Any): ...
|
def _has_onchange(self, field, other_fields): ...
|
||||||
def _onchange_spec(self, view_info: Optional[Any] = ...): ...
|
def _onchange_spec(self, view_info: Optional[Any] = ...): ...
|
||||||
def _onchange_eval(self, field_name: Any, onchange: Any, result: Any) -> None: ...
|
def _onchange_eval(self, field_name, onchange, result) -> None: ...
|
||||||
def onchange(self, values: Any, field_name: Any, field_onchange: Any): ...
|
def onchange(self, values, field_name, field_onchange): ...
|
||||||
|
|
||||||
class RecordCache(MutableMapping):
|
class RecordCache(MutableMapping):
|
||||||
_record: Any = ...
|
_record: Any
|
||||||
def __init__(self, record: Any) -> None: ...
|
def __init__(self, record) -> None: ...
|
||||||
def __contains__(self, name: Any): ...
|
def __contains__(self, name): ...
|
||||||
def __getitem__(self, name: Any): ...
|
def __getitem__(self, name): ...
|
||||||
def __setitem__(self, name: Any, value: Any) -> None: ...
|
def __setitem__(self, name, value) -> None: ...
|
||||||
def __delitem__(self, name: Any) -> None: ...
|
def __delitem__(self, name) -> None: ...
|
||||||
def __iter__(self) -> Any: ...
|
def __iter__(self) -> Any: ...
|
||||||
def __len__(self): ...
|
def __len__(self): ...
|
||||||
def has_value(self, name: Any): ...
|
def has_value(self, name): ...
|
||||||
def get_value(self, name: Any, default: Optional[Any] = ...): ...
|
def get_value(self, name, default: Optional[Any] = ...): ...
|
||||||
def set_special(self, name: Any, getter: Any) -> None: ...
|
def set_special(self, name, getter) -> None: ...
|
||||||
def set_failed(self, names: Any, exception: Any) -> None: ...
|
def set_failed(self, names, exception) -> None: ...
|
||||||
AbstractModel = BaseModel
|
AbstractModel = BaseModel
|
||||||
|
|
||||||
class Model(AbstractModel):
|
class Model(AbstractModel):
|
||||||
_auto: bool = ...
|
_auto: bool
|
||||||
_register: bool = ...
|
_register: bool
|
||||||
_abstract: bool = ...
|
_abstract: bool
|
||||||
_transient: bool = ...
|
_transient: bool
|
||||||
|
|
||||||
class TransientModel(Model):
|
class TransientModel(Model):
|
||||||
_auto: bool = ...
|
_auto: bool
|
||||||
_register: bool = ...
|
_register: bool
|
||||||
_abstract: bool = ...
|
_abstract: bool
|
||||||
_transient: bool = ...
|
_transient: bool
|
||||||
|
|
||||||
def itemgetter_tuple(items: Any): ...
|
def itemgetter_tuple(items): ...
|
||||||
def convert_pgerror_not_null(model: Any, fields: Any, info: Any, e: Any): ...
|
def convert_pgerror_not_null(model, fields, info, e): ...
|
||||||
def convert_pgerror_unique(model: Any, fields: Any, info: Any, e: Any): ...
|
def convert_pgerror_unique(model, fields, info, e): ...
|
||||||
def _get_translated_field_name(model: Any, field_name: Any): ...
|
def _get_translated_field_name(model, field_name): ...
|
||||||
|
|
||||||
PGERROR_TO_OE: Any
|
PGERROR_TO_OE: Any
|
||||||
|
|
||||||
def _normalize_ids(arg: Any, atoms: Any = ...): ...
|
def _normalize_ids(arg, atoms: Any = ...): ...
|
||||||
def lazy_name_get(self): ...
|
def lazy_name_get(self): ...
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ from typing import Any
|
|||||||
|
|
||||||
_logger: Any
|
_logger: Any
|
||||||
|
|
||||||
def is_initialized(cr: Any): ...
|
def is_initialized(cr): ...
|
||||||
def initialize(cr: Any) -> None: ...
|
def initialize(cr) -> None: ...
|
||||||
def create_categories(cr: Any, categories: Any): ...
|
def create_categories(cr, categories): ...
|
||||||
def has_unaccent(cr: Any): ...
|
def has_unaccent(cr): ...
|
||||||
|
|||||||
@@ -3,25 +3,25 @@ from typing import Any, Optional
|
|||||||
_logger: Any
|
_logger: Any
|
||||||
|
|
||||||
class Graph(dict):
|
class Graph(dict):
|
||||||
def add_node(self, name: Any, info: Any): ...
|
def add_node(self, name, info): ...
|
||||||
def update_from_db(self, cr: Any) -> None: ...
|
def update_from_db(self, cr) -> None: ...
|
||||||
def add_module(self, cr: Any, module: Any, force: Optional[Any] = ...) -> None: ...
|
def add_module(self, cr, module, force: Optional[Any] = ...) -> None: ...
|
||||||
def add_modules(self, cr: Any, module_list: Any, force: Optional[Any] = ...): ...
|
def add_modules(self, cr, module_list, force: Optional[Any] = ...): ...
|
||||||
def __iter__(self) -> Any: ...
|
def __iter__(self) -> Any: ...
|
||||||
def __str__(self): ...
|
def __str__(self): ...
|
||||||
|
|
||||||
class Node:
|
class Node:
|
||||||
def __new__(cls, name: Any, graph: Any, info: Any): ...
|
def __new__(cls, name, graph, info): ...
|
||||||
name: Any = ...
|
name: Any
|
||||||
graph: Any = ...
|
graph: Any
|
||||||
info: Any = ...
|
info: Any
|
||||||
children: Any = ...
|
children: Any
|
||||||
depth: int = ...
|
depth: int
|
||||||
def __init__(self, name: Any, graph: Any, info: Any) -> None: ...
|
def __init__(self, name, graph, info) -> None: ...
|
||||||
@property
|
@property
|
||||||
def data(self): ...
|
def data(self): ...
|
||||||
def add_child(self, name: Any, info: Any): ...
|
def add_child(self, name, info): ...
|
||||||
def __setattr__(self, name: Any, value: Any) -> None: ...
|
def __setattr__(self, name, value) -> None: ...
|
||||||
def __iter__(self) -> Any: ...
|
def __iter__(self) -> Any: ...
|
||||||
def __str__(self): ...
|
def __str__(self): ...
|
||||||
def _pprint(self, depth: int = ...): ...
|
def _pprint(self, depth: int = ...): ...
|
||||||
|
|||||||
@@ -3,11 +3,11 @@ from typing import Any, Optional
|
|||||||
_logger: Any
|
_logger: Any
|
||||||
_test_logger: Any
|
_test_logger: Any
|
||||||
|
|
||||||
def load_data(cr: Any, idref: Any, mode: Any, kind: Any, package: Any, report: Any): ...
|
def load_data(cr, idref, mode, kind, package, report): ...
|
||||||
def load_demo(cr: Any, package: Any, idref: Any, mode: Any, report: Optional[Any] = ...): ...
|
def load_demo(cr, package, idref, mode, report: Optional[Any] = ...): ...
|
||||||
def force_demo(cr: Any) -> None: ...
|
def force_demo(cr) -> None: ...
|
||||||
def load_module_graph(cr: Any, graph: Any, status: Optional[Any] = ..., perform_checks: bool = ..., skip_modules: Optional[Any] = ..., report: Optional[Any] = ..., models_to_check: Optional[Any] = ...): ...
|
def load_module_graph(cr, graph, status: Optional[Any] = ..., perform_checks: bool = ..., skip_modules: Optional[Any] = ..., report: Optional[Any] = ..., models_to_check: Optional[Any] = ...): ...
|
||||||
def _check_module_names(cr: Any, module_names: Any) -> None: ...
|
def _check_module_names(cr, module_names) -> None: ...
|
||||||
def load_marked_modules(cr: Any, graph: Any, states: Any, force: Any, progressdict: Any, report: Any, loaded_modules: Any, perform_checks: Any, models_to_check: Optional[Any] = ...): ...
|
def load_marked_modules(cr, graph, states, force, progressdict, report, loaded_modules, perform_checks, models_to_check: Optional[Any] = ...): ...
|
||||||
def load_modules(db: Any, force_demo: bool = ..., status: Optional[Any] = ..., update_module: bool = ...): ...
|
def load_modules(db, force_demo: bool = ..., status: Optional[Any] = ..., update_module: bool = ...): ...
|
||||||
def reset_modules_state(db_name: Any) -> None: ...
|
def reset_modules_state(db_name) -> None: ...
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
def load_script(path: Any, module_name: Any): ...
|
def load_script(path, module_name): ...
|
||||||
|
|
||||||
_logger: Any
|
_logger: Any
|
||||||
|
|
||||||
class MigrationManager:
|
class MigrationManager:
|
||||||
cr: Any = ...
|
cr: Any
|
||||||
graph: Any = ...
|
graph: Any
|
||||||
migrations: Any = ...
|
migrations: Any
|
||||||
def __init__(self, cr: Any, graph: Any) -> None: ...
|
def __init__(self, cr, graph) -> None: ...
|
||||||
def _get_files(self): ...
|
def _get_files(self): ...
|
||||||
def migrate_module(self, pkg: Any, stage: Any): ...
|
def migrate_module(self, pkg, stage): ...
|
||||||
|
|||||||
@@ -10,39 +10,39 @@ hooked: bool
|
|||||||
loaded: Any
|
loaded: Any
|
||||||
|
|
||||||
class AddonsHook:
|
class AddonsHook:
|
||||||
def find_module(self, name: Any, path: Optional[Any] = ...): ...
|
def find_module(self, name, path: Optional[Any] = ...): ...
|
||||||
def load_module(self, name: Any): ...
|
def load_module(self, name): ...
|
||||||
|
|
||||||
class OdooHook:
|
class OdooHook:
|
||||||
def find_module(self, name: Any, path: Optional[Any] = ...): ...
|
def find_module(self, name, path: Optional[Any] = ...): ...
|
||||||
def load_module(self, name: Any): ...
|
def load_module(self, name): ...
|
||||||
|
|
||||||
def initialize_sys_path() -> None: ...
|
def initialize_sys_path() -> None: ...
|
||||||
def get_module_path(module: Any, downloaded: bool = ..., display_warning: bool = ...): ...
|
def get_module_path(module, downloaded: bool = ..., display_warning: bool = ...): ...
|
||||||
def get_module_filetree(module: Any, dir: str = ...): ...
|
def get_module_filetree(module, dir: str = ...): ...
|
||||||
def get_resource_path(module: Any, *args: Any): ...
|
def get_resource_path(module, *args): ...
|
||||||
get_module_resource = get_resource_path
|
get_module_resource = get_resource_path
|
||||||
|
|
||||||
def get_resource_from_path(path: Any): ...
|
def get_resource_from_path(path): ...
|
||||||
def get_module_icon(module: Any): ...
|
def get_module_icon(module): ...
|
||||||
def module_manifest(path: Any): ...
|
def module_manifest(path): ...
|
||||||
def get_module_root(path: Any): ...
|
def get_module_root(path): ...
|
||||||
def load_information_from_description_file(module: Any, mod_path: Optional[Any] = ...): ...
|
def load_information_from_description_file(module, mod_path: Optional[Any] = ...): ...
|
||||||
def load_openerp_module(module_name: Any) -> None: ...
|
def load_openerp_module(module_name) -> None: ...
|
||||||
def get_modules(): ...
|
def get_modules(): ...
|
||||||
def get_modules_with_version(): ...
|
def get_modules_with_version(): ...
|
||||||
def adapt_version(version: Any): ...
|
def adapt_version(version): ...
|
||||||
def get_test_modules(module: Any): ...
|
def get_test_modules(module): ...
|
||||||
def _get_tests_modules(path: Any, module: Any): ...
|
def _get_tests_modules(path, module): ...
|
||||||
|
|
||||||
class TestStream:
|
class TestStream:
|
||||||
logger: Any = ...
|
logger: Any
|
||||||
r: Any = ...
|
r: Any
|
||||||
def __init__(self, logger_name: str = ...) -> None: ...
|
def __init__(self, logger_name: str = ...) -> None: ...
|
||||||
def flush(self) -> None: ...
|
def flush(self) -> None: ...
|
||||||
def write(self, s: Any) -> None: ...
|
def write(self, s) -> None: ...
|
||||||
|
|
||||||
current_test: Any
|
current_test: Any
|
||||||
|
|
||||||
def run_unit_tests(module_name: Any, dbname: Any, position: str = ...): ...
|
def run_unit_tests(module_name, dbname, position: str = ...): ...
|
||||||
def unwrap_suite(test: Any) -> None: ...
|
def unwrap_suite(test) -> None: ...
|
||||||
|
|||||||
@@ -8,51 +8,51 @@ from ..sql_db import Cursor
|
|||||||
_logger: Any
|
_logger: Any
|
||||||
|
|
||||||
class Registry(Mapping):
|
class Registry(Mapping):
|
||||||
_lock: Any = ...
|
_lock: Any
|
||||||
_saved_lock: Any = ...
|
_saved_lock: Any
|
||||||
model_cache: Any = ...
|
model_cache: Any
|
||||||
def registries(cls): ...
|
def registries(cls): ...
|
||||||
def __new__(cls, db_name: Any): ...
|
def __new__(cls, db_name): ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def new(cls, db_name: Any, force_demo: bool = ..., status: Optional[Any] = ..., update_module: bool = ...): ...
|
def new(cls, db_name, force_demo: bool = ..., status: Optional[Any] = ..., update_module: bool = ...): ...
|
||||||
models: Any = ...
|
models: Any
|
||||||
_sql_error: Any = ...
|
_sql_error: Any
|
||||||
_init: bool = ...
|
_init: bool
|
||||||
_assertion_report: Any = ...
|
_assertion_report: Any
|
||||||
_fields_by_model: Any = ...
|
_fields_by_model: Any
|
||||||
_post_init_queue: Any = ...
|
_post_init_queue: Any
|
||||||
_init_modules: Any = ...
|
_init_modules: Any
|
||||||
updated_modules: Any = ...
|
updated_modules: Any
|
||||||
loaded_xmlids: Any = ...
|
loaded_xmlids: Any
|
||||||
db_name: Any = ...
|
db_name: Any
|
||||||
_db: Any = ...
|
_db: Any
|
||||||
test_cr: Any = ...
|
test_cr: Any
|
||||||
test_lock: Any = ...
|
test_lock: Any
|
||||||
loaded: bool = ...
|
loaded: bool
|
||||||
ready: bool = ...
|
ready: bool
|
||||||
registry_sequence: Any = ...
|
registry_sequence: Any
|
||||||
cache_sequence: Any = ...
|
cache_sequence: Any
|
||||||
registry_invalidated: bool = ...
|
registry_invalidated: bool
|
||||||
cache_invalidated: bool = ...
|
cache_invalidated: bool
|
||||||
has_unaccent: Any = ...
|
has_unaccent: Any
|
||||||
def init(self, db_name: Any) -> None: ...
|
def init(self, db_name) -> None: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def delete(cls, db_name: Any) -> None: ...
|
def delete(cls, db_name) -> None: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def delete_all(cls) -> None: ...
|
def delete_all(cls) -> None: ...
|
||||||
def __len__(self): ...
|
def __len__(self): ...
|
||||||
def __iter__(self) -> Any: ...
|
def __iter__(self) -> Any: ...
|
||||||
def __getitem__(self, model_name: Any): ...
|
def __getitem__(self, model_name): ...
|
||||||
def __call__(self, model_name: Any): ...
|
def __call__(self, model_name): ...
|
||||||
def __setitem__(self, model_name: Any, model: Any) -> None: ...
|
def __setitem__(self, model_name, model) -> None: ...
|
||||||
def field_sequence(self): ...
|
def field_sequence(self): ...
|
||||||
def descendants(self, model_names: Any, *kinds: Any): ...
|
def descendants(self, model_names, *kinds): ...
|
||||||
def load(self, cr: Any, module: Any): ...
|
def load(self, cr, module): ...
|
||||||
_m2m: Any = ...
|
_m2m: Any
|
||||||
def setup_models(self, cr: Any) -> None: ...
|
def setup_models(self, cr) -> None: ...
|
||||||
def post_init(self, func: Any, *args: Any, **kwargs: Any) -> None: ...
|
def post_init(self, func, *args, **kwargs) -> None: ...
|
||||||
def init_models(self, cr: Any, model_names: Any, context: Any) -> None: ...
|
def init_models(self, cr, model_names, context) -> None: ...
|
||||||
def check_tables_exist(self, cr: Any) -> None: ...
|
def check_tables_exist(self, cr) -> None: ...
|
||||||
def cache(self): ...
|
def cache(self): ...
|
||||||
def _clear_cache(self) -> None: ...
|
def _clear_cache(self) -> None: ...
|
||||||
def clear_caches(self) -> None: ...
|
def clear_caches(self) -> None: ...
|
||||||
@@ -62,7 +62,7 @@ class Registry(Mapping):
|
|||||||
def reset_changes(self) -> None: ...
|
def reset_changes(self) -> None: ...
|
||||||
def manage_changes(self) -> None: ...
|
def manage_changes(self) -> None: ...
|
||||||
def in_test_mode(self): ...
|
def in_test_mode(self): ...
|
||||||
def enter_test_mode(self, cr: Any) -> None: ...
|
def enter_test_mode(self, cr) -> None: ...
|
||||||
def leave_test_mode(self) -> None: ...
|
def leave_test_mode(self) -> None: ...
|
||||||
def cursor(self) -> Cursor: ...
|
def cursor(self) -> Cursor: ...
|
||||||
|
|
||||||
@@ -70,4 +70,4 @@ class DummyRLock:
|
|||||||
def acquire(self) -> None: ...
|
def acquire(self) -> None: ...
|
||||||
def release(self) -> None: ...
|
def release(self) -> None: ...
|
||||||
def __enter__(self) -> None: ...
|
def __enter__(self) -> None: ...
|
||||||
def __exit__(self, type: Any, value: Any, traceback: Any) -> None: ...
|
def __exit__(self, type, value, traceback) -> None: ...
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ from typing import Any, Optional
|
|||||||
|
|
||||||
_logger: Any
|
_logger: Any
|
||||||
|
|
||||||
def log(logger: Any, level: Any, prefix: Any, msg: Any, depth: Optional[Any] = ...) -> None: ...
|
def log(logger, level, prefix, msg, depth: Optional[Any] = ...) -> None: ...
|
||||||
|
|
||||||
class PostgreSQLHandler(logging.Handler):
|
class PostgreSQLHandler(logging.Handler):
|
||||||
def emit(self, record: Any) -> None: ...
|
def emit(self, record) -> None: ...
|
||||||
|
|
||||||
BLACK: Any
|
BLACK: Any
|
||||||
RED: Any
|
RED: Any
|
||||||
@@ -25,17 +25,17 @@ COLOR_PATTERN: Any
|
|||||||
LEVEL_COLOR_MAPPING: Any
|
LEVEL_COLOR_MAPPING: Any
|
||||||
|
|
||||||
class PerfFilter(logging.Filter):
|
class PerfFilter(logging.Filter):
|
||||||
def format_perf(self, query_count: Any, query_time: Any, remaining_time: Any): ...
|
def format_perf(self, query_count, query_time, remaining_time): ...
|
||||||
def filter(self, record: Any): ...
|
def filter(self, record): ...
|
||||||
|
|
||||||
class ColoredPerfFilter(PerfFilter):
|
class ColoredPerfFilter(PerfFilter):
|
||||||
def format_perf(self, query_count: Any, query_time: Any, remaining_time: Any): ...
|
def format_perf(self, query_count, query_time, remaining_time): ...
|
||||||
|
|
||||||
class DBFormatter(logging.Formatter):
|
class DBFormatter(logging.Formatter):
|
||||||
def format(self, record: Any): ...
|
def format(self, record): ...
|
||||||
|
|
||||||
class ColoredFormatter(DBFormatter):
|
class ColoredFormatter(DBFormatter):
|
||||||
def format(self, record: Any): ...
|
def format(self, record): ...
|
||||||
|
|
||||||
_logger_init: bool
|
_logger_init: bool
|
||||||
|
|
||||||
|
|||||||
@@ -16,31 +16,31 @@ TRUE_DOMAIN: Any
|
|||||||
FALSE_DOMAIN: Any
|
FALSE_DOMAIN: Any
|
||||||
_logger: Any
|
_logger: Any
|
||||||
|
|
||||||
def normalize_domain(domain: Any): ...
|
def normalize_domain(domain): ...
|
||||||
def is_false(model: Any, domain: Any): ...
|
def is_false(model, domain): ...
|
||||||
def combine(operator: Any, unit: Any, zero: Any, domains: Any): ...
|
def combine(operator, unit, zero, domains): ...
|
||||||
def AND(domains: Any): ...
|
def AND(domains): ...
|
||||||
def OR(domains: Any): ...
|
def OR(domains): ...
|
||||||
def distribute_not(domain: Any): ...
|
def distribute_not(domain): ...
|
||||||
def _quote(to_quote: Any): ...
|
def _quote(to_quote): ...
|
||||||
def generate_table_alias(src_table_alias: Any, joined_tables: Any = ...): ...
|
def generate_table_alias(src_table_alias, joined_tables: Any = ...): ...
|
||||||
def get_alias_from_query(from_query: Any): ...
|
def get_alias_from_query(from_query): ...
|
||||||
def normalize_leaf(element: Any): ...
|
def normalize_leaf(element): ...
|
||||||
def is_operator(element: Any): ...
|
def is_operator(element): ...
|
||||||
def is_leaf(element: Any, internal: bool = ...): ...
|
def is_leaf(element, internal: bool = ...): ...
|
||||||
def select_from_where(cr: Any, select_field: Any, from_table: Any, where_field: Any, where_ids: Any, where_operator: Any): ...
|
def select_from_where(cr, select_field, from_table, where_field, where_ids, where_operator): ...
|
||||||
def select_distinct_from_where_not_null(cr: Any, select_field: Any, from_table: Any): ...
|
def select_distinct_from_where_not_null(cr, select_field, from_table): ...
|
||||||
def get_unaccent_wrapper(cr: Any): ...
|
def get_unaccent_wrapper(cr): ...
|
||||||
|
|
||||||
class ExtendedLeaf:
|
class ExtendedLeaf:
|
||||||
join_context: Any = ...
|
join_context: Any
|
||||||
leaf: Any = ...
|
leaf: Any
|
||||||
model: Any = ...
|
model: Any
|
||||||
_models: Any = ...
|
_models: Any
|
||||||
def __init__(self, leaf: Any, model: Any, join_context: Optional[Any] = ..., internal: bool = ...) -> None: ...
|
def __init__(self, leaf, model, join_context: Optional[Any] = ..., internal: bool = ...) -> None: ...
|
||||||
def __str__(self): ...
|
def __str__(self): ...
|
||||||
def generate_alias(self): ...
|
def generate_alias(self): ...
|
||||||
def add_join_context(self, model: Any, lhs_col: Any, table_col: Any, link: Any) -> None: ...
|
def add_join_context(self, model, lhs_col, table_col, link) -> None: ...
|
||||||
def get_join_conditions(self): ...
|
def get_join_conditions(self): ...
|
||||||
def get_tables(self): ...
|
def get_tables(self): ...
|
||||||
def _get_context_debug(self): ...
|
def _get_context_debug(self): ...
|
||||||
@@ -51,17 +51,17 @@ class ExtendedLeaf:
|
|||||||
def is_leaf(self, internal: bool = ...): ...
|
def is_leaf(self, internal: bool = ...): ...
|
||||||
def normalize_leaf(self): ...
|
def normalize_leaf(self): ...
|
||||||
|
|
||||||
def create_substitution_leaf(leaf: Any, new_elements: Any, new_model: Optional[Any] = ..., internal: bool = ...): ...
|
def create_substitution_leaf(leaf, new_elements, new_model: Optional[Any] = ..., internal: bool = ...): ...
|
||||||
|
|
||||||
class expression:
|
class expression:
|
||||||
_unaccent: Any = ...
|
_unaccent: Any
|
||||||
joins: Any = ...
|
joins: Any
|
||||||
root_model: Any = ...
|
root_model: Any
|
||||||
expression: Any = ...
|
expression: Any
|
||||||
def __init__(self, domain: Any, model: Any) -> None: ...
|
def __init__(self, domain, model) -> None: ...
|
||||||
def get_tables(self): ...
|
def get_tables(self): ...
|
||||||
result: Any = ...
|
result: Any
|
||||||
stack: Any = ...
|
stack: Any
|
||||||
def parse(self): ...
|
def parse(self): ...
|
||||||
def __leaf_to_sql(self, eleaf: Any): ...
|
def __leaf_to_sql(self, eleaf): ...
|
||||||
def to_sql(self): ...
|
def to_sql(self): ...
|
||||||
|
|||||||
@@ -5,19 +5,19 @@ from typing import Any, Optional
|
|||||||
browse_record_list = BaseModel
|
browse_record_list = BaseModel
|
||||||
|
|
||||||
class BRM(type):
|
class BRM(type):
|
||||||
def __instancecheck__(self, inst: Any): ...
|
def __instancecheck__(self, inst): ...
|
||||||
|
|
||||||
browse_record: Any
|
browse_record: Any
|
||||||
|
|
||||||
class NBM(type):
|
class NBM(type):
|
||||||
def __instancecheck__(self, inst: Any): ...
|
def __instancecheck__(self, inst): ...
|
||||||
|
|
||||||
browse_null: Any
|
browse_null: Any
|
||||||
|
|
||||||
def transfer_field_to_modifiers(field: Any, modifiers: Any) -> None: ...
|
def transfer_field_to_modifiers(field, modifiers) -> None: ...
|
||||||
def transfer_node_to_modifiers(node: Any, modifiers: Any, context: Optional[Any] = ..., in_tree_view: bool = ...) -> None: ...
|
def transfer_node_to_modifiers(node, modifiers, context: Optional[Any] = ..., in_tree_view: bool = ...) -> None: ...
|
||||||
def simplify_modifiers(modifiers: Any) -> None: ...
|
def simplify_modifiers(modifiers) -> None: ...
|
||||||
def transfer_modifiers_to_node(modifiers: Any, node: Any) -> None: ...
|
def transfer_modifiers_to_node(modifiers, node) -> None: ...
|
||||||
def setup_modifiers(node: Any, field: Optional[Any] = ..., context: Optional[Any] = ..., in_tree_view: bool = ...) -> None: ...
|
def setup_modifiers(node, field: Optional[Any] = ..., context: Optional[Any] = ..., in_tree_view: bool = ...) -> None: ...
|
||||||
def test_modifiers(what: Any, expected: Any) -> None: ...
|
def test_modifiers(what, expected) -> None: ...
|
||||||
def modifiers_tests() -> None: ...
|
def modifiers_tests() -> None: ...
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
def _quote(to_quote: Any): ...
|
def _quote(to_quote): ...
|
||||||
|
|
||||||
class Query:
|
class Query:
|
||||||
tables: Any = ...
|
tables: Any
|
||||||
where_clause: Any = ...
|
where_clause: Any
|
||||||
where_clause_params: Any = ...
|
where_clause_params: Any
|
||||||
joins: Any = ...
|
joins: Any
|
||||||
extras: Any = ...
|
extras: Any
|
||||||
def __init__(self, tables: Optional[Any] = ..., where_clause: Optional[Any] = ..., where_clause_params: Optional[Any] = ..., joins: Optional[Any] = ..., extras: Optional[Any] = ...) -> None: ...
|
def __init__(self, tables: Optional[Any] = ..., where_clause: Optional[Any] = ..., where_clause_params: Optional[Any] = ..., joins: Optional[Any] = ..., extras: Optional[Any] = ...) -> None: ...
|
||||||
def _get_table_aliases(self): ...
|
def _get_table_aliases(self): ...
|
||||||
def _get_alias_mapping(self): ...
|
def _get_alias_mapping(self): ...
|
||||||
def add_join(self, connection: Any, implicit: bool = ..., outer: bool = ..., extra: Optional[Any] = ..., extra_params: Any = ...): ...
|
def add_join(self, connection, implicit: bool = ..., outer: bool = ..., extra: Optional[Any] = ..., extra_params: Any = ...): ...
|
||||||
def get_sql(self): ...
|
def get_sql(self): ...
|
||||||
def __str__(self): ...
|
def __str__(self): ...
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ from typing import Any, Optional
|
|||||||
_logger: Any
|
_logger: Any
|
||||||
RPC_VERSION_1: Any
|
RPC_VERSION_1: Any
|
||||||
|
|
||||||
def exp_login(db: Any, login: Any, password: Any): ...
|
def exp_login(db, login, password): ...
|
||||||
def exp_authenticate(db: Any, login: Any, password: Any, user_agent_env: Any): ...
|
def exp_authenticate(db, login, password, user_agent_env): ...
|
||||||
def exp_version(): ...
|
def exp_version(): ...
|
||||||
def exp_about(extended: bool = ...): ...
|
def exp_about(extended: bool = ...): ...
|
||||||
def exp_set_loglevel(loglevel: Any, logger: Optional[Any] = ...): ...
|
def exp_set_loglevel(loglevel, logger: Optional[Any] = ...): ...
|
||||||
def dispatch(method: Any, params: Any): ...
|
def dispatch(method, params): ...
|
||||||
|
|||||||
@@ -5,27 +5,27 @@ _logger: Any
|
|||||||
|
|
||||||
class DatabaseExists(Warning): ...
|
class DatabaseExists(Warning): ...
|
||||||
|
|
||||||
def check_db_management_enabled(method: Any): ...
|
def check_db_management_enabled(method): ...
|
||||||
def check_super(passwd: Any): ...
|
def check_super(passwd): ...
|
||||||
def _initialize_db(id: Any, db_name: Any, demo: Any, lang: Any, user_password: Any, login: str = ..., country_code: Optional[Any] = ..., phone: Optional[Any] = ...) -> None: ...
|
def _initialize_db(id, db_name, demo, lang, user_password, login: str = ..., country_code: Optional[Any] = ..., phone: Optional[Any] = ...) -> None: ...
|
||||||
def _create_empty_database(name: Any) -> None: ...
|
def _create_empty_database(name) -> None: ...
|
||||||
def exp_create_database(db_name: Any, demo: Any, lang: Any, user_password: str = ..., login: str = ..., country_code: Optional[Any] = ..., phone: Optional[Any] = ...): ...
|
def exp_create_database(db_name, demo, lang, user_password: str = ..., login: str = ..., country_code: Optional[Any] = ..., phone: Optional[Any] = ...): ...
|
||||||
def exp_duplicate_database(db_original_name: Any, db_name: Any): ...
|
def exp_duplicate_database(db_original_name, db_name): ...
|
||||||
def _drop_conn(cr: Any, db_name: Any) -> None: ...
|
def _drop_conn(cr, db_name) -> None: ...
|
||||||
def exp_drop(db_name: Any): ...
|
def exp_drop(db_name): ...
|
||||||
def exp_dump(db_name: Any, format: Any): ...
|
def exp_dump(db_name, format): ...
|
||||||
def dump_db_manifest(cr: Any): ...
|
def dump_db_manifest(cr): ...
|
||||||
def dump_db(db_name: Any, stream: Any, backup_format: str = ...): ...
|
def dump_db(db_name, stream, backup_format: str = ...): ...
|
||||||
def exp_restore(db_name: Any, data: Any, copy: bool = ...): ...
|
def exp_restore(db_name, data, copy: bool = ...): ...
|
||||||
def restore_db(db: Any, dump_file: Any, copy: bool = ...) -> None: ...
|
def restore_db(db, dump_file, copy: bool = ...) -> None: ...
|
||||||
def exp_rename(old_name: Any, new_name: Any): ...
|
def exp_rename(old_name, new_name): ...
|
||||||
def exp_change_admin_password(new_password: Any): ...
|
def exp_change_admin_password(new_password): ...
|
||||||
def exp_migrate_databases(databases: Any): ...
|
def exp_migrate_databases(databases): ...
|
||||||
def exp_db_exist(db_name: Any): ...
|
def exp_db_exist(db_name): ...
|
||||||
def list_dbs(force: bool = ...): ...
|
def list_dbs(force: bool = ...): ...
|
||||||
def list_db_incompatible(databases: Any): ...
|
def list_db_incompatible(databases): ...
|
||||||
def exp_list(document: bool = ...): ...
|
def exp_list(document: bool = ...): ...
|
||||||
def exp_list_lang(): ...
|
def exp_list_lang(): ...
|
||||||
def exp_list_countries(): ...
|
def exp_list_countries(): ...
|
||||||
def exp_server_version(): ...
|
def exp_server_version(): ...
|
||||||
def dispatch(method: Any, params: Any): ...
|
def dispatch(method, params): ...
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ _logger: Any
|
|||||||
PG_CONCURRENCY_ERRORS_TO_RETRY: Any
|
PG_CONCURRENCY_ERRORS_TO_RETRY: Any
|
||||||
MAX_TRIES_ON_CONCURRENCY_FAILURE: int
|
MAX_TRIES_ON_CONCURRENCY_FAILURE: int
|
||||||
|
|
||||||
def dispatch(method: Any, params: Any): ...
|
def dispatch(method, params): ...
|
||||||
def check(f: Any): ...
|
def check(f): ...
|
||||||
def execute_cr(cr: Any, uid: Any, obj: Any, method: Any, *args: Any, **kw: Any): ...
|
def execute_cr(cr, uid, obj, method, *args, **kw): ...
|
||||||
def execute_kw(db: Any, uid: Any, obj: Any, method: Any, args: Any, kw: Optional[Any] = ...): ...
|
def execute_kw(db, uid, obj, method, args, kw: Optional[Any] = ...): ...
|
||||||
def execute(db: Any, uid: Any, obj: Any, method: Any, *args: Any, **kw: Any): ...
|
def execute(db, uid, obj, method, *args, **kw): ...
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
from typing import Any
|
def login(db, login, password): ...
|
||||||
|
def check(db, uid, passwd): ...
|
||||||
def login(db: Any, login: Any, password: Any): ...
|
def compute_session_token(session, env): ...
|
||||||
def check(db: Any, uid: Any, passwd: Any): ...
|
def check_session(session, env): ...
|
||||||
def compute_session_token(session: Any, env: Any): ...
|
|
||||||
def check_session(session: Any, env: Any): ...
|
|
||||||
|
|||||||
@@ -5,71 +5,71 @@ INOTIFY_LISTEN_EVENTS: Any
|
|||||||
_logger: Any
|
_logger: Any
|
||||||
SLEEP_INTERVAL: int
|
SLEEP_INTERVAL: int
|
||||||
|
|
||||||
def memory_info(process: Any): ...
|
def memory_info(process): ...
|
||||||
def set_limit_memory_hard() -> None: ...
|
def set_limit_memory_hard() -> None: ...
|
||||||
def empty_pipe(fd: Any) -> None: ...
|
def empty_pipe(fd) -> None: ...
|
||||||
|
|
||||||
class LoggingBaseWSGIServerMixIn:
|
class LoggingBaseWSGIServerMixIn:
|
||||||
def handle_error(self, request: Any, client_address: Any) -> None: ...
|
def handle_error(self, request, client_address) -> None: ...
|
||||||
|
|
||||||
class BaseWSGIServerNoBind(LoggingBaseWSGIServerMixIn, werkzeug.serving.BaseWSGIServer):
|
class BaseWSGIServerNoBind(LoggingBaseWSGIServerMixIn, werkzeug.serving.BaseWSGIServer):
|
||||||
def __init__(self, app: Any) -> None: ...
|
def __init__(self, app) -> None: ...
|
||||||
def server_activate(self) -> None: ...
|
def server_activate(self) -> None: ...
|
||||||
|
|
||||||
class RequestHandler(werkzeug.serving.WSGIRequestHandler):
|
class RequestHandler(werkzeug.serving.WSGIRequestHandler):
|
||||||
timeout: int = ...
|
timeout: int
|
||||||
def setup(self) -> None: ...
|
def setup(self) -> None: ...
|
||||||
|
|
||||||
class ThreadedWSGIServerReloadable(LoggingBaseWSGIServerMixIn, werkzeug.serving.ThreadedWSGIServer):
|
class ThreadedWSGIServerReloadable(LoggingBaseWSGIServerMixIn, werkzeug.serving.ThreadedWSGIServer):
|
||||||
max_http_threads: Any = ...
|
max_http_threads: Any
|
||||||
http_threads_sem: Any = ...
|
http_threads_sem: Any
|
||||||
daemon_threads: bool = ...
|
daemon_threads: bool
|
||||||
def __init__(self, host: Any, port: Any, app: Any) -> None: ...
|
def __init__(self, host, port, app) -> None: ...
|
||||||
reload_socket: bool = ...
|
reload_socket: bool
|
||||||
socket: Any = ...
|
socket: Any
|
||||||
def server_bind(self) -> None: ...
|
def server_bind(self) -> None: ...
|
||||||
def server_activate(self) -> None: ...
|
def server_activate(self) -> None: ...
|
||||||
def process_request(self, request: Any, client_address: Any) -> None: ...
|
def process_request(self, request, client_address) -> None: ...
|
||||||
def _handle_request_noblock(self) -> None: ...
|
def _handle_request_noblock(self) -> None: ...
|
||||||
def shutdown_request(self, request: Any) -> None: ...
|
def shutdown_request(self, request) -> None: ...
|
||||||
|
|
||||||
class FSWatcherBase:
|
class FSWatcherBase:
|
||||||
def handle_file(self, path: Any): ...
|
def handle_file(self, path): ...
|
||||||
|
|
||||||
class FSWatcherWatchdog(FSWatcherBase):
|
class FSWatcherWatchdog(FSWatcherBase):
|
||||||
observer: Any = ...
|
observer: Any
|
||||||
def __init__(self) -> None: ...
|
def __init__(self) -> None: ...
|
||||||
def dispatch(self, event: Any) -> None: ...
|
def dispatch(self, event) -> None: ...
|
||||||
def start(self) -> None: ...
|
def start(self) -> None: ...
|
||||||
def stop(self) -> None: ...
|
def stop(self) -> None: ...
|
||||||
|
|
||||||
class FSWatcherInotify(FSWatcherBase):
|
class FSWatcherInotify(FSWatcherBase):
|
||||||
started: bool = ...
|
started: bool
|
||||||
watcher: Any = ...
|
watcher: Any
|
||||||
def __init__(self) -> None: ...
|
def __init__(self) -> None: ...
|
||||||
def run(self) -> None: ...
|
def run(self) -> None: ...
|
||||||
thread: Any = ...
|
thread: Any
|
||||||
def start(self) -> None: ...
|
def start(self) -> None: ...
|
||||||
def stop(self) -> None: ...
|
def stop(self) -> None: ...
|
||||||
|
|
||||||
class CommonServer:
|
class CommonServer:
|
||||||
app: Any = ...
|
app: Any
|
||||||
interface: Any = ...
|
interface: Any
|
||||||
port: Any = ...
|
port: Any
|
||||||
pid: Any = ...
|
pid: Any
|
||||||
def __init__(self, app: Any) -> None: ...
|
def __init__(self, app) -> None: ...
|
||||||
def close_socket(self, sock: Any) -> None: ...
|
def close_socket(self, sock) -> None: ...
|
||||||
|
|
||||||
class ThreadedServer(CommonServer):
|
class ThreadedServer(CommonServer):
|
||||||
main_thread_id: Any = ...
|
main_thread_id: Any
|
||||||
quit_signals_received: int = ...
|
quit_signals_received: int
|
||||||
httpd: Any = ...
|
httpd: Any
|
||||||
limits_reached_threads: Any = ...
|
limits_reached_threads: Any
|
||||||
limit_reached_time: Any = ...
|
limit_reached_time: Any
|
||||||
def __init__(self, app: Any) -> None: ...
|
def __init__(self, app) -> None: ...
|
||||||
def signal_handler(self, sig: Any, frame: Any) -> None: ...
|
def signal_handler(self, sig, frame) -> None: ...
|
||||||
def process_limit(self) -> None: ...
|
def process_limit(self) -> None: ...
|
||||||
def cron_thread(self, number: Any) -> None: ...
|
def cron_thread(self, number) -> None: ...
|
||||||
def cron_spawn(self) -> None: ...
|
def cron_spawn(self) -> None: ...
|
||||||
def http_thread(self): ...
|
def http_thread(self): ...
|
||||||
def http_spawn(self) -> None: ...
|
def http_spawn(self) -> None: ...
|
||||||
@@ -79,66 +79,66 @@ class ThreadedServer(CommonServer):
|
|||||||
def reload(self) -> None: ...
|
def reload(self) -> None: ...
|
||||||
|
|
||||||
class GeventServer(CommonServer):
|
class GeventServer(CommonServer):
|
||||||
port: Any = ...
|
port: Any
|
||||||
httpd: Any = ...
|
httpd: Any
|
||||||
def __init__(self, app: Any) -> None: ...
|
def __init__(self, app) -> None: ...
|
||||||
def process_limits(self) -> None: ...
|
def process_limits(self) -> None: ...
|
||||||
ppid: Any = ...
|
ppid: Any
|
||||||
def watchdog(self, beat: int = ...) -> None: ...
|
def watchdog(self, beat: int = ...) -> None: ...
|
||||||
def start(self) -> None: ...
|
def start(self) -> None: ...
|
||||||
def stop(self) -> None: ...
|
def stop(self) -> None: ...
|
||||||
def run(self, preload: Any, stop: Any) -> None: ...
|
def run(self, preload, stop) -> None: ...
|
||||||
|
|
||||||
class PreforkServer(CommonServer):
|
class PreforkServer(CommonServer):
|
||||||
address: Any = ...
|
address: Any
|
||||||
population: Any = ...
|
population: Any
|
||||||
timeout: Any = ...
|
timeout: Any
|
||||||
limit_request: Any = ...
|
limit_request: Any
|
||||||
cron_timeout: Any = ...
|
cron_timeout: Any
|
||||||
beat: int = ...
|
beat: int
|
||||||
app: Any = ...
|
app: Any
|
||||||
pid: Any = ...
|
pid: Any
|
||||||
socket: Any = ...
|
socket: Any
|
||||||
workers_http: Any = ...
|
workers_http: Any
|
||||||
workers_cron: Any = ...
|
workers_cron: Any
|
||||||
workers: Any = ...
|
workers: Any
|
||||||
generation: int = ...
|
generation: int
|
||||||
queue: Any = ...
|
queue: Any
|
||||||
long_polling_pid: Any = ...
|
long_polling_pid: Any
|
||||||
def __init__(self, app: Any) -> None: ...
|
def __init__(self, app) -> None: ...
|
||||||
def pipe_new(self): ...
|
def pipe_new(self): ...
|
||||||
def pipe_ping(self, pipe: Any) -> None: ...
|
def pipe_ping(self, pipe) -> None: ...
|
||||||
def signal_handler(self, sig: Any, frame: Any) -> None: ...
|
def signal_handler(self, sig, frame) -> None: ...
|
||||||
def worker_spawn(self, klass: Any, workers_registry: Any): ...
|
def worker_spawn(self, klass, workers_registry): ...
|
||||||
def long_polling_spawn(self) -> None: ...
|
def long_polling_spawn(self) -> None: ...
|
||||||
def worker_pop(self, pid: Any) -> None: ...
|
def worker_pop(self, pid) -> None: ...
|
||||||
def worker_kill(self, pid: Any, sig: Any) -> None: ...
|
def worker_kill(self, pid, sig) -> None: ...
|
||||||
def process_signals(self) -> None: ...
|
def process_signals(self) -> None: ...
|
||||||
def process_zombie(self) -> None: ...
|
def process_zombie(self) -> None: ...
|
||||||
def process_timeout(self) -> None: ...
|
def process_timeout(self) -> None: ...
|
||||||
def process_spawn(self) -> None: ...
|
def process_spawn(self) -> None: ...
|
||||||
def sleep(self) -> None: ...
|
def sleep(self) -> None: ...
|
||||||
pipe: Any = ...
|
pipe: Any
|
||||||
def start(self) -> None: ...
|
def start(self) -> None: ...
|
||||||
def stop(self, graceful: bool = ...) -> None: ...
|
def stop(self, graceful: bool = ...) -> None: ...
|
||||||
def run(self, preload: Any, stop: Any): ...
|
def run(self, preload, stop): ...
|
||||||
|
|
||||||
class Worker:
|
class Worker:
|
||||||
multi: Any = ...
|
multi: Any
|
||||||
watchdog_time: Any = ...
|
watchdog_time: Any
|
||||||
watchdog_pipe: Any = ...
|
watchdog_pipe: Any
|
||||||
eintr_pipe: Any = ...
|
eintr_pipe: Any
|
||||||
watchdog_timeout: Any = ...
|
watchdog_timeout: Any
|
||||||
ppid: Any = ...
|
ppid: Any
|
||||||
pid: Any = ...
|
pid: Any
|
||||||
alive: bool = ...
|
alive: bool
|
||||||
request_max: Any = ...
|
request_max: Any
|
||||||
request_count: int = ...
|
request_count: int
|
||||||
def __init__(self, multi: Any) -> None: ...
|
def __init__(self, multi) -> None: ...
|
||||||
def setproctitle(self, title: str = ...) -> None: ...
|
def setproctitle(self, title: str = ...) -> None: ...
|
||||||
def close(self) -> None: ...
|
def close(self) -> None: ...
|
||||||
def signal_handler(self, sig: Any, frame: Any) -> None: ...
|
def signal_handler(self, sig, frame) -> None: ...
|
||||||
def signal_time_expired_handler(self, n: Any, stack: Any) -> None: ...
|
def signal_time_expired_handler(self, n, stack) -> None: ...
|
||||||
def sleep(self) -> None: ...
|
def sleep(self) -> None: ...
|
||||||
def check_limits(self) -> None: ...
|
def check_limits(self) -> None: ...
|
||||||
def process_work(self) -> None: ...
|
def process_work(self) -> None: ...
|
||||||
@@ -148,15 +148,15 @@ class Worker:
|
|||||||
def _runloop(self) -> None: ...
|
def _runloop(self) -> None: ...
|
||||||
|
|
||||||
class WorkerHTTP(Worker):
|
class WorkerHTTP(Worker):
|
||||||
def process_request(self, client: Any, addr: Any) -> None: ...
|
def process_request(self, client, addr) -> None: ...
|
||||||
def process_work(self) -> None: ...
|
def process_work(self) -> None: ...
|
||||||
server: Any = ...
|
server: Any
|
||||||
def start(self) -> None: ...
|
def start(self) -> None: ...
|
||||||
|
|
||||||
class WorkerCron(Worker):
|
class WorkerCron(Worker):
|
||||||
db_index: int = ...
|
db_index: int
|
||||||
watchdog_timeout: Any = ...
|
watchdog_timeout: Any
|
||||||
def __init__(self, multi: Any) -> None: ...
|
def __init__(self, multi) -> None: ...
|
||||||
def sleep(self) -> None: ...
|
def sleep(self) -> None: ...
|
||||||
def _db_list(self): ...
|
def _db_list(self): ...
|
||||||
def process_work(self) -> None: ...
|
def process_work(self) -> None: ...
|
||||||
@@ -166,7 +166,7 @@ server: Any
|
|||||||
|
|
||||||
def load_server_wide_modules() -> None: ...
|
def load_server_wide_modules() -> None: ...
|
||||||
def _reexec(updated_modules: Optional[Any] = ...) -> None: ...
|
def _reexec(updated_modules: Optional[Any] = ...) -> None: ...
|
||||||
def load_test_file_py(registry: Any, test_file: Any) -> None: ...
|
def load_test_file_py(registry, test_file) -> None: ...
|
||||||
def preload_registries(dbnames: Any): ...
|
def preload_registries(dbnames): ...
|
||||||
def start(preload: Optional[Any] = ..., stop: bool = ...): ...
|
def start(preload: Optional[Any] = ..., stop: bool = ...): ...
|
||||||
def restart() -> None: ...
|
def restart() -> None: ...
|
||||||
|
|||||||
@@ -7,11 +7,11 @@ RPC_FAULT_CODE_WARNING: int
|
|||||||
RPC_FAULT_CODE_ACCESS_DENIED: int
|
RPC_FAULT_CODE_ACCESS_DENIED: int
|
||||||
RPC_FAULT_CODE_ACCESS_ERROR: int
|
RPC_FAULT_CODE_ACCESS_ERROR: int
|
||||||
|
|
||||||
def xmlrpc_handle_exception_int(e: Any): ...
|
def xmlrpc_handle_exception_int(e): ...
|
||||||
def xmlrpc_handle_exception_string(e: Any): ...
|
def xmlrpc_handle_exception_string(e): ...
|
||||||
def _patch_xmlrpc_marshaller() -> None: ...
|
def _patch_xmlrpc_marshaller() -> None: ...
|
||||||
def application_unproxied(environ: Any, start_response: Any): ...
|
def application_unproxied(environ, start_response): ...
|
||||||
|
|
||||||
ProxyFix: Any
|
ProxyFix: Any
|
||||||
|
|
||||||
def application(environ: Any, start_response: Any): ...
|
def application(environ, start_response): ...
|
||||||
|
|||||||
@@ -5,109 +5,109 @@ _T = TypeVar('_T')
|
|||||||
|
|
||||||
_logger: Any
|
_logger: Any
|
||||||
|
|
||||||
def unbuffer(symb: Any, cr: Any): ...
|
def unbuffer(symb, cr): ...
|
||||||
def undecimalize(symb: Any, cr: Any): ...
|
def undecimalize(symb, cr): ...
|
||||||
def adapt_string(adapted: Any): ...
|
def adapt_string(adapted): ...
|
||||||
|
|
||||||
re_from: Any
|
re_from: Any
|
||||||
re_into: Any
|
re_into: Any
|
||||||
sql_counter: int
|
sql_counter: int
|
||||||
|
|
||||||
class Cursor:
|
class Cursor:
|
||||||
IN_MAX: int = ...
|
IN_MAX: int
|
||||||
def check(f: Any): ...
|
def check(f): ...
|
||||||
sql_from_log: Any = ...
|
sql_from_log: Any
|
||||||
sql_into_log: Any = ...
|
sql_into_log: Any
|
||||||
sql_log: Any = ...
|
sql_log: Any
|
||||||
sql_log_count: int = ...
|
sql_log_count: int
|
||||||
_closed: bool = ...
|
_closed: bool
|
||||||
__pool: Any = ...
|
__pool: Any
|
||||||
dbname: Any = ...
|
dbname: Any
|
||||||
_serialized: Any = ...
|
_serialized: Any
|
||||||
_cnx: Any = ...
|
_cnx: Any
|
||||||
_obj: Any = ...
|
_obj: Any
|
||||||
__caller: Any = ...
|
__caller: Any
|
||||||
__closer: bool = ...
|
__closer: bool
|
||||||
_default_log_exceptions: bool = ...
|
_default_log_exceptions: bool
|
||||||
cache: Any = ...
|
cache: Any
|
||||||
_event_handlers: Any = ...
|
_event_handlers: Any
|
||||||
def __init__(self, pool: Any, dbname: Any, dsn: Any, serialized: bool = ...) -> None: ...
|
def __init__(self, pool, dbname, dsn, serialized: bool = ...) -> None: ...
|
||||||
def __build_dict(self, row: Any): ...
|
def __build_dict(self, row): ...
|
||||||
def dictfetchone(self): ...
|
def dictfetchone(self): ...
|
||||||
def dictfetchmany(self, size: Any): ...
|
def dictfetchmany(self, size): ...
|
||||||
def dictfetchall(self): ...
|
def dictfetchall(self): ...
|
||||||
def __del__(self) -> None: ...
|
def __del__(self) -> None: ...
|
||||||
def execute(self, query: Any, params: Optional[Any] = ..., log_exceptions: Optional[Any] = ...): ...
|
def execute(self, query, params: Optional[Any] = ..., log_exceptions: Optional[Any] = ...): ...
|
||||||
def split_for_in_conditions(self, ids: Any, size: Optional[Any] = ...): ...
|
def split_for_in_conditions(self, ids, size: Optional[Any] = ...): ...
|
||||||
def print_log(self): ...
|
def print_log(self): ...
|
||||||
def close(self): ...
|
def close(self): ...
|
||||||
def _close(self, leak: bool = ...) -> None: ...
|
def _close(self, leak: bool = ...) -> None: ...
|
||||||
def autocommit(self, on: Any) -> None: ...
|
def autocommit(self, on) -> None: ...
|
||||||
def after(self, event: Any, func: Any) -> None: ...
|
def after(self, event, func) -> None: ...
|
||||||
def _pop_event_handlers(self): ...
|
def _pop_event_handlers(self): ...
|
||||||
def commit(self): ...
|
def commit(self): ...
|
||||||
def rollback(self): ...
|
def rollback(self): ...
|
||||||
def __enter__(self: _T) -> _T: ...
|
def __enter__(self: _T) -> _T: ...
|
||||||
def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> None: ...
|
def __exit__(self, exc_type, exc_value, traceback) -> None: ...
|
||||||
def savepoint(self) -> None: ...
|
def savepoint(self) -> None: ...
|
||||||
def __getattr__(self, name: Any): ...
|
def __getattr__(self, name): ...
|
||||||
@property
|
@property
|
||||||
def closed(self): ...
|
def closed(self): ...
|
||||||
|
|
||||||
class TestCursor:
|
class TestCursor:
|
||||||
_savepoint_seq: Any = ...
|
_savepoint_seq: Any
|
||||||
_closed: bool = ...
|
_closed: bool
|
||||||
_cursor: Any = ...
|
_cursor: Any
|
||||||
_lock: Any = ...
|
_lock: Any
|
||||||
_savepoint: Any = ...
|
_savepoint: Any
|
||||||
def __init__(self, cursor: Any, lock: Any) -> None: ...
|
def __init__(self, cursor, lock) -> None: ...
|
||||||
def close(self) -> None: ...
|
def close(self) -> None: ...
|
||||||
def autocommit(self, on: Any) -> None: ...
|
def autocommit(self, on) -> None: ...
|
||||||
def commit(self) -> None: ...
|
def commit(self) -> None: ...
|
||||||
def rollback(self) -> None: ...
|
def rollback(self) -> None: ...
|
||||||
def __enter__(self): ...
|
def __enter__(self): ...
|
||||||
def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> None: ...
|
def __exit__(self, exc_type, exc_value, traceback) -> None: ...
|
||||||
def __getattr__(self, name: Any): ...
|
def __getattr__(self, name): ...
|
||||||
|
|
||||||
class LazyCursor:
|
class LazyCursor:
|
||||||
_dbname: Any = ...
|
_dbname: Any
|
||||||
_cursor: Any = ...
|
_cursor: Any
|
||||||
_depth: int = ...
|
_depth: int
|
||||||
def __init__(self, dbname: Optional[Any] = ...) -> None: ...
|
def __init__(self, dbname: Optional[Any] = ...) -> None: ...
|
||||||
@property
|
@property
|
||||||
def dbname(self): ...
|
def dbname(self): ...
|
||||||
def __getattr__(self, name: Any): ...
|
def __getattr__(self, name): ...
|
||||||
def __enter__(self): ...
|
def __enter__(self): ...
|
||||||
def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> None: ...
|
def __exit__(self, exc_type, exc_value, traceback) -> None: ...
|
||||||
|
|
||||||
class PsycoConnection(psycopg2.extensions.connection): ...
|
class PsycoConnection(psycopg2.extensions.connection): ...
|
||||||
|
|
||||||
class ConnectionPool:
|
class ConnectionPool:
|
||||||
def locked(fun: Any): ...
|
def locked(fun): ...
|
||||||
_connections: Any = ...
|
_connections: Any
|
||||||
_maxconn: Any = ...
|
_maxconn: Any
|
||||||
_lock: Any = ...
|
_lock: Any
|
||||||
def __init__(self, maxconn: int = ...) -> None: ...
|
def __init__(self, maxconn: int = ...) -> None: ...
|
||||||
def __repr__(self): ...
|
def __repr__(self): ...
|
||||||
def _debug(self, msg: Any, *args: Any) -> None: ...
|
def _debug(self, msg, *args) -> None: ...
|
||||||
def borrow(self, connection_info: Any): ...
|
def borrow(self, connection_info): ...
|
||||||
def give_back(self, connection: Any, keep_in_pool: bool = ...) -> None: ...
|
def give_back(self, connection, keep_in_pool: bool = ...) -> None: ...
|
||||||
def close_all(self, dsn: Optional[Any] = ...) -> None: ...
|
def close_all(self, dsn: Optional[Any] = ...) -> None: ...
|
||||||
|
|
||||||
class Connection:
|
class Connection:
|
||||||
dbname: Any = ...
|
dbname: Any
|
||||||
dsn: Any = ...
|
dsn: Any
|
||||||
__pool: Any = ...
|
__pool: Any
|
||||||
def __init__(self, pool: Any, dbname: Any, dsn: Any) -> None: ...
|
def __init__(self, pool, dbname, dsn) -> None: ...
|
||||||
def cursor(self, serialized: bool = ...): ...
|
def cursor(self, serialized: bool = ...): ...
|
||||||
serialized_cursor: Any = ...
|
serialized_cursor: Any
|
||||||
def __bool__(self) -> None: ...
|
def __bool__(self) -> None: ...
|
||||||
__nonzero__: Any = ...
|
__nonzero__: Any
|
||||||
|
|
||||||
def connection_info_for(db_or_uri: Any): ...
|
def connection_info_for(db_or_uri): ...
|
||||||
|
|
||||||
_Pool: Any
|
_Pool: Any
|
||||||
|
|
||||||
def db_connect(to: Any, allow_uri: bool = ...): ...
|
def db_connect(to, allow_uri: bool = ...): ...
|
||||||
def close_db(db_name: Any) -> None: ...
|
def close_db(db_name) -> None: ...
|
||||||
def close_all() -> None: ...
|
def close_all() -> None: ...
|
||||||
|
|||||||
@@ -16,41 +16,41 @@ def get_db_name(): ...
|
|||||||
|
|
||||||
DB: Any
|
DB: Any
|
||||||
|
|
||||||
def at_install(flag: Any): ...
|
def at_install(flag): ...
|
||||||
def post_install(flag: Any): ...
|
def post_install(flag): ...
|
||||||
def new_test_user(env: Any, login: str = ..., groups: str = ..., context: Optional[Any] = ..., **kwargs: Any): ...
|
def new_test_user(env, login: str = ..., groups: str = ..., context: Optional[Any] = ..., **kwargs): ...
|
||||||
|
|
||||||
class TreeCase(unittest.TestCase):
|
class TreeCase(unittest.TestCase):
|
||||||
def __init__(self, methodName: str = ...) -> None: ...
|
def __init__(self, methodName: str = ...) -> None: ...
|
||||||
def assertTreesEqual(self, n1: Any, n2: Any, msg: Optional[Any] = ...) -> None: ...
|
def assertTreesEqual(self, n1, n2, msg: Optional[Any] = ...) -> None: ...
|
||||||
|
|
||||||
class MetaCase(type):
|
class MetaCase(type):
|
||||||
def __init__(cls, name: Any, bases: Any, attrs: Any) -> None: ...
|
def __init__(cls, name, bases, attrs) -> None: ...
|
||||||
|
|
||||||
class BaseCase(TreeCase):
|
class BaseCase(TreeCase):
|
||||||
longMessage: bool = ...
|
longMessage: bool
|
||||||
warm: bool = ...
|
warm: bool
|
||||||
registry: Registry = ...
|
registry: Registry
|
||||||
cr: Cursor = ...
|
cr: Cursor
|
||||||
env: Environment = ...
|
env: Environment
|
||||||
def cursor(self): ...
|
def cursor(self): ...
|
||||||
@property
|
@property
|
||||||
def uid(self): ...
|
def uid(self): ...
|
||||||
@uid.setter
|
@uid.setter
|
||||||
def uid(self, user: Any) -> None: ...
|
def uid(self, user) -> None: ...
|
||||||
def ref(self, xid: Any): ...
|
def ref(self, xid): ...
|
||||||
def browse_ref(self, xid: Any): ...
|
def browse_ref(self, xid): ...
|
||||||
def _assertRaises(self, exception: Any) -> None: ...
|
def _assertRaises(self, exception) -> None: ...
|
||||||
def assertRaises(self, exception: Any, func: Optional[Any] = ..., *args: Any, **kwargs: Any): ...
|
def assertRaises(self, exception, func: Optional[Any] = ..., *args, **kwargs): ...
|
||||||
def assertQueryCount(self, default: int = ..., **counters: Any): ...
|
def assertQueryCount(self, default: int = ..., **counters): ...
|
||||||
def assertRecordValues(self, records: Any, expected_values: Any): ...
|
def assertRecordValues(self, records, expected_values): ...
|
||||||
def shortDescription(self): ...
|
def shortDescription(self): ...
|
||||||
def assertItemsEqual(self, a: Any, b: Any, msg: Optional[Any] = ...) -> None: ...
|
def assertItemsEqual(self, a, b, msg: Optional[Any] = ...) -> None: ...
|
||||||
|
|
||||||
class TransactionCase(BaseCase):
|
class TransactionCase(BaseCase):
|
||||||
def setUp(self): ...
|
def setUp(self): ...
|
||||||
def patch(self, obj: Any, key: Any, val: Any) -> None: ...
|
def patch(self, obj, key, val) -> None: ...
|
||||||
def patch_order(self, model: Any, order: Any) -> None: ...
|
def patch_order(self, model, order) -> None: ...
|
||||||
|
|
||||||
class SingleTransactionCase(BaseCase):
|
class SingleTransactionCase(BaseCase):
|
||||||
@classmethod
|
@classmethod
|
||||||
@@ -61,147 +61,147 @@ class SingleTransactionCase(BaseCase):
|
|||||||
savepoint_seq: Any
|
savepoint_seq: Any
|
||||||
|
|
||||||
class SavepointCase(SingleTransactionCase):
|
class SavepointCase(SingleTransactionCase):
|
||||||
_savepoint_id: Any = ...
|
_savepoint_id: Any
|
||||||
def setUp(self) -> None: ...
|
def setUp(self) -> None: ...
|
||||||
def tearDown(self) -> None: ...
|
def tearDown(self) -> None: ...
|
||||||
|
|
||||||
class ChromeBrowser:
|
class ChromeBrowser:
|
||||||
_logger: Any = ...
|
_logger: Any
|
||||||
devtools_port: Any = ...
|
devtools_port: Any
|
||||||
ws_url: str = ...
|
ws_url: str
|
||||||
ws: Any = ...
|
ws: Any
|
||||||
request_id: int = ...
|
request_id: int
|
||||||
user_data_dir: Any = ...
|
user_data_dir: Any
|
||||||
chrome_pid: Any = ...
|
chrome_pid: Any
|
||||||
screencast_frames: Any = ...
|
screencast_frames: Any
|
||||||
sigxcpu_handler: Any = ...
|
sigxcpu_handler: Any
|
||||||
def __init__(self, logger: Any) -> None: ...
|
def __init__(self, logger) -> None: ...
|
||||||
def signal_handler(self, sig: Any, frame: Any) -> None: ...
|
def signal_handler(self, sig, frame) -> None: ...
|
||||||
def stop(self) -> None: ...
|
def stop(self) -> None: ...
|
||||||
@property
|
@property
|
||||||
def executable(self): ...
|
def executable(self): ...
|
||||||
def _spawn_chrome(self, cmd: Any): ...
|
def _spawn_chrome(self, cmd): ...
|
||||||
def _chrome_start(self) -> None: ...
|
def _chrome_start(self) -> None: ...
|
||||||
def _find_websocket(self) -> None: ...
|
def _find_websocket(self) -> None: ...
|
||||||
def _json_command(self, command: Any, timeout: int = ...): ...
|
def _json_command(self, command, timeout: int = ...): ...
|
||||||
def _open_websocket(self) -> None: ...
|
def _open_websocket(self) -> None: ...
|
||||||
def _websocket_send(self, method: Any, params: Optional[Any] = ...): ...
|
def _websocket_send(self, method, params: Optional[Any] = ...): ...
|
||||||
def _websocket_wait_id(self, awaited_id: Any, timeout: int = ...): ...
|
def _websocket_wait_id(self, awaited_id, timeout: int = ...): ...
|
||||||
def _websocket_wait_event(self, method: Any, params: Optional[Any] = ..., timeout: int = ...): ...
|
def _websocket_wait_event(self, method, params: Optional[Any] = ..., timeout: int = ...): ...
|
||||||
def _get_shotname(self, prefix: Any, ext: Any): ...
|
def _get_shotname(self, prefix, ext): ...
|
||||||
def take_screenshot(self, prefix: str = ...) -> None: ...
|
def take_screenshot(self, prefix: str = ...) -> None: ...
|
||||||
def _save_screencast(self, prefix: str = ...) -> None: ...
|
def _save_screencast(self, prefix: str = ...) -> None: ...
|
||||||
def start_screencast(self) -> None: ...
|
def start_screencast(self) -> None: ...
|
||||||
def set_cookie(self, name: Any, value: Any, path: Any, domain: Any): ...
|
def set_cookie(self, name, value, path, domain): ...
|
||||||
def delete_cookie(self, name: Any, **kwargs: Any): ...
|
def delete_cookie(self, name, **kwargs): ...
|
||||||
def _wait_ready(self, ready_code: Any, timeout: int = ...): ...
|
def _wait_ready(self, ready_code, timeout: int = ...): ...
|
||||||
def _wait_code_ok(self, code: Any, timeout: Any): ...
|
def _wait_code_ok(self, code, timeout): ...
|
||||||
def navigate_to(self, url: Any, wait_stop: bool = ...) -> None: ...
|
def navigate_to(self, url, wait_stop: bool = ...) -> None: ...
|
||||||
def clear(self) -> None: ...
|
def clear(self) -> None: ...
|
||||||
|
|
||||||
class HttpCase(TransactionCase):
|
class HttpCase(TransactionCase):
|
||||||
registry_test_mode: bool = ...
|
registry_test_mode: bool
|
||||||
browser: Any = ...
|
browser: Any
|
||||||
xmlrpc_url: Any = ...
|
xmlrpc_url: Any
|
||||||
xmlrpc_common: Any = ...
|
xmlrpc_common: Any
|
||||||
xmlrpc_db: Any = ...
|
xmlrpc_db: Any
|
||||||
xmlrpc_object: Any = ...
|
xmlrpc_object: Any
|
||||||
_logger: Any = ...
|
_logger: Any
|
||||||
def __init__(self, methodName: str = ...) -> None: ...
|
def __init__(self, methodName: str = ...) -> None: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def start_browser(cls, logger: Any) -> None: ...
|
def start_browser(cls, logger) -> None: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def tearDownClass(cls) -> None: ...
|
def tearDownClass(cls) -> None: ...
|
||||||
session: Any = ...
|
session: Any
|
||||||
session_id: Any = ...
|
session_id: Any
|
||||||
opener: Any = ...
|
opener: Any
|
||||||
def setUp(self) -> None: ...
|
def setUp(self) -> None: ...
|
||||||
def url_open(self, url: Any, data: Optional[Any] = ..., timeout: int = ...): ...
|
def url_open(self, url, data: Optional[Any] = ..., timeout: int = ...): ...
|
||||||
def _wait_remaining_requests(self) -> None: ...
|
def _wait_remaining_requests(self) -> None: ...
|
||||||
def authenticate(self, user: Any, password: Any) -> None: ...
|
def authenticate(self, user, password) -> None: ...
|
||||||
def browser_js(self, url_path: Any, code: Any, ready: str = ..., login: Optional[Any] = ..., timeout: int = ..., **kw: Any) -> None: ...
|
def browser_js(self, url_path, code, ready: str = ..., login: Optional[Any] = ..., timeout: int = ..., **kw) -> None: ...
|
||||||
phantom_js: Any = ...
|
phantom_js: Any
|
||||||
|
|
||||||
def users(*logins: Any): ...
|
def users(*logins): ...
|
||||||
def warmup(func: Any, *args: Any, **kwargs: Any) -> None: ...
|
def warmup(func, *args, **kwargs) -> None: ...
|
||||||
def can_import(module: Any): ...
|
def can_import(module): ...
|
||||||
|
|
||||||
ref_re: Any
|
ref_re: Any
|
||||||
|
|
||||||
class Form:
|
class Form:
|
||||||
def __init__(self, recordp: Any, view: Optional[Any] = ...) -> None: ...
|
def __init__(self, recordp, view: Optional[Any] = ...) -> None: ...
|
||||||
def _o2m_set_edition_view(self, descr: Any, node: Any, level: Any) -> None: ...
|
def _o2m_set_edition_view(self, descr, node, level) -> None: ...
|
||||||
def __str__(self): ...
|
def __str__(self): ...
|
||||||
def _process_fvg(self, model: Any, fvg: Any, level: int = ...) -> None: ...
|
def _process_fvg(self, model, fvg, level: int = ...) -> None: ...
|
||||||
def _init_from_defaults(self, model: Any): ...
|
def _init_from_defaults(self, model): ...
|
||||||
def _init_from_values(self, values: Any) -> None: ...
|
def _init_from_values(self, values) -> None: ...
|
||||||
def __getattr__(self, field: Any): ...
|
def __getattr__(self, field): ...
|
||||||
def _get_modifier(self, field: Any, modifier: Any, default: bool = ..., modmap: Optional[Any] = ..., vals: Optional[Any] = ...): ...
|
def _get_modifier(self, field, modifier, default: bool = ..., modmap: Optional[Any] = ..., vals: Optional[Any] = ...): ...
|
||||||
_OPS: Any = ...
|
_OPS: Any
|
||||||
def _get_context(self, field: Any): ...
|
def _get_context(self, field): ...
|
||||||
def __setattr__(self, field: Any, value: Any) -> None: ...
|
def __setattr__(self, field, value) -> None: ...
|
||||||
def __enter__(self) -> Form: ...
|
def __enter__(self) -> Form: ...
|
||||||
def __exit__(self, etype: Any, _evalue: Any, _etb: Any) -> None: ...
|
def __exit__(self, etype, _evalue, _etb) -> None: ...
|
||||||
def save(self): ...
|
def save(self): ...
|
||||||
def _values_to_save(self, all_fields: bool = ...): ...
|
def _values_to_save(self, all_fields: bool = ...): ...
|
||||||
def _perform_onchange(self, fields: Any) -> None: ...
|
def _perform_onchange(self, fields) -> None: ...
|
||||||
def _onchange_values(self): ...
|
def _onchange_values(self): ...
|
||||||
def _cleanup_onchange(self, descr: Any, value: Any, current: Any): ...
|
def _cleanup_onchange(self, descr, value, current): ...
|
||||||
|
|
||||||
class O2MForm(Form):
|
class O2MForm(Form):
|
||||||
def __init__(self, proxy: Any, index: Optional[Any] = ...) -> None: ...
|
def __init__(self, proxy, index: Optional[Any] = ...) -> None: ...
|
||||||
def _get_modifier(self, field: Any, modifier: Any, default: bool = ..., modmap: Optional[Any] = ..., vals: Optional[Any] = ...): ...
|
def _get_modifier(self, field, modifier, default: bool = ..., modmap: Optional[Any] = ..., vals: Optional[Any] = ...): ...
|
||||||
def _onchange_values(self): ...
|
def _onchange_values(self): ...
|
||||||
def save(self) -> None: ...
|
def save(self) -> None: ...
|
||||||
def _values_to_save(self, all_fields: bool = ...): ...
|
def _values_to_save(self, all_fields: bool = ...): ...
|
||||||
|
|
||||||
class UpdateDict(dict):
|
class UpdateDict(dict):
|
||||||
_changed: Any = ...
|
_changed: Any
|
||||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
def __init__(self, *args, **kwargs) -> None: ...
|
||||||
def changed_items(self): ...
|
def changed_items(self): ...
|
||||||
def update(self, *args: Any, **kw: Any) -> None: ...
|
def update(self, *args, **kw) -> None: ...
|
||||||
|
|
||||||
class X2MProxy:
|
class X2MProxy:
|
||||||
_parent: Any = ...
|
_parent: Any
|
||||||
_field: Any = ...
|
_field: Any
|
||||||
def _assert_editable(self) -> None: ...
|
def _assert_editable(self) -> None: ...
|
||||||
|
|
||||||
class O2MProxy(X2MProxy):
|
class O2MProxy(X2MProxy):
|
||||||
_parent: Any = ...
|
_parent: Any
|
||||||
_field: Any = ...
|
_field: Any
|
||||||
_records: Any = ...
|
_records: Any
|
||||||
def __init__(self, parent: Any, field: Any) -> None: ...
|
def __init__(self, parent, field) -> None: ...
|
||||||
def __len__(self): ...
|
def __len__(self): ...
|
||||||
@property
|
@property
|
||||||
def _model(self): ...
|
def _model(self): ...
|
||||||
@property
|
@property
|
||||||
def _descr(self): ...
|
def _descr(self): ...
|
||||||
def _command_index(self, for_record: Any): ...
|
def _command_index(self, for_record): ...
|
||||||
def new(self): ...
|
def new(self): ...
|
||||||
def edit(self, index: Any): ...
|
def edit(self, index): ...
|
||||||
def remove(self, index: Any) -> None: ...
|
def remove(self, index) -> None: ...
|
||||||
|
|
||||||
class M2MProxy(X2MProxy, collections.Sequence):
|
class M2MProxy(X2MProxy, collections.Sequence):
|
||||||
_parent: Any = ...
|
_parent: Any
|
||||||
_field: Any = ...
|
_field: Any
|
||||||
def __init__(self, parent: Any, field: Any) -> None: ...
|
def __init__(self, parent, field) -> None: ...
|
||||||
def __getitem__(self, it: Any): ...
|
def __getitem__(self, it): ...
|
||||||
def __len__(self): ...
|
def __len__(self): ...
|
||||||
def __iter__(self) -> Any: ...
|
def __iter__(self) -> Any: ...
|
||||||
def __contains__(self, record: Any): ...
|
def __contains__(self, record): ...
|
||||||
def add(self, record: Any) -> None: ...
|
def add(self, record) -> None: ...
|
||||||
def _get_ids(self): ...
|
def _get_ids(self): ...
|
||||||
def remove(self, id: Optional[Any] = ..., index: Optional[Any] = ...) -> None: ...
|
def remove(self, id: Optional[Any] = ..., index: Optional[Any] = ...) -> None: ...
|
||||||
def clear(self) -> None: ...
|
def clear(self) -> None: ...
|
||||||
|
|
||||||
def record_to_values(fields: Any, record: Any): ...
|
def record_to_values(fields, record): ...
|
||||||
def _cleanup_from_default(type_: Any, value: Any): ...
|
def _cleanup_from_default(type_, value): ...
|
||||||
def _get_node(view: Any, f: Any, *arg: Any): ...
|
def _get_node(view, f, *arg): ...
|
||||||
def tagged(*tags: Any): ...
|
def tagged(*tags): ...
|
||||||
|
|
||||||
class TagsSelector:
|
class TagsSelector:
|
||||||
filter_spec_re: Any = ...
|
filter_spec_re: Any
|
||||||
exclude: Any = ...
|
exclude: Any
|
||||||
include: Any = ...
|
include: Any
|
||||||
def __init__(self, spec: Any) -> None: ...
|
def __init__(self, spec) -> None: ...
|
||||||
def check(self, test: Any): ...
|
def check(self, test): ...
|
||||||
|
|||||||
@@ -11,12 +11,12 @@ def user_cache_dir(appname: Optional[Any] = ..., appauthor: Optional[Any] = ...,
|
|||||||
def user_log_dir(appname: Optional[Any] = ..., appauthor: Optional[Any] = ..., version: Optional[Any] = ..., opinion: bool = ...): ...
|
def user_log_dir(appname: Optional[Any] = ..., appauthor: Optional[Any] = ..., version: Optional[Any] = ..., opinion: bool = ...): ...
|
||||||
|
|
||||||
class AppDirs:
|
class AppDirs:
|
||||||
appname: Any = ...
|
appname: Any
|
||||||
appauthor: Any = ...
|
appauthor: Any
|
||||||
version: Any = ...
|
version: Any
|
||||||
roaming: Any = ...
|
roaming: Any
|
||||||
multipath: Any = ...
|
multipath: Any
|
||||||
def __init__(self, appname: Any, appauthor: Optional[Any] = ..., version: Optional[Any] = ..., roaming: bool = ..., multipath: bool = ...) -> None: ...
|
def __init__(self, appname, appauthor: Optional[Any] = ..., version: Optional[Any] = ..., roaming: bool = ..., multipath: bool = ...) -> None: ...
|
||||||
@property
|
@property
|
||||||
def user_data_dir(self): ...
|
def user_data_dir(self): ...
|
||||||
@property
|
@property
|
||||||
@@ -30,9 +30,9 @@ class AppDirs:
|
|||||||
@property
|
@property
|
||||||
def user_log_dir(self): ...
|
def user_log_dir(self): ...
|
||||||
|
|
||||||
def _get_win_folder_from_registry(csidl_name: Any): ...
|
def _get_win_folder_from_registry(csidl_name): ...
|
||||||
def _get_win_folder_with_pywin32(csidl_name: Any): ...
|
def _get_win_folder_with_pywin32(csidl_name): ...
|
||||||
def _get_win_folder_with_ctypes(csidl_name: Any): ...
|
def _get_win_folder_with_ctypes(csidl_name): ...
|
||||||
_get_win_folder = _get_win_folder_with_pywin32
|
_get_win_folder = _get_win_folder_with_pywin32
|
||||||
_get_win_folder = _get_win_folder_with_ctypes
|
_get_win_folder = _get_win_folder_with_ctypes
|
||||||
_get_win_folder = _get_win_folder_from_registry
|
_get_win_folder = _get_win_folder_from_registry
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
from typing import Any
|
|
||||||
|
|
||||||
class assertion_report:
|
class assertion_report:
|
||||||
successes: int = ...
|
successes: int
|
||||||
failures: int = ...
|
failures: int
|
||||||
def __init__(self) -> None: ...
|
def __init__(self) -> None: ...
|
||||||
def record_success(self) -> None: ...
|
def record_success(self) -> None: ...
|
||||||
def record_failure(self) -> None: ...
|
def record_failure(self) -> None: ...
|
||||||
def record_result(self, result: Any) -> None: ...
|
def record_result(self, result) -> None: ...
|
||||||
def __str__(self): ...
|
def __str__(self): ...
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ unsafe_eval = eval
|
|||||||
_logger: Any
|
_logger: Any
|
||||||
|
|
||||||
class ormcache_counter:
|
class ormcache_counter:
|
||||||
__slots__: Any = ...
|
__slots__: Any
|
||||||
hit: int = ...
|
hit: int
|
||||||
miss: int = ...
|
miss: int
|
||||||
err: int = ...
|
err: int
|
||||||
def __init__(self) -> None: ...
|
def __init__(self) -> None: ...
|
||||||
@property
|
@property
|
||||||
def ratio(self): ...
|
def ratio(self): ...
|
||||||
@@ -15,36 +15,36 @@ class ormcache_counter:
|
|||||||
STAT: Any
|
STAT: Any
|
||||||
|
|
||||||
class ormcache:
|
class ormcache:
|
||||||
args: Any = ...
|
args: Any
|
||||||
skiparg: Any = ...
|
skiparg: Any
|
||||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
def __init__(self, *args, **kwargs) -> None: ...
|
||||||
method: Any = ...
|
method: Any
|
||||||
def __call__(self, method: Any): ...
|
def __call__(self, method): ...
|
||||||
key: Any = ...
|
key: Any
|
||||||
def determine_key(self): ...
|
def determine_key(self): ...
|
||||||
def lru(self, model: Any): ...
|
def lru(self, model): ...
|
||||||
def lookup(self, method: Any, *args: Any, **kwargs: Any): ...
|
def lookup(self, method, *args, **kwargs): ...
|
||||||
def clear(self, model: Any, *args: Any) -> None: ...
|
def clear(self, model, *args) -> None: ...
|
||||||
|
|
||||||
class ormcache_context(ormcache):
|
class ormcache_context(ormcache):
|
||||||
keys: Any = ...
|
keys: Any
|
||||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
def __init__(self, *args, **kwargs) -> None: ...
|
||||||
key: Any = ...
|
key: Any
|
||||||
def determine_key(self) -> None: ...
|
def determine_key(self) -> None: ...
|
||||||
|
|
||||||
class ormcache_multi(ormcache):
|
class ormcache_multi(ormcache):
|
||||||
multi: Any = ...
|
multi: Any
|
||||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
def __init__(self, *args, **kwargs) -> None: ...
|
||||||
key_multi: Any = ...
|
key_multi: Any
|
||||||
multi_pos: Any = ...
|
multi_pos: Any
|
||||||
def determine_key(self) -> None: ...
|
def determine_key(self) -> None: ...
|
||||||
def lookup(self, method: Any, *args: Any, **kwargs: Any): ...
|
def lookup(self, method, *args, **kwargs): ...
|
||||||
|
|
||||||
class dummy_cache:
|
class dummy_cache:
|
||||||
def __init__(self, *l: Any, **kw: Any) -> None: ...
|
def __init__(self, *l, **kw) -> None: ...
|
||||||
def __call__(self, fn: Any): ...
|
def __call__(self, fn): ...
|
||||||
def clear(self, *l: Any, **kw: Any) -> None: ...
|
def clear(self, *l, **kw) -> None: ...
|
||||||
|
|
||||||
def log_ormcache_stats(sig: Optional[Any] = ..., frame: Optional[Any] = ...): ...
|
def log_ormcache_stats(sig: Optional[Any] = ..., frame: Optional[Any] = ...): ...
|
||||||
def get_cache_key_counter(bound_method: Any, *args: Any, **kwargs: Any): ...
|
def get_cache_key_counter(bound_method, *args, **kwargs): ...
|
||||||
cache = ormcache
|
cache = ormcache
|
||||||
|
|||||||
@@ -4,42 +4,42 @@ from typing import Any, Optional
|
|||||||
crypt_context: Any
|
crypt_context: Any
|
||||||
|
|
||||||
class MyOption(optparse.Option):
|
class MyOption(optparse.Option):
|
||||||
my_default: Any = ...
|
my_default: Any
|
||||||
def __init__(self, *opts: Any, **attrs: Any) -> None: ...
|
def __init__(self, *opts, **attrs) -> None: ...
|
||||||
|
|
||||||
DEFAULT_LOG_HANDLER: str
|
DEFAULT_LOG_HANDLER: str
|
||||||
|
|
||||||
def _get_default_datadir(): ...
|
def _get_default_datadir(): ...
|
||||||
def _deduplicate_loggers(loggers: Any): ...
|
def _deduplicate_loggers(loggers): ...
|
||||||
|
|
||||||
class configmanager:
|
class configmanager:
|
||||||
options: Any = ...
|
options: Any
|
||||||
blacklist_for_save: Any = ...
|
blacklist_for_save: Any
|
||||||
casts: Any = ...
|
casts: Any
|
||||||
misc: Any = ...
|
misc: Any
|
||||||
config_file: Any = ...
|
config_file: Any
|
||||||
_LOGLEVELS: Any = ...
|
_LOGLEVELS: Any
|
||||||
parser: Any = ...
|
parser: Any
|
||||||
def __init__(self, fname: Optional[Any] = ...) -> None: ...
|
def __init__(self, fname: Optional[Any] = ...) -> None: ...
|
||||||
def parse_config(self, args: Optional[Any] = ...) -> None: ...
|
def parse_config(self, args: Optional[Any] = ...) -> None: ...
|
||||||
rcfile: Any = ...
|
rcfile: Any
|
||||||
def _parse_config(self, args: Optional[Any] = ...) -> None: ...
|
def _parse_config(self, args: Optional[Any] = ...) -> None: ...
|
||||||
def _is_addons_path(self, path: Any): ...
|
def _is_addons_path(self, path): ...
|
||||||
def _check_addons_path(self, option: Any, opt: Any, value: Any, parser: Any) -> None: ...
|
def _check_addons_path(self, option, opt, value, parser) -> None: ...
|
||||||
def _test_enable_callback(self, option: Any, opt: Any, value: Any, parser: Any) -> None: ...
|
def _test_enable_callback(self, option, opt, value, parser) -> None: ...
|
||||||
def load(self) -> None: ...
|
def load(self) -> None: ...
|
||||||
def save(self) -> None: ...
|
def save(self) -> None: ...
|
||||||
def get(self, key: Any, default: Optional[Any] = ...): ...
|
def get(self, key, default: Optional[Any] = ...): ...
|
||||||
def pop(self, key: Any, default: Optional[Any] = ...): ...
|
def pop(self, key, default: Optional[Any] = ...): ...
|
||||||
def get_misc(self, sect: Any, key: Any, default: Optional[Any] = ...): ...
|
def get_misc(self, sect, key, default: Optional[Any] = ...): ...
|
||||||
def __setitem__(self, key: Any, value: Any) -> None: ...
|
def __setitem__(self, key, value) -> None: ...
|
||||||
def __getitem__(self, key: Any): ...
|
def __getitem__(self, key): ...
|
||||||
@property
|
@property
|
||||||
def addons_data_dir(self): ...
|
def addons_data_dir(self): ...
|
||||||
@property
|
@property
|
||||||
def session_dir(self): ...
|
def session_dir(self): ...
|
||||||
def filestore(self, dbname: Any): ...
|
def filestore(self, dbname): ...
|
||||||
def set_admin_password(self, new_password: Any) -> None: ...
|
def set_admin_password(self, new_password) -> None: ...
|
||||||
def verify_admin_password(self, password: Any): ...
|
def verify_admin_password(self, password): ...
|
||||||
|
|
||||||
config: Any
|
config: Any
|
||||||
|
|||||||
@@ -4,56 +4,56 @@ _logger: Any
|
|||||||
safe_eval: Any
|
safe_eval: Any
|
||||||
|
|
||||||
class ParseError(Exception):
|
class ParseError(Exception):
|
||||||
msg: Any = ...
|
msg: Any
|
||||||
text: Any = ...
|
text: Any
|
||||||
filename: Any = ...
|
filename: Any
|
||||||
lineno: Any = ...
|
lineno: Any
|
||||||
def __init__(self, msg: Any, text: Any, filename: Any, lineno: Any) -> None: ...
|
def __init__(self, msg, text, filename, lineno) -> None: ...
|
||||||
def __str__(self): ...
|
def __str__(self): ...
|
||||||
|
|
||||||
class RecordDictWrapper(dict):
|
class RecordDictWrapper(dict):
|
||||||
record: Any = ...
|
record: Any
|
||||||
def __init__(self, record: Any) -> None: ...
|
def __init__(self, record) -> None: ...
|
||||||
def __getitem__(self, key: Any): ...
|
def __getitem__(self, key): ...
|
||||||
|
|
||||||
def _get_idref(self, env: Any, model_str: Any, idref: Any): ...
|
def _get_idref(self, env, model_str, idref): ...
|
||||||
def _fix_multiple_roots(node: Any) -> None: ...
|
def _fix_multiple_roots(node) -> None: ...
|
||||||
def _eval_xml(self, node: Any, env: Any): ...
|
def _eval_xml(self, node, env): ...
|
||||||
def str2bool(value: Any): ...
|
def str2bool(value): ...
|
||||||
|
|
||||||
class xml_import:
|
class xml_import:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def nodeattr2bool(node: Any, attr: Any, default: bool = ...): ...
|
def nodeattr2bool(node, attr, default: bool = ...): ...
|
||||||
def isnoupdate(self, data_node: Optional[Any] = ...): ...
|
def isnoupdate(self, data_node: Optional[Any] = ...): ...
|
||||||
def get_context(self, data_node: Any, node: Any, eval_dict: Any): ...
|
def get_context(self, data_node, node, eval_dict): ...
|
||||||
def get_uid(self, data_node: Any, node: Any): ...
|
def get_uid(self, data_node, node): ...
|
||||||
def make_xml_id(self, xml_id: Any): ...
|
def make_xml_id(self, xml_id): ...
|
||||||
def _test_xml_id(self, xml_id: Any) -> None: ...
|
def _test_xml_id(self, xml_id) -> None: ...
|
||||||
def _tag_delete(self, rec: Any, data_node: Optional[Any] = ..., mode: Optional[Any] = ...) -> None: ...
|
def _tag_delete(self, rec, data_node: Optional[Any] = ..., mode: Optional[Any] = ...) -> None: ...
|
||||||
def _tag_report(self, rec: Any, data_node: Optional[Any] = ..., mode: Optional[Any] = ...): ...
|
def _tag_report(self, rec, data_node: Optional[Any] = ..., mode: Optional[Any] = ...): ...
|
||||||
def _tag_function(self, rec: Any, data_node: Optional[Any] = ..., mode: Optional[Any] = ...) -> None: ...
|
def _tag_function(self, rec, data_node: Optional[Any] = ..., mode: Optional[Any] = ...) -> None: ...
|
||||||
def _tag_act_window(self, rec: Any, data_node: Optional[Any] = ..., mode: Optional[Any] = ...) -> None: ...
|
def _tag_act_window(self, rec, data_node: Optional[Any] = ..., mode: Optional[Any] = ...) -> None: ...
|
||||||
def _tag_menuitem(self, rec: Any, data_node: Optional[Any] = ..., mode: Optional[Any] = ...) -> None: ...
|
def _tag_menuitem(self, rec, data_node: Optional[Any] = ..., mode: Optional[Any] = ...) -> None: ...
|
||||||
def _assert_equals(self, f1: Any, f2: Any, prec: int = ...): ...
|
def _assert_equals(self, f1, f2, prec: int = ...): ...
|
||||||
def _tag_assert(self, rec: Any, data_node: Optional[Any] = ..., mode: Optional[Any] = ...) -> None: ...
|
def _tag_assert(self, rec, data_node: Optional[Any] = ..., mode: Optional[Any] = ...) -> None: ...
|
||||||
def _tag_record(self, rec: Any, data_node: Optional[Any] = ..., mode: Optional[Any] = ...): ...
|
def _tag_record(self, rec, data_node: Optional[Any] = ..., mode: Optional[Any] = ...): ...
|
||||||
def _tag_template(self, el: Any, data_node: Optional[Any] = ..., mode: Optional[Any] = ...): ...
|
def _tag_template(self, el, data_node: Optional[Any] = ..., mode: Optional[Any] = ...): ...
|
||||||
def id_get(self, id_str: Any, raise_if_not_found: bool = ...): ...
|
def id_get(self, id_str, raise_if_not_found: bool = ...): ...
|
||||||
def model_id_get(self, id_str: Any, raise_if_not_found: bool = ...): ...
|
def model_id_get(self, id_str, raise_if_not_found: bool = ...): ...
|
||||||
def parse(self, de: Any, mode: Optional[Any] = ...): ...
|
def parse(self, de, mode: Optional[Any] = ...): ...
|
||||||
mode: Any = ...
|
mode: Any
|
||||||
module: Any = ...
|
module: Any
|
||||||
env: Any = ...
|
env: Any
|
||||||
cr: Any = ...
|
cr: Any
|
||||||
uid: Any = ...
|
uid: Any
|
||||||
idref: Any = ...
|
idref: Any
|
||||||
assertion_report: Any = ...
|
assertion_report: Any
|
||||||
noupdate: Any = ...
|
noupdate: Any
|
||||||
xml_filename: Any = ...
|
xml_filename: Any
|
||||||
_tags: Any = ...
|
_tags: Any
|
||||||
def __init__(self, cr: Any, module: Any, idref: Any, mode: Any, report: Optional[Any] = ..., noupdate: bool = ..., xml_filename: Optional[Any] = ...) -> None: ...
|
def __init__(self, cr, module, idref, mode, report: Optional[Any] = ..., noupdate: bool = ..., xml_filename: Optional[Any] = ...) -> None: ...
|
||||||
|
|
||||||
def convert_file(cr: Any, module: Any, filename: Any, idref: Any, mode: str = ..., noupdate: bool = ..., kind: Optional[Any] = ..., report: Optional[Any] = ..., pathname: Optional[Any] = ...) -> None: ...
|
def convert_file(cr, module, filename, idref, mode: str = ..., noupdate: bool = ..., kind: Optional[Any] = ..., report: Optional[Any] = ..., pathname: Optional[Any] = ...) -> None: ...
|
||||||
def convert_sql_import(cr: Any, fp: Any) -> None: ...
|
def convert_sql_import(cr, fp) -> None: ...
|
||||||
def convert_csv_import(cr: Any, module: Any, fname: Any, csvcontent: Any, idref: Optional[Any] = ..., mode: str = ..., noupdate: bool = ...) -> None: ...
|
def convert_csv_import(cr, module, fname, csvcontent, idref: Optional[Any] = ..., mode: str = ..., noupdate: bool = ...) -> None: ...
|
||||||
def convert_xml_import(cr: Any, module: Any, xmlfile: Any, idref: Optional[Any] = ..., mode: str = ..., noupdate: bool = ..., report: Optional[Any] = ...): ...
|
def convert_xml_import(cr, module, xmlfile, idref: Optional[Any] = ..., mode: str = ..., noupdate: bool = ..., report: Optional[Any] = ...): ...
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
import datetime
|
import datetime
|
||||||
from dateutil.relativedelta import relativedelta
|
from dateutil.relativedelta import relativedelta
|
||||||
|
|
||||||
from typing import Any, Tuple, Iterator, TypeVar
|
from typing import Tuple, Iterator, TypeVar
|
||||||
|
|
||||||
_T = TypeVar('_T', datetime.date, datetime.datetime)
|
_T = TypeVar('_T', datetime.date, datetime.datetime)
|
||||||
|
|
||||||
|
|
||||||
def get_month(date: _T) -> Tuple[_T, _T]: ...
|
def get_month(date: _T) -> Tuple[_T, _T]: ...
|
||||||
def get_quarter_number(date: Any) -> int: ...
|
def get_quarter_number(date) -> int: ...
|
||||||
def get_quarter(date: _T) -> Tuple[_T, _T]: ...
|
def get_quarter(date: _T) -> Tuple[_T, _T]: ...
|
||||||
def get_fiscal_year(date: _T, day: int = ..., month: int = ...) -> Tuple[_T, _T]: ...
|
def get_fiscal_year(date: _T, day: int = ..., month: int = ...) -> Tuple[_T, _T]: ...
|
||||||
def start_of(value: _T, granularity: Any) -> _T: ...
|
def start_of(value: _T, granularity) -> _T: ...
|
||||||
def end_of(value: _T, granularity: Any) -> _T: ...
|
def end_of(value: _T, granularity) -> _T: ...
|
||||||
def add(value: _T, *args: Any, **kwargs: Any) -> _T: ...
|
def add(value: _T, *args, **kwargs) -> _T: ...
|
||||||
def subtract(value: _T, *args: Any, **kwargs: Any) -> _T: ...
|
def subtract(value: _T, *args, **kwargs) -> _T: ...
|
||||||
def json_default(obj: Any) -> str: ...
|
def json_default(obj) -> str: ...
|
||||||
def date_range(start: datetime.datetime, end: datetime.datetime, step: relativedelta = ...) -> Iterator[datetime.datetime]: ...
|
def date_range(start: datetime.datetime, end: datetime.datetime, step: relativedelta = ...) -> Iterator[datetime.datetime]: ...
|
||||||
|
|||||||
@@ -3,4 +3,4 @@ from typing import Any
|
|||||||
_logger: Any
|
_logger: Any
|
||||||
SUPPORTED_DEBUGGER: Any
|
SUPPORTED_DEBUGGER: Any
|
||||||
|
|
||||||
def post_mortem(config: Any, info: Any) -> None: ...
|
def post_mortem(config, info) -> None: ...
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
def round(f: Any): ...
|
def round(f): ...
|
||||||
round = round
|
round = round
|
||||||
|
|
||||||
def _float_check_precision(precision_digits: Optional[Any] = ..., precision_rounding: Optional[Any] = ...): ...
|
def _float_check_precision(precision_digits: Optional[Any] = ..., precision_rounding: Optional[Any] = ...): ...
|
||||||
def float_round(value: Any, precision_digits: Optional[Any] = ..., precision_rounding: Optional[Any] = ..., rounding_method: str = ...): ...
|
def float_round(value, precision_digits: Optional[Any] = ..., precision_rounding: Optional[Any] = ..., rounding_method: str = ...): ...
|
||||||
def float_is_zero(value: Any, precision_digits: Optional[Any] = ..., precision_rounding: Optional[Any] = ...): ...
|
def float_is_zero(value, precision_digits: Optional[Any] = ..., precision_rounding: Optional[Any] = ...): ...
|
||||||
def float_compare(value1: Any, value2: Any, precision_digits: Optional[Any] = ..., precision_rounding: Optional[Any] = ...): ...
|
def float_compare(value1, value2, precision_digits: Optional[Any] = ..., precision_rounding: Optional[Any] = ...): ...
|
||||||
def float_repr(value: Any, precision_digits: Any): ...
|
def float_repr(value, precision_digits): ...
|
||||||
_float_repr = float_repr
|
_float_repr = float_repr
|
||||||
|
|
||||||
def float_split_str(value: Any, precision_digits: Any): ...
|
def float_split_str(value, precision_digits): ...
|
||||||
def float_split(value: Any, precision_digits: Any): ...
|
def float_split(value, precision_digits): ...
|
||||||
|
|||||||
@@ -4,97 +4,97 @@ from typing import Any
|
|||||||
__all__: Any
|
__all__: Any
|
||||||
|
|
||||||
class lazy_property:
|
class lazy_property:
|
||||||
fget: Any = ...
|
fget: Any
|
||||||
def __init__(self, fget: Any) -> None: ...
|
def __init__(self, fget) -> None: ...
|
||||||
def __get__(self, obj: Any, cls: Any): ...
|
def __get__(self, obj, cls): ...
|
||||||
@property
|
@property
|
||||||
def __doc__(self): ...
|
def __doc__(self): ...
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def reset_all(obj: Any) -> None: ...
|
def reset_all(obj) -> None: ...
|
||||||
|
|
||||||
class lazy_classproperty(lazy_property):
|
class lazy_classproperty(lazy_property):
|
||||||
def __get__(self, obj: Any, cls: Any): ...
|
def __get__(self, obj, cls): ...
|
||||||
|
|
||||||
def conditional(condition: Any, decorator: Any): ...
|
def conditional(condition, decorator): ...
|
||||||
def synchronized(lock_attr: str = ...): ...
|
def synchronized(lock_attr: str = ...): ...
|
||||||
def frame_codeinfo(fframe: Any, back: int = ...): ...
|
def frame_codeinfo(fframe, back: int = ...): ...
|
||||||
def compose(a: Any, b: Any): ...
|
def compose(a, b): ...
|
||||||
|
|
||||||
class _ClassProperty(property):
|
class _ClassProperty(property):
|
||||||
def __get__(self, cls: Any, owner: Any): ...
|
def __get__(self, cls, owner): ...
|
||||||
|
|
||||||
def classproperty(func: Any): ...
|
def classproperty(func): ...
|
||||||
|
|
||||||
class lazy:
|
class lazy:
|
||||||
__slots__: Any = ...
|
__slots__: Any
|
||||||
def __init__(self, func: Any, *args: Any, **kwargs: Any) -> None: ...
|
def __init__(self, func, *args, **kwargs) -> None: ...
|
||||||
@property
|
@property
|
||||||
def _value(self): ...
|
def _value(self): ...
|
||||||
def __getattr__(self, name: Any): ...
|
def __getattr__(self, name): ...
|
||||||
def __setattr__(self, name: Any, value: Any): ...
|
def __setattr__(self, name, value): ...
|
||||||
def __delattr__(self, name: Any): ...
|
def __delattr__(self, name): ...
|
||||||
def __repr__(self): ...
|
def __repr__(self): ...
|
||||||
def __str__(self): ...
|
def __str__(self): ...
|
||||||
def __bytes__(self): ...
|
def __bytes__(self): ...
|
||||||
def __format__(self, format_spec: Any): ...
|
def __format__(self, format_spec): ...
|
||||||
def __lt__(self, other: Any) -> Any: ...
|
def __lt__(self, other) -> Any: ...
|
||||||
def __le__(self, other: Any) -> Any: ...
|
def __le__(self, other) -> Any: ...
|
||||||
def __eq__(self, other: Any) -> Any: ...
|
def __eq__(self, other) -> Any: ...
|
||||||
def __ne__(self, other: Any) -> Any: ...
|
def __ne__(self, other) -> Any: ...
|
||||||
def __gt__(self, other: Any) -> Any: ...
|
def __gt__(self, other) -> Any: ...
|
||||||
def __ge__(self, other: Any) -> Any: ...
|
def __ge__(self, other) -> Any: ...
|
||||||
def __hash__(self) -> Any: ...
|
def __hash__(self) -> Any: ...
|
||||||
def __bool__(self): ...
|
def __bool__(self): ...
|
||||||
def __call__(self, *args: Any, **kwargs: Any): ...
|
def __call__(self, *args, **kwargs): ...
|
||||||
def __len__(self): ...
|
def __len__(self): ...
|
||||||
def __getitem__(self, key: Any): ...
|
def __getitem__(self, key): ...
|
||||||
def __missing__(self, key: Any): ...
|
def __missing__(self, key): ...
|
||||||
def __setitem__(self, key: Any, value: Any) -> None: ...
|
def __setitem__(self, key, value) -> None: ...
|
||||||
def __delitem__(self, key: Any) -> None: ...
|
def __delitem__(self, key) -> None: ...
|
||||||
def __iter__(self) -> Any: ...
|
def __iter__(self) -> Any: ...
|
||||||
def __reversed__(self): ...
|
def __reversed__(self): ...
|
||||||
def __contains__(self, key: Any): ...
|
def __contains__(self, key): ...
|
||||||
def __add__(self, other: Any): ...
|
def __add__(self, other): ...
|
||||||
def __sub__(self, other: Any): ...
|
def __sub__(self, other): ...
|
||||||
def __mul__(self, other: Any): ...
|
def __mul__(self, other): ...
|
||||||
def __matmul__(self, other: Any): ...
|
def __matmul__(self, other): ...
|
||||||
def __truediv__(self, other: Any): ...
|
def __truediv__(self, other): ...
|
||||||
def __floordiv__(self, other: Any): ...
|
def __floordiv__(self, other): ...
|
||||||
def __mod__(self, other: Any): ...
|
def __mod__(self, other): ...
|
||||||
def __divmod__(self, other: Any): ...
|
def __divmod__(self, other): ...
|
||||||
def __pow__(self, other: Any): ...
|
def __pow__(self, other): ...
|
||||||
def __lshift__(self, other: Any): ...
|
def __lshift__(self, other): ...
|
||||||
def __rshift__(self, other: Any): ...
|
def __rshift__(self, other): ...
|
||||||
def __and__(self, other: Any): ...
|
def __and__(self, other): ...
|
||||||
def __xor__(self, other: Any): ...
|
def __xor__(self, other): ...
|
||||||
def __or__(self, other: Any): ...
|
def __or__(self, other): ...
|
||||||
def __radd__(self, other: Any): ...
|
def __radd__(self, other): ...
|
||||||
def __rsub__(self, other: Any): ...
|
def __rsub__(self, other): ...
|
||||||
def __rmul__(self, other: Any): ...
|
def __rmul__(self, other): ...
|
||||||
def __rmatmul__(self, other: Any): ...
|
def __rmatmul__(self, other): ...
|
||||||
def __rtruediv__(self, other: Any): ...
|
def __rtruediv__(self, other): ...
|
||||||
def __rfloordiv__(self, other: Any): ...
|
def __rfloordiv__(self, other): ...
|
||||||
def __rmod__(self, other: Any): ...
|
def __rmod__(self, other): ...
|
||||||
def __rdivmod__(self, other: Any): ...
|
def __rdivmod__(self, other): ...
|
||||||
def __rpow__(self, other: Any): ...
|
def __rpow__(self, other): ...
|
||||||
def __rlshift__(self, other: Any): ...
|
def __rlshift__(self, other): ...
|
||||||
def __rrshift__(self, other: Any): ...
|
def __rrshift__(self, other): ...
|
||||||
def __rand__(self, other: Any): ...
|
def __rand__(self, other): ...
|
||||||
def __rxor__(self, other: Any): ...
|
def __rxor__(self, other): ...
|
||||||
def __ror__(self, other: Any): ...
|
def __ror__(self, other): ...
|
||||||
def __iadd__(self, other: Any): ...
|
def __iadd__(self, other): ...
|
||||||
def __isub__(self, other: Any): ...
|
def __isub__(self, other): ...
|
||||||
def __imul__(self, other: Any): ...
|
def __imul__(self, other): ...
|
||||||
def __imatmul__(self, other: Any): ...
|
def __imatmul__(self, other): ...
|
||||||
def __itruediv__(self, other: Any): ...
|
def __itruediv__(self, other): ...
|
||||||
def __ifloordiv__(self, other: Any): ...
|
def __ifloordiv__(self, other): ...
|
||||||
def __imod__(self, other: Any): ...
|
def __imod__(self, other): ...
|
||||||
def __ipow__(self, other: Any): ...
|
def __ipow__(self, other): ...
|
||||||
def __ilshift__(self, other: Any): ...
|
def __ilshift__(self, other): ...
|
||||||
def __irshift__(self, other: Any): ...
|
def __irshift__(self, other): ...
|
||||||
def __iand__(self, other: Any): ...
|
def __iand__(self, other): ...
|
||||||
def __ixor__(self, other: Any): ...
|
def __ixor__(self, other): ...
|
||||||
def __ior__(self, other: Any): ...
|
def __ior__(self, other): ...
|
||||||
def __neg__(self): ...
|
def __neg__(self): ...
|
||||||
def __pos__(self): ...
|
def __pos__(self): ...
|
||||||
def __abs__(self): ...
|
def __abs__(self): ...
|
||||||
@@ -108,9 +108,9 @@ class lazy:
|
|||||||
def __floor__(self): ...
|
def __floor__(self): ...
|
||||||
def __ceil__(self): ...
|
def __ceil__(self): ...
|
||||||
def __enter__(self): ...
|
def __enter__(self): ...
|
||||||
def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any): ...
|
def __exit__(self, exc_type, exc_value, traceback): ...
|
||||||
def __await__(self): ...
|
def __await__(self): ...
|
||||||
def __aiter__(self): ...
|
def __aiter__(self): ...
|
||||||
def __anext__(self): ...
|
def __anext__(self): ...
|
||||||
def __aenter__(self): ...
|
def __aenter__(self): ...
|
||||||
def __aexit__(self, exc_type: Any, exc_value: Any, traceback: Any): ...
|
def __aexit__(self, exc_type, exc_value, traceback): ...
|
||||||
|
|||||||
@@ -1,54 +1,54 @@
|
|||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
class graph:
|
class graph:
|
||||||
nodes: Any = ...
|
nodes: Any
|
||||||
edges: Any = ...
|
edges: Any
|
||||||
no_ancester: Any = ...
|
no_ancester: Any
|
||||||
transitions: Any = ...
|
transitions: Any
|
||||||
result: Any = ...
|
result: Any
|
||||||
def __init__(self, nodes: Any, transitions: Any, no_ancester: Optional[Any] = ...) -> None: ...
|
def __init__(self, nodes, transitions, no_ancester: Optional[Any] = ...) -> None: ...
|
||||||
edge_wt: Any = ...
|
edge_wt: Any
|
||||||
def init_rank(self) -> None: ...
|
def init_rank(self) -> None: ...
|
||||||
reachable_nodes: Any = ...
|
reachable_nodes: Any
|
||||||
tree_edges: Any = ...
|
tree_edges: Any
|
||||||
def tight_tree(self): ...
|
def tight_tree(self): ...
|
||||||
def reachable_node(self, node: Any) -> None: ...
|
def reachable_node(self, node) -> None: ...
|
||||||
cut_edges: Any = ...
|
cut_edges: Any
|
||||||
head_nodes: Any = ...
|
head_nodes: Any
|
||||||
def init_cutvalues(self) -> None: ...
|
def init_cutvalues(self) -> None: ...
|
||||||
def head_component(self, node: Any, rest_edges: Any) -> None: ...
|
def head_component(self, node, rest_edges) -> None: ...
|
||||||
def process_ranking(self, node: Any, level: int = ...) -> None: ...
|
def process_ranking(self, node, level: int = ...) -> None: ...
|
||||||
def make_acyclic(self, parent: Any, node: Any, level: Any, tree: Any): ...
|
def make_acyclic(self, parent, node, level, tree): ...
|
||||||
def rev_edges(self, tree: Any): ...
|
def rev_edges(self, tree): ...
|
||||||
def exchange(self, e: Any, f: Any) -> None: ...
|
def exchange(self, e, f) -> None: ...
|
||||||
def enter_edge(self, edge: Any): ...
|
def enter_edge(self, edge): ...
|
||||||
def leave_edge(self): ...
|
def leave_edge(self): ...
|
||||||
def finalize_rank(self, node: Any, level: Any) -> None: ...
|
def finalize_rank(self, node, level) -> None: ...
|
||||||
def normalize(self) -> None: ...
|
def normalize(self) -> None: ...
|
||||||
def make_chain(self) -> None: ...
|
def make_chain(self) -> None: ...
|
||||||
def init_order(self, node: Any, level: Any) -> None: ...
|
def init_order(self, node, level) -> None: ...
|
||||||
def order_heuristic(self) -> None: ...
|
def order_heuristic(self) -> None: ...
|
||||||
def wmedian(self) -> None: ...
|
def wmedian(self) -> None: ...
|
||||||
def median_value(self, node: Any, adj_rank: Any): ...
|
def median_value(self, node, adj_rank): ...
|
||||||
def adj_position(self, node: Any, adj_rank: Any): ...
|
def adj_position(self, node, adj_rank): ...
|
||||||
levels: Any = ...
|
levels: Any
|
||||||
def preprocess_order(self) -> None: ...
|
def preprocess_order(self) -> None: ...
|
||||||
def graph_order(self) -> None: ...
|
def graph_order(self) -> None: ...
|
||||||
def tree_order(self, node: Any, last: int = ...): ...
|
def tree_order(self, node, last: int = ...): ...
|
||||||
max_order: Any = ...
|
max_order: Any
|
||||||
def process_order(self) -> None: ...
|
def process_order(self) -> None: ...
|
||||||
partial_order: Any = ...
|
partial_order: Any
|
||||||
def find_starts(self) -> None: ...
|
def find_starts(self) -> None: ...
|
||||||
critical_edges: Any = ...
|
critical_edges: Any
|
||||||
links: Any = ...
|
links: Any
|
||||||
Is_Cyclic: bool = ...
|
Is_Cyclic: bool
|
||||||
def rank(self) -> None: ...
|
def rank(self) -> None: ...
|
||||||
order: Any = ...
|
order: Any
|
||||||
def order_in_rank(self): ...
|
def order_in_rank(self): ...
|
||||||
start_nodes: Any = ...
|
start_nodes: Any
|
||||||
tree_list: Any = ...
|
tree_list: Any
|
||||||
start: Any = ...
|
start: Any
|
||||||
def process(self, starting_node: Any) -> None: ...
|
def process(self, starting_node) -> None: ...
|
||||||
def __str__(self): ...
|
def __str__(self): ...
|
||||||
def scale(self, maxx: Any, maxy: Any, nwidth: int = ..., nheight: int = ..., margin: int = ...) -> None: ...
|
def scale(self, maxx, maxy, nwidth: int = ..., nheight: int = ..., margin: int = ...) -> None: ...
|
||||||
def result_get(self): ...
|
def result_get(self): ...
|
||||||
|
|||||||
@@ -2,14 +2,14 @@ from typing import Any, Optional
|
|||||||
|
|
||||||
FILETYPE_BASE64_MAGICWORD: Any
|
FILETYPE_BASE64_MAGICWORD: Any
|
||||||
|
|
||||||
def image_resize_image(base64_source: Any, size: Any = ..., encoding: str = ..., filetype: Optional[Any] = ..., avoid_if_small: bool = ..., upper_limit: bool = ...): ...
|
def image_resize_image(base64_source, size=..., encoding: str = ..., filetype: Optional[Any] = ..., avoid_if_small: bool = ..., upper_limit: bool = ...): ...
|
||||||
def image_resize_and_sharpen(image: Any, size: Any, preserve_aspect_ratio: bool = ..., factor: float = ..., upper_limit: bool = ...): ...
|
def image_resize_and_sharpen(image, size, preserve_aspect_ratio: bool = ..., factor: float = ..., upper_limit: bool = ...): ...
|
||||||
def image_save_for_web(image: Any, fp: Optional[Any] = ..., format: Optional[Any] = ...): ...
|
def image_save_for_web(image, fp: Optional[Any] = ..., format: Optional[Any] = ...): ...
|
||||||
def image_resize_image_big(base64_source: Any, size: Any = ..., encoding: str = ..., filetype: Optional[Any] = ..., avoid_if_small: bool = ...): ...
|
def image_resize_image_big(base64_source, size=..., encoding: str = ..., filetype: Optional[Any] = ..., avoid_if_small: bool = ...): ...
|
||||||
def image_resize_image_medium(base64_source: Any, size: Any = ..., encoding: str = ..., filetype: Optional[Any] = ..., avoid_if_small: bool = ...): ...
|
def image_resize_image_medium(base64_source, size=..., encoding: str = ..., filetype: Optional[Any] = ..., avoid_if_small: bool = ...): ...
|
||||||
def image_resize_image_small(base64_source: Any, size: Any = ..., encoding: str = ..., filetype: Optional[Any] = ..., avoid_if_small: bool = ...): ...
|
def image_resize_image_small(base64_source, size=..., encoding: str = ..., filetype: Optional[Any] = ..., avoid_if_small: bool = ...): ...
|
||||||
def crop_image(data: Any, type: str = ..., ratio: bool = ..., size: Optional[Any] = ..., image_format: Optional[Any] = ...): ...
|
def crop_image(data, type: str = ..., ratio: bool = ..., size: Optional[Any] = ..., image_format: Optional[Any] = ...): ...
|
||||||
def image_colorize(original: Any, randomize: bool = ..., color: Any = ...): ...
|
def image_colorize(original, randomize: bool = ..., color: Any = ...): ...
|
||||||
def image_get_resized_images(base64_source: Any, return_big: bool = ..., return_medium: bool = ..., return_small: bool = ..., big_name: str = ..., medium_name: str = ..., small_name: str = ..., avoid_resize_big: bool = ..., avoid_resize_medium: bool = ..., avoid_resize_small: bool = ..., sizes: Any = ...): ...
|
def image_get_resized_images(base64_source, return_big: bool = ..., return_medium: bool = ..., return_small: bool = ..., big_name: str = ..., medium_name: str = ..., small_name: str = ..., avoid_resize_big: bool = ..., avoid_resize_medium: bool = ..., avoid_resize_small: bool = ..., sizes: Any = ...): ...
|
||||||
def image_resize_images(vals: Any, big_name: str = ..., medium_name: str = ..., small_name: str = ..., sizes: Any = ...) -> None: ...
|
def image_resize_images(vals, big_name: str = ..., medium_name: str = ..., small_name: str = ..., sizes: Any = ...) -> None: ...
|
||||||
def image_data_uri(base64_source: Any): ...
|
def image_data_uri(base64_source): ...
|
||||||
|
|||||||
@@ -3,30 +3,30 @@ from typing import Any, Optional
|
|||||||
__all__: Any
|
__all__: Any
|
||||||
|
|
||||||
class LRUNode:
|
class LRUNode:
|
||||||
__slots__: Any = ...
|
__slots__: Any
|
||||||
prev: Any = ...
|
prev: Any
|
||||||
me: Any = ...
|
me: Any
|
||||||
next: Any = ...
|
next: Any
|
||||||
def __init__(self, prev: Any, me: Any) -> None: ...
|
def __init__(self, prev, me) -> None: ...
|
||||||
|
|
||||||
class LRU:
|
class LRU:
|
||||||
_lock: Any = ...
|
_lock: Any
|
||||||
count: Any = ...
|
count: Any
|
||||||
d: Any = ...
|
d: Any
|
||||||
first: Any = ...
|
first: Any
|
||||||
last: Any = ...
|
last: Any
|
||||||
def __init__(self, count: Any, pairs: Any = ...) -> None: ...
|
def __init__(self, count, pairs: Any = ...) -> None: ...
|
||||||
def __contains__(self, obj: Any): ...
|
def __contains__(self, obj): ...
|
||||||
def get(self, obj: Any, val: Optional[Any] = ...): ...
|
def get(self, obj, val: Optional[Any] = ...): ...
|
||||||
def __getitem__(self, obj: Any): ...
|
def __getitem__(self, obj): ...
|
||||||
def __setitem__(self, obj: Any, val: Any) -> None: ...
|
def __setitem__(self, obj, val) -> None: ...
|
||||||
def __delitem__(self, obj: Any) -> None: ...
|
def __delitem__(self, obj) -> None: ...
|
||||||
def __iter__(self) -> Any: ...
|
def __iter__(self) -> Any: ...
|
||||||
def __len__(self): ...
|
def __len__(self): ...
|
||||||
def iteritems(self) -> None: ...
|
def iteritems(self) -> None: ...
|
||||||
items: Any = ...
|
items: Any
|
||||||
def iterkeys(self): ...
|
def iterkeys(self): ...
|
||||||
def itervalues(self): ...
|
def itervalues(self): ...
|
||||||
def keys(self): ...
|
def keys(self): ...
|
||||||
def pop(self, key: Any): ...
|
def pop(self, key): ...
|
||||||
def clear(self) -> None: ...
|
def clear(self) -> None: ...
|
||||||
|
|||||||
@@ -8,21 +8,21 @@ allowed_tags: Any
|
|||||||
safe_attrs: Any
|
safe_attrs: Any
|
||||||
|
|
||||||
class _Cleaner(clean.Cleaner):
|
class _Cleaner(clean.Cleaner):
|
||||||
_style_re: Any = ...
|
_style_re: Any
|
||||||
_style_whitelist: Any = ...
|
_style_whitelist: Any
|
||||||
strip_classes: bool = ...
|
strip_classes: bool
|
||||||
sanitize_style: bool = ...
|
sanitize_style: bool
|
||||||
def __call__(self, doc: Any) -> None: ...
|
def __call__(self, doc) -> None: ...
|
||||||
def tag_quote(self, el: Any): ...
|
def tag_quote(self, el): ...
|
||||||
def strip_class(self, el: Any) -> None: ...
|
def strip_class(self, el) -> None: ...
|
||||||
def parse_style(self, el: Any) -> None: ...
|
def parse_style(self, el) -> None: ...
|
||||||
def allow_element(self, el: Any): ...
|
def allow_element(self, el): ...
|
||||||
|
|
||||||
def html_sanitize(src: Any, silent: bool = ..., sanitize_tags: bool = ..., sanitize_attributes: bool = ..., sanitize_style: bool = ..., strip_style: bool = ..., strip_classes: bool = ...): ...
|
def html_sanitize(src, silent: bool = ..., sanitize_tags: bool = ..., sanitize_attributes: bool = ..., sanitize_style: bool = ..., strip_style: bool = ..., strip_classes: bool = ...): ...
|
||||||
def html_keep_url(text: Any): ...
|
def html_keep_url(text): ...
|
||||||
def html2plaintext(html: Any, body_id: Optional[Any] = ..., encoding: str = ...): ...
|
def html2plaintext(html, body_id: Optional[Any] = ..., encoding: str = ...): ...
|
||||||
def plaintext2html(text: Any, container_tag: bool = ...): ...
|
def plaintext2html(text, container_tag: bool = ...): ...
|
||||||
def append_content_to_html(html: Any, content: Any, plaintext: bool = ..., preserve: bool = ..., container_tag: bool = ...): ...
|
def append_content_to_html(html, content, plaintext: bool = ..., preserve: bool = ..., container_tag: bool = ...): ...
|
||||||
|
|
||||||
email_re: Any
|
email_re: Any
|
||||||
single_email_re: Any
|
single_email_re: Any
|
||||||
@@ -31,11 +31,11 @@ discussion_re: Any
|
|||||||
mail_header_msgid_re: Any
|
mail_header_msgid_re: Any
|
||||||
email_addr_escapes_re: Any
|
email_addr_escapes_re: Any
|
||||||
|
|
||||||
def generate_tracking_message_id(res_id: Any): ...
|
def generate_tracking_message_id(res_id): ...
|
||||||
def email_send(email_from: Any, email_to: Any, subject: Any, body: Any, email_cc: Optional[Any] = ..., email_bcc: Optional[Any] = ..., reply_to: bool = ..., attachments: Optional[Any] = ..., message_id: Optional[Any] = ..., references: Optional[Any] = ..., openobject_id: bool = ..., debug: bool = ..., subtype: str = ..., headers: Optional[Any] = ..., smtp_server: Optional[Any] = ..., smtp_port: Optional[Any] = ..., ssl: bool = ..., smtp_user: Optional[Any] = ..., smtp_password: Optional[Any] = ..., cr: Optional[Any] = ..., uid: Optional[Any] = ...): ...
|
def email_send(email_from, email_to, subject, body, email_cc: Optional[Any] = ..., email_bcc: Optional[Any] = ..., reply_to: bool = ..., attachments: Optional[Any] = ..., message_id: Optional[Any] = ..., references: Optional[Any] = ..., openobject_id: bool = ..., debug: bool = ..., subtype: str = ..., headers: Optional[Any] = ..., smtp_server: Optional[Any] = ..., smtp_port: Optional[Any] = ..., ssl: bool = ..., smtp_user: Optional[Any] = ..., smtp_password: Optional[Any] = ..., cr: Optional[Any] = ..., uid: Optional[Any] = ...): ...
|
||||||
def email_split(text: Any): ...
|
def email_split(text): ...
|
||||||
def email_split_and_format(text: Any): ...
|
def email_split_and_format(text): ...
|
||||||
def email_escape_char(email_address: Any): ...
|
def email_escape_char(email_address): ...
|
||||||
def email_references(references: Any): ...
|
def email_references(references): ...
|
||||||
def decode_smtp_header(smtp_header: Any): ...
|
def decode_smtp_header(smtp_header): ...
|
||||||
def decode_message_header(message: Any, header: Any, separator: str = ...): ...
|
def decode_message_header(message, header, separator: str = ...): ...
|
||||||
|
|||||||
@@ -5,22 +5,22 @@ __all__: Any
|
|||||||
_logger: Any
|
_logger: Any
|
||||||
_ooxml_dirs: Any
|
_ooxml_dirs: Any
|
||||||
|
|
||||||
def _check_ooxml(data: Any): ...
|
def _check_ooxml(data): ...
|
||||||
|
|
||||||
_mime_validator: Any
|
_mime_validator: Any
|
||||||
|
|
||||||
def _check_open_container_format(data: Any): ...
|
def _check_open_container_format(data): ...
|
||||||
|
|
||||||
_xls_pattern: Any
|
_xls_pattern: Any
|
||||||
_ppt_pattern: Any
|
_ppt_pattern: Any
|
||||||
|
|
||||||
def _check_olecf(data: Any): ...
|
def _check_olecf(data): ...
|
||||||
def _check_svg(data: Any): ...
|
def _check_svg(data): ...
|
||||||
|
|
||||||
_Entry = namedtuple('_Entry', ['mimetype', 'signatures', 'discriminants'])
|
_Entry = namedtuple('_Entry', ['mimetype', 'signatures', 'discriminants'])
|
||||||
_mime_mappings: Any
|
_mime_mappings: Any
|
||||||
|
|
||||||
def guess_mimetype(bin_data: Any, default: str = ...): ...
|
def guess_mimetype(bin_data, default: str = ...): ...
|
||||||
|
|
||||||
guess_mimetype: Any
|
guess_mimetype: Any
|
||||||
ms: Any
|
ms: Any
|
||||||
|
|||||||
@@ -10,39 +10,39 @@ from typing import Any, Optional
|
|||||||
_logger: Any
|
_logger: Any
|
||||||
SKIPPED_ELEMENT_TYPES: Any
|
SKIPPED_ELEMENT_TYPES: Any
|
||||||
|
|
||||||
def find_in_path(name: Any): ...
|
def find_in_path(name): ...
|
||||||
def _exec_pipe(prog: Any, args: Any, env: Optional[Any] = ...): ...
|
def _exec_pipe(prog, args, env: Optional[Any] = ...): ...
|
||||||
def exec_command_pipe(name: Any, *args: Any): ...
|
def exec_command_pipe(name, *args): ...
|
||||||
def find_pg_tool(name: Any): ...
|
def find_pg_tool(name): ...
|
||||||
def exec_pg_environ(): ...
|
def exec_pg_environ(): ...
|
||||||
def exec_pg_command(name: Any, *args: Any) -> None: ...
|
def exec_pg_command(name, *args) -> None: ...
|
||||||
def exec_pg_command_pipe(name: Any, *args: Any): ...
|
def exec_pg_command_pipe(name, *args): ...
|
||||||
def file_open(name: Any, mode: str = ..., subdir: str = ..., pathinfo: bool = ...): ...
|
def file_open(name, mode: str = ..., subdir: str = ..., pathinfo: bool = ...): ...
|
||||||
def _fileopen(path: Any, mode: Any, basedir: Any, pathinfo: Any, basename: Optional[Any] = ...): ...
|
def _fileopen(path, mode, basedir, pathinfo, basename: Optional[Any] = ...): ...
|
||||||
def flatten(list: Any): ...
|
def flatten(list): ...
|
||||||
def reverse_enumerate(l: Any): ...
|
def reverse_enumerate(l): ...
|
||||||
def partition(pred: Any, elems: Any): ...
|
def partition(pred, elems): ...
|
||||||
def topological_sort(elems: Any): ...
|
def topological_sort(elems): ...
|
||||||
|
|
||||||
class PatchedWorkbook(xlwt.Workbook):
|
class PatchedWorkbook(xlwt.Workbook):
|
||||||
def add_sheet(self, name: Any, cell_overwrite_ok: bool = ...): ...
|
def add_sheet(self, name, cell_overwrite_ok: bool = ...): ...
|
||||||
|
|
||||||
class PatchedXlsxWorkbook(xlsxwriter.Workbook):
|
class PatchedXlsxWorkbook(xlsxwriter.Workbook):
|
||||||
def add_worksheet(self, name: Optional[Any] = ..., **kw: Any): ...
|
def add_worksheet(self, name: Optional[Any] = ..., **kw): ...
|
||||||
|
|
||||||
def to_xml(s: Any): ...
|
def to_xml(s): ...
|
||||||
def get_iso_codes(lang: Any): ...
|
def get_iso_codes(lang): ...
|
||||||
def scan_languages(): ...
|
def scan_languages(): ...
|
||||||
def get_user_companies(cr: Any, user: Any): ...
|
def get_user_companies(cr, user): ...
|
||||||
def mod10r(number: Any): ...
|
def mod10r(number): ...
|
||||||
def str2bool(s: Any, default: Optional[Any] = ...): ...
|
def str2bool(s, default: Optional[Any] = ...): ...
|
||||||
def human_size(sz: Any): ...
|
def human_size(sz): ...
|
||||||
def logged(f: Any): ...
|
def logged(f): ...
|
||||||
|
|
||||||
class profile:
|
class profile:
|
||||||
fname: Any = ...
|
fname: Any
|
||||||
def __init__(self, fname: Optional[Any] = ...) -> None: ...
|
def __init__(self, fname: Optional[Any] = ...) -> None: ...
|
||||||
def __call__(self, f: Any): ...
|
def __call__(self, f): ...
|
||||||
|
|
||||||
def detect_ip_addr(): ...
|
def detect_ip_addr(): ...
|
||||||
|
|
||||||
@@ -53,80 +53,80 @@ DATE_LENGTH: Any
|
|||||||
DATETIME_FORMATS_MAP: Any
|
DATETIME_FORMATS_MAP: Any
|
||||||
POSIX_TO_LDML: Any
|
POSIX_TO_LDML: Any
|
||||||
|
|
||||||
def posix_to_ldml(fmt: Any, locale: Any): ...
|
def posix_to_ldml(fmt, locale): ...
|
||||||
def split_every(n: Any, iterable: Any, piece_maker: Any = ...) -> None: ...
|
def split_every(n, iterable, piece_maker: Any = ...) -> None: ...
|
||||||
def get_and_group_by_field(cr: Any, uid: Any, obj: Any, ids: Any, field: Any, context: Optional[Any] = ...): ...
|
def get_and_group_by_field(cr, uid, obj, ids, field, context: Optional[Any] = ...): ...
|
||||||
def get_and_group_by_company(cr: Any, uid: Any, obj: Any, ids: Any, context: Optional[Any] = ...): ...
|
def get_and_group_by_company(cr, uid, obj, ids, context: Optional[Any] = ...): ...
|
||||||
def resolve_attr(obj: Any, attr: Any): ...
|
def resolve_attr(obj, attr): ...
|
||||||
def attrgetter(*items: Any): ...
|
def attrgetter(*items): ...
|
||||||
def remove_accents(input_str: Any): ...
|
def remove_accents(input_str): ...
|
||||||
|
|
||||||
class unquote(str):
|
class unquote(str):
|
||||||
def __repr__(self): ...
|
def __repr__(self): ...
|
||||||
|
|
||||||
class UnquoteEvalContext(defaultdict):
|
class UnquoteEvalContext(defaultdict):
|
||||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
def __init__(self, *args, **kwargs) -> None: ...
|
||||||
def __missing__(self, key: Any): ...
|
def __missing__(self, key): ...
|
||||||
|
|
||||||
class mute_logger:
|
class mute_logger:
|
||||||
loggers: Any = ...
|
loggers: Any
|
||||||
def __init__(self, *loggers: Any) -> None: ...
|
def __init__(self, *loggers) -> None: ...
|
||||||
def filter(self, record: Any): ...
|
def filter(self, record): ...
|
||||||
def __enter__(self) -> None: ...
|
def __enter__(self) -> None: ...
|
||||||
def __exit__(self, exc_type: Optional[Any] = ..., exc_val: Optional[Any] = ..., exc_tb: Optional[Any] = ...) -> None: ...
|
def __exit__(self, exc_type: Optional[Any] = ..., exc_val: Optional[Any] = ..., exc_tb: Optional[Any] = ...) -> None: ...
|
||||||
def __call__(self, func: Any): ...
|
def __call__(self, func): ...
|
||||||
|
|
||||||
_ph: Any
|
_ph: Any
|
||||||
|
|
||||||
class CountingStream:
|
class CountingStream:
|
||||||
stream: Any = ...
|
stream: Any
|
||||||
index: Any = ...
|
index: Any
|
||||||
stopped: bool = ...
|
stopped: bool
|
||||||
def __init__(self, stream: Any, start: int = ...) -> None: ...
|
def __init__(self, stream, start: int = ...) -> None: ...
|
||||||
def __iter__(self) -> Any: ...
|
def __iter__(self) -> Any: ...
|
||||||
def next(self): ...
|
def next(self): ...
|
||||||
__next__: Any = ...
|
__next__: Any
|
||||||
|
|
||||||
def stripped_sys_argv(*strip_args: Any): ...
|
def stripped_sys_argv(*strip_args): ...
|
||||||
|
|
||||||
class ConstantMapping(Mapping):
|
class ConstantMapping(Mapping):
|
||||||
__slots__: Any = ...
|
__slots__: Any
|
||||||
_value: Any = ...
|
_value: Any
|
||||||
def __init__(self, val: Any) -> None: ...
|
def __init__(self, val) -> None: ...
|
||||||
def __len__(self): ...
|
def __len__(self): ...
|
||||||
def __iter__(self) -> Any: ...
|
def __iter__(self) -> Any: ...
|
||||||
def __getitem__(self, item: Any): ...
|
def __getitem__(self, item): ...
|
||||||
|
|
||||||
def dumpstacks(sig: Optional[Any] = ..., frame: Optional[Any] = ..., thread_idents: Optional[Any] = ...) -> None: ...
|
def dumpstacks(sig: Optional[Any] = ..., frame: Optional[Any] = ..., thread_idents: Optional[Any] = ...) -> None: ...
|
||||||
def freehash(arg: Any): ...
|
def freehash(arg): ...
|
||||||
def clean_context(context: Any): ...
|
def clean_context(context): ...
|
||||||
|
|
||||||
class frozendict(dict):
|
class frozendict(dict):
|
||||||
def __delitem__(self, key: Any) -> None: ...
|
def __delitem__(self, key) -> None: ...
|
||||||
def __setitem__(self, key: Any, val: Any) -> None: ...
|
def __setitem__(self, key, val) -> None: ...
|
||||||
def clear(self) -> None: ...
|
def clear(self) -> None: ...
|
||||||
def pop(self, key: Any, default: Optional[Any] = ...) -> None: ...
|
def pop(self, key, default: Optional[Any] = ...) -> None: ...
|
||||||
def popitem(self) -> None: ...
|
def popitem(self) -> None: ...
|
||||||
def setdefault(self, key: Any, default: Optional[Any] = ...) -> None: ...
|
def setdefault(self, key, default: Optional[Any] = ...) -> None: ...
|
||||||
def update(self, *args: Any, **kwargs: Any) -> None: ...
|
def update(self, *args, **kwargs) -> None: ...
|
||||||
def __hash__(self) -> Any: ...
|
def __hash__(self) -> Any: ...
|
||||||
|
|
||||||
class Collector(Mapping):
|
class Collector(Mapping):
|
||||||
__slots__: Any = ...
|
__slots__: Any
|
||||||
_map: Any = ...
|
_map: Any
|
||||||
def __init__(self) -> None: ...
|
def __init__(self) -> None: ...
|
||||||
def add(self, key: Any, val: Any) -> None: ...
|
def add(self, key, val) -> None: ...
|
||||||
def __getitem__(self, key: Any): ...
|
def __getitem__(self, key): ...
|
||||||
def __iter__(self) -> Any: ...
|
def __iter__(self) -> Any: ...
|
||||||
def __len__(self): ...
|
def __len__(self): ...
|
||||||
|
|
||||||
class StackMap(MutableMapping):
|
class StackMap(MutableMapping):
|
||||||
__slots__: Any = ...
|
__slots__: Any
|
||||||
_maps: Any = ...
|
_maps: Any
|
||||||
def __init__(self, m: Optional[Any] = ...) -> None: ...
|
def __init__(self, m: Optional[Any] = ...) -> None: ...
|
||||||
def __getitem__(self, key: Any): ...
|
def __getitem__(self, key): ...
|
||||||
def __setitem__(self, key: Any, val: Any) -> None: ...
|
def __setitem__(self, key, val) -> None: ...
|
||||||
def __delitem__(self, key: Any) -> None: ...
|
def __delitem__(self, key) -> None: ...
|
||||||
def __iter__(self) -> Any: ...
|
def __iter__(self) -> Any: ...
|
||||||
def __len__(self): ...
|
def __len__(self): ...
|
||||||
def __str__(self): ...
|
def __str__(self): ...
|
||||||
@@ -134,51 +134,51 @@ class StackMap(MutableMapping):
|
|||||||
def popmap(self): ...
|
def popmap(self): ...
|
||||||
|
|
||||||
class OrderedSet(MutableSet):
|
class OrderedSet(MutableSet):
|
||||||
__slots__: Any = ...
|
__slots__: Any
|
||||||
_map: Any = ...
|
_map: Any
|
||||||
def __init__(self, elems: Any = ...) -> None: ...
|
def __init__(self, elems: Any = ...) -> None: ...
|
||||||
def __contains__(self, elem: Any): ...
|
def __contains__(self, elem): ...
|
||||||
def __iter__(self) -> Any: ...
|
def __iter__(self) -> Any: ...
|
||||||
def __len__(self): ...
|
def __len__(self): ...
|
||||||
def add(self, elem: Any) -> None: ...
|
def add(self, elem) -> None: ...
|
||||||
def discard(self, elem: Any) -> None: ...
|
def discard(self, elem) -> None: ...
|
||||||
|
|
||||||
class LastOrderedSet(OrderedSet):
|
class LastOrderedSet(OrderedSet):
|
||||||
def add(self, elem: Any) -> None: ...
|
def add(self, elem) -> None: ...
|
||||||
|
|
||||||
def groupby(iterable: Any, key: Optional[Any] = ...): ...
|
def groupby(iterable, key: Optional[Any] = ...): ...
|
||||||
def unique(it: Any) -> None: ...
|
def unique(it) -> None: ...
|
||||||
|
|
||||||
class Reverse:
|
class Reverse:
|
||||||
__slots__: Any = ...
|
__slots__: Any
|
||||||
val: Any = ...
|
val: Any
|
||||||
def __init__(self, val: Any) -> None: ...
|
def __init__(self, val) -> None: ...
|
||||||
def __eq__(self, other: Any) -> Any: ...
|
def __eq__(self, other) -> Any: ...
|
||||||
def __ne__(self, other: Any) -> Any: ...
|
def __ne__(self, other) -> Any: ...
|
||||||
def __ge__(self, other: Any) -> Any: ...
|
def __ge__(self, other) -> Any: ...
|
||||||
def __gt__(self, other: Any) -> Any: ...
|
def __gt__(self, other) -> Any: ...
|
||||||
def __le__(self, other: Any) -> Any: ...
|
def __le__(self, other) -> Any: ...
|
||||||
def __lt__(self, other: Any) -> Any: ...
|
def __lt__(self, other) -> Any: ...
|
||||||
|
|
||||||
def ignore(*exc: Any) -> None: ...
|
def ignore(*exc) -> None: ...
|
||||||
def html_escape(text: Any): ...
|
def html_escape(text): ...
|
||||||
def formatLang(env: Any, value: Any, digits: Optional[Any] = ..., grouping: bool = ..., monetary: bool = ..., dp: bool = ..., currency_obj: bool = ...): ...
|
def formatLang(env, value, digits: Optional[Any] = ..., grouping: bool = ..., monetary: bool = ..., dp: bool = ..., currency_obj: bool = ...): ...
|
||||||
def format_date(env: Any, value: Any, lang_code: str = ..., date_format: bool = ...): ...
|
def format_date(env, value, lang_code: str = ..., date_format: bool = ...): ...
|
||||||
def _consteq(str1: Any, str2: Any): ...
|
def _consteq(str1, str2): ...
|
||||||
|
|
||||||
consteq: Any
|
consteq: Any
|
||||||
|
|
||||||
class Unpickler(pickle_.Unpickler):
|
class Unpickler(pickle_.Unpickler):
|
||||||
find_global: Any = ...
|
find_global: Any
|
||||||
find_class: Any = ...
|
find_class: Any
|
||||||
|
|
||||||
def _pickle_load(stream: Any, encoding: str = ..., errors: bool = ...): ...
|
def _pickle_load(stream, encoding: str = ..., errors: bool = ...): ...
|
||||||
|
|
||||||
pickle: Any
|
pickle: Any
|
||||||
|
|
||||||
def wrap_module(module: Any, attr_list: Any): ...
|
def wrap_module(module, attr_list): ...
|
||||||
|
|
||||||
class DotDict(dict):
|
class DotDict(dict):
|
||||||
def __getattr__(self, attrib: Any): ...
|
def __getattr__(self, attrib): ...
|
||||||
|
|
||||||
def traverse_containers(val: Any, type_: Any) -> None: ...
|
def traverse_containers(val, type_) -> None: ...
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
import ctypes
|
import ctypes
|
||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
def listdir(dir: Any, recursive: bool = ...): ...
|
def listdir(dir, recursive: bool = ...): ...
|
||||||
def walksymlinks(top: Any, topdown: bool = ..., onerror: Optional[Any] = ...) -> None: ...
|
def walksymlinks(top, topdown: bool = ..., onerror: Optional[Any] = ...) -> None: ...
|
||||||
def tempdir() -> None: ...
|
def tempdir() -> None: ...
|
||||||
def zip_dir(path: Any, stream: Any, include_dir: bool = ..., fnct_sort: Optional[Any] = ...) -> None: ...
|
def zip_dir(path, stream, include_dir: bool = ..., fnct_sort: Optional[Any] = ...) -> None: ...
|
||||||
|
|
||||||
getppid: Any
|
getppid: Any
|
||||||
is_running_as_nt_service: Any
|
is_running_as_nt_service: Any
|
||||||
_TH32CS_SNAPPROCESS: int
|
_TH32CS_SNAPPROCESS: int
|
||||||
|
|
||||||
class _PROCESSENTRY32(ctypes.Structure):
|
class _PROCESSENTRY32(ctypes.Structure):
|
||||||
_fields_: Any = ...
|
_fields_: Any
|
||||||
|
|||||||
@@ -3,5 +3,5 @@ from typing import Any
|
|||||||
component_re: Any
|
component_re: Any
|
||||||
replace: Any
|
replace: Any
|
||||||
|
|
||||||
def _parse_version_parts(s: Any) -> None: ...
|
def _parse_version_parts(s) -> None: ...
|
||||||
def parse_version(s: Any): ...
|
def parse_version(s): ...
|
||||||
|
|||||||
@@ -1,3 +1 @@
|
|||||||
from typing import Any
|
def merge_pdf(pdf_data): ...
|
||||||
|
|
||||||
def merge_pdf(pdf_data: Any): ...
|
|
||||||
|
|||||||
@@ -3,13 +3,13 @@ from typing import Any, Optional
|
|||||||
_logger: Any
|
_logger: Any
|
||||||
|
|
||||||
class _LogTracer:
|
class _LogTracer:
|
||||||
profiles: Any = ...
|
profiles: Any
|
||||||
whitelist: Any = ...
|
whitelist: Any
|
||||||
blacklist: Any = ...
|
blacklist: Any
|
||||||
files: Any = ...
|
files: Any
|
||||||
deep: Any = ...
|
deep: Any
|
||||||
first_frame: Any = ...
|
first_frame: Any
|
||||||
def __init__(self, whitelist: Optional[Any] = ..., blacklist: Optional[Any] = ..., files: Optional[Any] = ..., deep: bool = ...) -> None: ...
|
def __init__(self, whitelist: Optional[Any] = ..., blacklist: Optional[Any] = ..., files: Optional[Any] = ..., deep: bool = ...) -> None: ...
|
||||||
def tracer(self, frame: Any, event: Any, arg: Any): ...
|
def tracer(self, frame, event, arg): ...
|
||||||
|
|
||||||
def profile(method: Optional[Any] = ..., whitelist: Optional[Any] = ..., blacklist: Any = ..., files: Optional[Any] = ..., minimum_time: int = ..., minimum_queries: int = ...): ...
|
def profile(method: Optional[Any] = ..., whitelist: Optional[Any] = ..., blacklist=..., files: Optional[Any] = ..., minimum_time: int = ..., minimum_queries: int = ...): ...
|
||||||
|
|||||||
@@ -8,23 +8,23 @@ unichr = unichr
|
|||||||
text_type = unicode
|
text_type = unicode
|
||||||
string_types: Any
|
string_types: Any
|
||||||
|
|
||||||
def to_native(source: Any, encoding: str = ..., falsy_empty: bool = ...): ...
|
def to_native(source, encoding: str = ..., falsy_empty: bool = ...): ...
|
||||||
|
|
||||||
integer_types: Any
|
integer_types: Any
|
||||||
|
|
||||||
def implements_to_string(cls): ...
|
def implements_to_string(cls): ...
|
||||||
def implements_iterator(cls): ...
|
def implements_iterator(cls): ...
|
||||||
def csv_reader(stream: Any, **params: Any) -> None: ...
|
def csv_reader(stream, **params) -> None: ...
|
||||||
def csv_writer(stream: Any, **params: Any): ...
|
def csv_writer(stream, **params): ...
|
||||||
unichr = chr
|
unichr = chr
|
||||||
text_type = str
|
text_type = str
|
||||||
imap = map
|
imap = map
|
||||||
izip = zip
|
izip = zip
|
||||||
ifilter = filter
|
ifilter = filter
|
||||||
|
|
||||||
def reraise(tp: Any, value: Any, tb: Optional[Any] = ...) -> None: ...
|
def reraise(tp, value, tb: Optional[Any] = ...) -> None: ...
|
||||||
|
|
||||||
_reader: Any
|
_reader: Any
|
||||||
_writer: Any
|
_writer: Any
|
||||||
|
|
||||||
def to_text(source: Any): ...
|
def to_text(source): ...
|
||||||
|
|||||||
@@ -10,15 +10,15 @@ _EXPR_OPCODES: Any
|
|||||||
_SAFE_OPCODES: Any
|
_SAFE_OPCODES: Any
|
||||||
_logger: Any
|
_logger: Any
|
||||||
|
|
||||||
def _get_opcodes(codeobj: Any): ...
|
def _get_opcodes(codeobj): ...
|
||||||
def assert_no_dunder_name(code_obj: Any, expr: Any) -> None: ...
|
def assert_no_dunder_name(code_obj, expr) -> None: ...
|
||||||
def assert_valid_codeobj(allowed_codes: Any, code_obj: Any, expr: Any) -> None: ...
|
def assert_valid_codeobj(allowed_codes, code_obj, expr) -> None: ...
|
||||||
def test_expr(expr: Any, allowed_codes: Any, mode: str = ...): ...
|
def test_expr(expr, allowed_codes, mode: str = ...): ...
|
||||||
def const_eval(expr: Any): ...
|
def const_eval(expr): ...
|
||||||
def expr_eval(expr: Any): ...
|
def expr_eval(expr): ...
|
||||||
def _import(name: Any, globals: Optional[Any] = ..., locals: Optional[Any] = ..., fromlist: Optional[Any] = ..., level: int = ...): ...
|
def _import(name, globals: Optional[Any] = ..., locals: Optional[Any] = ..., fromlist: Optional[Any] = ..., level: int = ...): ...
|
||||||
|
|
||||||
_BUILTINS: Any
|
_BUILTINS: Any
|
||||||
|
|
||||||
def safe_eval(expr: Any, globals_dict: Optional[Any] = ..., locals_dict: Optional[Any] = ..., mode: str = ..., nocopy: bool = ..., locals_builtins: bool = ...): ...
|
def safe_eval(expr, globals_dict: Optional[Any] = ..., locals_dict: Optional[Any] = ..., mode: str = ..., nocopy: bool = ..., locals_builtins: bool = ...): ...
|
||||||
def test_python_expr(expr: Any, mode: str = ...): ...
|
def test_python_expr(expr, mode: str = ...): ...
|
||||||
|
|||||||
@@ -3,27 +3,27 @@ from typing import Any, Optional
|
|||||||
_schema: Any
|
_schema: Any
|
||||||
_CONFDELTYPES: Any
|
_CONFDELTYPES: Any
|
||||||
|
|
||||||
def existing_tables(cr: Any, tablenames: Any): ...
|
def existing_tables(cr, tablenames): ...
|
||||||
def table_exists(cr: Any, tablename: Any): ...
|
def table_exists(cr, tablename): ...
|
||||||
def table_kind(cr: Any, tablename: Any): ...
|
def table_kind(cr, tablename): ...
|
||||||
def create_model_table(cr: Any, tablename: Any, comment: Optional[Any] = ...) -> None: ...
|
def create_model_table(cr, tablename, comment: Optional[Any] = ...) -> None: ...
|
||||||
def table_columns(cr: Any, tablename: Any): ...
|
def table_columns(cr, tablename): ...
|
||||||
def column_exists(cr: Any, tablename: Any, columnname: Any): ...
|
def column_exists(cr, tablename, columnname): ...
|
||||||
def create_column(cr: Any, tablename: Any, columnname: Any, columntype: Any, comment: Optional[Any] = ...) -> None: ...
|
def create_column(cr, tablename, columnname, columntype, comment: Optional[Any] = ...) -> None: ...
|
||||||
def rename_column(cr: Any, tablename: Any, columnname1: Any, columnname2: Any) -> None: ...
|
def rename_column(cr, tablename, columnname1, columnname2) -> None: ...
|
||||||
def convert_column(cr: Any, tablename: Any, columnname: Any, columntype: Any) -> None: ...
|
def convert_column(cr, tablename, columnname, columntype) -> None: ...
|
||||||
def set_not_null(cr: Any, tablename: Any, columnname: Any) -> None: ...
|
def set_not_null(cr, tablename, columnname) -> None: ...
|
||||||
def drop_not_null(cr: Any, tablename: Any, columnname: Any) -> None: ...
|
def drop_not_null(cr, tablename, columnname) -> None: ...
|
||||||
def constraint_definition(cr: Any, tablename: Any, constraintname: Any): ...
|
def constraint_definition(cr, tablename, constraintname): ...
|
||||||
def add_constraint(cr: Any, tablename: Any, constraintname: Any, definition: Any) -> None: ...
|
def add_constraint(cr, tablename, constraintname, definition) -> None: ...
|
||||||
def drop_constraint(cr: Any, tablename: Any, constraintname: Any) -> None: ...
|
def drop_constraint(cr, tablename, constraintname) -> None: ...
|
||||||
def add_foreign_key(cr: Any, tablename1: Any, columnname1: Any, tablename2: Any, columnname2: Any, ondelete: Any): ...
|
def add_foreign_key(cr, tablename1, columnname1, tablename2, columnname2, ondelete): ...
|
||||||
def fix_foreign_key(cr: Any, tablename1: Any, columnname1: Any, tablename2: Any, columnname2: Any, ondelete: Any): ...
|
def fix_foreign_key(cr, tablename1, columnname1, tablename2, columnname2, ondelete): ...
|
||||||
def index_exists(cr: Any, indexname: Any): ...
|
def index_exists(cr, indexname): ...
|
||||||
def create_index(cr: Any, indexname: Any, tablename: Any, expressions: Any) -> None: ...
|
def create_index(cr, indexname, tablename, expressions) -> None: ...
|
||||||
def create_unique_index(cr: Any, indexname: Any, tablename: Any, expressions: Any) -> None: ...
|
def create_unique_index(cr, indexname, tablename, expressions) -> None: ...
|
||||||
def drop_index(cr: Any, indexname: Any, tablename: Any) -> None: ...
|
def drop_index(cr, indexname, tablename) -> None: ...
|
||||||
def drop_view_if_exists(cr: Any, viewname: Any) -> None: ...
|
def drop_view_if_exists(cr, viewname) -> None: ...
|
||||||
def escape_psql(to_escape: Any): ...
|
def escape_psql(to_escape): ...
|
||||||
def pg_varchar(size: int = ...): ...
|
def pg_varchar(size: int = ...): ...
|
||||||
def reverse_order(order: Any): ...
|
def reverse_order(order): ...
|
||||||
|
|||||||
@@ -4,5 +4,5 @@ from typing import Any, Optional
|
|||||||
_logger: Any
|
_logger: Any
|
||||||
_test_logger: Any
|
_test_logger: Any
|
||||||
|
|
||||||
def try_report(cr: Any, uid: Any, rname: Any, ids: Any, data: Optional[Any] = ..., context: Optional[Any] = ..., our_module: Optional[Any] = ..., report_type: Optional[Any] = ...): ...
|
def try_report(cr, uid, rname, ids, data: Optional[Any] = ..., context: Optional[Any] = ..., our_module: Optional[Any] = ..., report_type: Optional[Any] = ...): ...
|
||||||
def try_report_action(cr: Any, uid: Any, action_id: Any, active_model: Optional[Any] = ..., active_ids: Optional[Any] = ..., wiz_data: Optional[Any] = ..., wiz_buttons: Optional[Any] = ..., context: Optional[Any] = ..., our_module: Optional[Any] = ...): ...
|
def try_report_action(cr, uid, action_id, active_model: Optional[Any] = ..., active_ids: Optional[Any] = ..., wiz_data: Optional[Any] = ..., wiz_buttons: Optional[Any] = ..., context: Optional[Any] = ..., our_module: Optional[Any] = ...): ...
|
||||||
|
|||||||
@@ -8,68 +8,68 @@ _LOCALE2WIN32: Any
|
|||||||
ENGLISH_SMALL_WORDS: Any
|
ENGLISH_SMALL_WORDS: Any
|
||||||
|
|
||||||
class UNIX_LINE_TERMINATOR(csv.excel):
|
class UNIX_LINE_TERMINATOR(csv.excel):
|
||||||
lineterminator: str = ...
|
lineterminator: str
|
||||||
|
|
||||||
def encode(s: Any): ...
|
def encode(s): ...
|
||||||
|
|
||||||
TRANSLATED_ELEMENTS: Any
|
TRANSLATED_ELEMENTS: Any
|
||||||
TRANSLATED_ATTRS: Any
|
TRANSLATED_ATTRS: Any
|
||||||
avoid_pattern: Any
|
avoid_pattern: Any
|
||||||
node_pattern: Any
|
node_pattern: Any
|
||||||
|
|
||||||
def translate_xml_node(node: Any, callback: Any, parse: Any, serialize: Any): ...
|
def translate_xml_node(node, callback, parse, serialize): ...
|
||||||
def parse_xml(text: Any): ...
|
def parse_xml(text): ...
|
||||||
def serialize_xml(node: Any): ...
|
def serialize_xml(node): ...
|
||||||
|
|
||||||
_HTML_PARSER: Any
|
_HTML_PARSER: Any
|
||||||
|
|
||||||
def parse_html(text: Any): ...
|
def parse_html(text): ...
|
||||||
def serialize_html(node: Any): ...
|
def serialize_html(node): ...
|
||||||
def xml_translate(callback: Any, value: Any): ...
|
def xml_translate(callback, value): ...
|
||||||
def html_translate(callback: Any, value: Any): ...
|
def html_translate(callback, value): ...
|
||||||
def translate(cr: Any, name: Any, source_type: Any, lang: Any, source: Optional[Any] = ...): ...
|
def translate(cr, name, source_type, lang, source: Optional[Any] = ...): ...
|
||||||
|
|
||||||
class GettextAlias:
|
class GettextAlias:
|
||||||
def _get_db(self): ...
|
def _get_db(self): ...
|
||||||
def _get_cr(self, frame: Any, allow_create: bool = ...): ...
|
def _get_cr(self, frame, allow_create: bool = ...): ...
|
||||||
def _get_uid(self, frame: Any): ...
|
def _get_uid(self, frame): ...
|
||||||
def _get_lang(self, frame: Any): ...
|
def _get_lang(self, frame): ...
|
||||||
def __call__(self, source: Any): ...
|
def __call__(self, source): ...
|
||||||
|
|
||||||
_: Any
|
_: Any
|
||||||
|
|
||||||
def quote(s: Any): ...
|
def quote(s): ...
|
||||||
|
|
||||||
re_escaped_char: Any
|
re_escaped_char: Any
|
||||||
re_escaped_replacements: Any
|
re_escaped_replacements: Any
|
||||||
|
|
||||||
def _sub_replacement(match_obj: Any): ...
|
def _sub_replacement(match_obj): ...
|
||||||
def unquote(str: Any): ...
|
def unquote(str): ...
|
||||||
|
|
||||||
class PoFile:
|
class PoFile:
|
||||||
buffer: Any = ...
|
buffer: Any
|
||||||
def __init__(self, buffer: Any) -> None: ...
|
def __init__(self, buffer) -> None: ...
|
||||||
lines: Any = ...
|
lines: Any
|
||||||
lines_count: Any = ...
|
lines_count: Any
|
||||||
first: bool = ...
|
first: bool
|
||||||
extra_lines: Any = ...
|
extra_lines: Any
|
||||||
def __iter__(self) -> Any: ...
|
def __iter__(self) -> Any: ...
|
||||||
def _get_lines(self): ...
|
def _get_lines(self): ...
|
||||||
def cur_line(self): ...
|
def cur_line(self): ...
|
||||||
def next(self): ...
|
def next(self): ...
|
||||||
__next__: Any = ...
|
__next__: Any
|
||||||
def write_infos(self, modules: Any) -> None: ...
|
def write_infos(self, modules) -> None: ...
|
||||||
def write(self, modules: Any, tnrs: Any, source: Any, trad: Any, comments: Optional[Any] = ...) -> None: ...
|
def write(self, modules, tnrs, source, trad, comments: Optional[Any] = ...) -> None: ...
|
||||||
|
|
||||||
def trans_export(lang: Any, modules: Any, buffer: Any, format: Any, cr: Any) -> None: ...
|
def trans_export(lang, modules, buffer, format, cr) -> None: ...
|
||||||
def trans_parse_rml(de: Any): ...
|
def trans_parse_rml(de): ...
|
||||||
def _push(callback: Any, term: Any, source_line: Any) -> None: ...
|
def _push(callback, term, source_line) -> None: ...
|
||||||
def in_modules(object_name: Any, modules: Any): ...
|
def in_modules(object_name, modules): ...
|
||||||
def _extract_translatable_qweb_terms(element: Any, callback: Any) -> None: ...
|
def _extract_translatable_qweb_terms(element, callback) -> None: ...
|
||||||
def babel_extract_qweb(fileobj: Any, keywords: Any, comment_tags: Any, options: Any): ...
|
def babel_extract_qweb(fileobj, keywords, comment_tags, options): ...
|
||||||
def trans_generate(lang: Any, modules: Any, cr: Any): ...
|
def trans_generate(lang, modules, cr): ...
|
||||||
def trans_load(cr: Any, filename: Any, lang: Any, verbose: bool = ..., module_name: Optional[Any] = ..., context: Optional[Any] = ...): ...
|
def trans_load(cr, filename, lang, verbose: bool = ..., module_name: Optional[Any] = ..., context: Optional[Any] = ...): ...
|
||||||
def trans_load_data(cr: Any, fileobj: Any, fileformat: Any, lang: Any, lang_name: Optional[Any] = ..., verbose: bool = ..., module_name: Optional[Any] = ..., context: Optional[Any] = ...) -> None: ...
|
def trans_load_data(cr, fileobj, fileformat, lang, lang_name: Optional[Any] = ..., verbose: bool = ..., module_name: Optional[Any] = ..., context: Optional[Any] = ...) -> None: ...
|
||||||
def get_locales(lang: Optional[Any] = ...) -> None: ...
|
def get_locales(lang: Optional[Any] = ...) -> None: ...
|
||||||
def resetlocale(): ...
|
def resetlocale(): ...
|
||||||
def load_language(cr: Any, lang: Any) -> None: ...
|
def load_language(cr, lang) -> None: ...
|
||||||
|
|||||||
@@ -4,26 +4,26 @@ _logger: Any
|
|||||||
_validators: Any
|
_validators: Any
|
||||||
_relaxng_cache: Any
|
_relaxng_cache: Any
|
||||||
|
|
||||||
def valid_view(arch: Any): ...
|
def valid_view(arch): ...
|
||||||
def validate(*view_types: Any): ...
|
def validate(*view_types): ...
|
||||||
def relaxng(view_type: Any): ...
|
def relaxng(view_type): ...
|
||||||
def schema_valid(arch: Any): ...
|
def schema_valid(arch): ...
|
||||||
def valid_page_in_book(arch: Any): ...
|
def valid_page_in_book(arch): ...
|
||||||
def valid_field_in_graph(arch: Any): ...
|
def valid_field_in_graph(arch): ...
|
||||||
def valid_field_in_tree(arch: Any): ...
|
def valid_field_in_tree(arch): ...
|
||||||
def valid_att_in_field(arch: Any): ...
|
def valid_att_in_field(arch): ...
|
||||||
def valid_att_in_label(arch: Any): ...
|
def valid_att_in_label(arch): ...
|
||||||
def valid_att_in_form(arch: Any): ...
|
def valid_att_in_form(arch): ...
|
||||||
def valid_type_in_colspan(arch: Any): ...
|
def valid_type_in_colspan(arch): ...
|
||||||
def valid_type_in_col(arch: Any): ...
|
def valid_type_in_col(arch): ...
|
||||||
def valid_alternative_image_text(arch: Any): ...
|
def valid_alternative_image_text(arch): ...
|
||||||
def valid_simili_button(arch: Any): ...
|
def valid_simili_button(arch): ...
|
||||||
def valid_simili_dropdown(arch: Any): ...
|
def valid_simili_dropdown(arch): ...
|
||||||
def valid_simili_progressbar(arch: Any): ...
|
def valid_simili_progressbar(arch): ...
|
||||||
def valid_dialog(arch: Any): ...
|
def valid_dialog(arch): ...
|
||||||
def valid_simili_tabpanel(arch: Any): ...
|
def valid_simili_tabpanel(arch): ...
|
||||||
def valid_simili_tab(arch: Any): ...
|
def valid_simili_tab(arch): ...
|
||||||
def valid_simili_tablist(arch: Any): ...
|
def valid_simili_tablist(arch): ...
|
||||||
def valid_focusable_button(arch: Any): ...
|
def valid_focusable_button(arch): ...
|
||||||
def valid_prohibited_none_role(arch: Any): ...
|
def valid_prohibited_none_role(arch): ...
|
||||||
def valid_alerts(arch: Any): ...
|
def valid_alerts(arch): ...
|
||||||
|
|||||||
@@ -9,5 +9,5 @@ windows: Any
|
|||||||
seen: Any
|
seen: Any
|
||||||
defpathext: Any
|
defpathext: Any
|
||||||
|
|
||||||
def which_files(file: Any, mode: Any = ..., path: Optional[Any] = ..., pathext: Optional[Any] = ...) -> None: ...
|
def which_files(file, mode=..., path: Optional[Any] = ..., pathext: Optional[Any] = ...) -> None: ...
|
||||||
def which(file: Any, mode: Any = ..., path: Optional[Any] = ..., pathext: Optional[Any] = ...): ...
|
def which(file, mode=..., path: Optional[Any] = ..., pathext: Optional[Any] = ...): ...
|
||||||
|
|||||||
@@ -1,3 +1 @@
|
|||||||
from typing import Any
|
def nl_langinfo(param): ...
|
||||||
|
|
||||||
def nl_langinfo(param: Any): ...
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
from odoo.tools.misc import file_open as file_open
|
from odoo.tools.misc import file_open as file_open
|
||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
def check_with_xsd(tree_or_str: Any, stream: Any) -> None: ...
|
def check_with_xsd(tree_or_str, stream) -> None: ...
|
||||||
def _check_with_xsd(tree_or_str: Any, stream: Any) -> None: ...
|
def _check_with_xsd(tree_or_str, stream) -> None: ...
|
||||||
def create_xml_node_chain(first_parent_node: Any, nodes_list: Any, last_node_value: Optional[Any] = ...): ...
|
def create_xml_node_chain(first_parent_node, nodes_list, last_node_value: Optional[Any] = ...): ...
|
||||||
def create_xml_node(parent_node: Any, node_name: Any, node_value: Optional[Any] = ...): ...
|
def create_xml_node(parent_node, node_name, node_value: Optional[Any] = ...): ...
|
||||||
|
|||||||
Reference in New Issue
Block a user