mirror of
https://github.com/odoo-ide/odoo-stubs.git
synced 2025-05-08 16:52:26 +03:00
Cleanup
This commit is contained in:
@@ -15,17 +15,8 @@ from . import sql_db as sql_db
|
||||
from . import tools as tools
|
||||
from .tools.translate import _ as _
|
||||
|
||||
__path__: Any
|
||||
evented: bool
|
||||
|
||||
def gevent_wait_callback(conn, timeout: Optional[Any] = ...) -> None: ...
|
||||
|
||||
multi_process: bool
|
||||
_babelCoreParseLocale: Any
|
||||
|
||||
def _babelCoreParseLocale_unitag(identifier, sep: str = ...): ...
|
||||
def _decompress(data): ...
|
||||
|
||||
SUPERUSER_ID: int
|
||||
|
||||
def registry(database_name: Optional[Any] = ...): ...
|
||||
|
||||
@@ -2,11 +2,11 @@ from collections import Mapping
|
||||
from typing import Any, Optional
|
||||
from weakref import WeakSet
|
||||
|
||||
from odoo.addons.base.models.res_users import Users
|
||||
|
||||
from .modules.registry import Registry
|
||||
from .sql_db import Cursor
|
||||
|
||||
__all__: Any
|
||||
_logger: Any
|
||||
WRAPPED_ATTRS: Any
|
||||
INHERITED_ATTRS: Any
|
||||
|
||||
@@ -14,7 +14,6 @@ class Params:
|
||||
args: Any
|
||||
kwargs: Any
|
||||
def __init__(self, args, kwargs) -> None: ...
|
||||
def __str__(self): ...
|
||||
|
||||
class Meta(type):
|
||||
def __new__(meta, name, bases, attrs): ...
|
||||
@@ -33,12 +32,7 @@ def multi(method): ...
|
||||
def one(method): ...
|
||||
def model_cr(method): ...
|
||||
def model_cr_context(method): ...
|
||||
|
||||
_create_logger: Any
|
||||
|
||||
def _model_create_single(create, self, arg): ...
|
||||
def model_create_single(method): ...
|
||||
def _model_create_multi(create, self, arg): ...
|
||||
def model_create_multi(method): ...
|
||||
def cr(method): ...
|
||||
def cr_context(method): ...
|
||||
@@ -55,16 +49,12 @@ def v8(method_v8): ...
|
||||
def noguess(method): ...
|
||||
def guess(method): ...
|
||||
def expected(decorator, func): ...
|
||||
def _call_kw_model(method, self, args, kwargs): ...
|
||||
def _call_kw_model_create(method, self, args, kwargs): ...
|
||||
def _call_kw_multi(method, self, args, kwargs): ...
|
||||
def call_kw(model, name, args, kwargs): ...
|
||||
|
||||
class Environment(Mapping):
|
||||
cr: Cursor
|
||||
uid: int
|
||||
context: dict
|
||||
_local: Any
|
||||
envs: Environments
|
||||
@classmethod
|
||||
def manage(cls) -> None: ...
|
||||
@@ -72,8 +62,6 @@ class Environment(Mapping):
|
||||
def reset(cls) -> None: ...
|
||||
registry: Registry
|
||||
cache: Cache
|
||||
_cache_key: Any
|
||||
_protected: Any
|
||||
dirty: Any
|
||||
all: Environments
|
||||
def __new__(cls, cr: Cursor, uid, context) -> Environment: ...
|
||||
@@ -92,11 +80,9 @@ class Environment(Mapping):
|
||||
) -> Environment: ...
|
||||
def ref(self, xml_id, raise_if_not_found: bool = ...): ...
|
||||
@property
|
||||
def user(self):
|
||||
return self["res.users"]
|
||||
def user(self) -> "Users": ...
|
||||
@property
|
||||
def lang(self) -> str: ...
|
||||
def _do_in_mode(self, mode) -> None: ...
|
||||
def do_in_draft(self): ...
|
||||
@property
|
||||
def in_draft(self): ...
|
||||
@@ -129,7 +115,6 @@ class Environments:
|
||||
def __iter__(self) -> Any: ...
|
||||
|
||||
class Cache:
|
||||
_data: Any
|
||||
def __init__(self): ...
|
||||
def contains(self, record, field): ...
|
||||
def get(self, record, field): ...
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
_logger: Any
|
||||
|
||||
class except_orm(Exception):
|
||||
name: Any
|
||||
value: Any
|
||||
|
||||
@@ -11,8 +11,6 @@ DATE_LENGTH: Any
|
||||
DATETIME_LENGTH: Any
|
||||
EMPTY_DICT: Any
|
||||
RENAMED_ATTRS: Any
|
||||
_logger: Any
|
||||
_schema: Any
|
||||
Default: Any
|
||||
|
||||
def copy_cache(records, env) -> None: ...
|
||||
@@ -24,8 +22,6 @@ class MetaField(type):
|
||||
def __new__(meta, name, bases, attrs): ...
|
||||
def __init__(cls, name, bases, attrs) -> None: ...
|
||||
|
||||
_global_seq: Any
|
||||
|
||||
class Field(Generic[_FieldValueT], metaclass=MetaField):
|
||||
type: Any
|
||||
relational: bool
|
||||
@@ -33,30 +29,19 @@ class Field(Generic[_FieldValueT], metaclass=MetaField):
|
||||
column_type: Any
|
||||
column_format: str
|
||||
column_cast_from: Any
|
||||
_slots: Any
|
||||
_sequence: Any
|
||||
args: Any
|
||||
_setup_done: Any
|
||||
def __init__(self, string=..., **kwargs) -> None: ...
|
||||
def new(self, **kwargs): ...
|
||||
def __getattr__(self, name): ...
|
||||
_attrs: Any
|
||||
def __setattr__(self, name, value) -> None: ...
|
||||
def set_all_attrs(self, attrs) -> None: ...
|
||||
def __delattr__(self, name) -> None: ...
|
||||
def __str__(self): ...
|
||||
def __repr__(self): ...
|
||||
def setup_base(self, model, name) -> None: ...
|
||||
def _can_setup_from(self, field): ...
|
||||
def _get_attrs(self, model, name): ...
|
||||
prefetch: bool
|
||||
string: Any
|
||||
default: Any
|
||||
def _setup_attrs(self, model, name): ...
|
||||
def setup_full(self, model) -> None: ...
|
||||
def _setup_regular_base(self, model) -> None: ...
|
||||
depends: Any
|
||||
def _setup_regular_full(self, model): ...
|
||||
related: Any
|
||||
related_field: Any
|
||||
compute: Any
|
||||
@@ -64,45 +49,13 @@ class Field(Generic[_FieldValueT], metaclass=MetaField):
|
||||
search: Any
|
||||
states: Any
|
||||
required: bool
|
||||
def _setup_related_full(self, model) -> None: ...
|
||||
def traverse_related(self, record): ...
|
||||
def _compute_related(self, records) -> None: ...
|
||||
def _inverse_related(self, records) -> None: ...
|
||||
def _search_related(self, records, operator, value): ...
|
||||
_related_comodel_name: Any
|
||||
_related_string: Any
|
||||
_related_help: Any
|
||||
_related_groups: Any
|
||||
_related_group_operator: Any
|
||||
_related_context_dependent: Any
|
||||
@property
|
||||
def base_field(self): ...
|
||||
def _default_company_dependent(self, model): ...
|
||||
def _compute_company_dependent(self, records) -> None: ...
|
||||
def _inverse_company_dependent(self, records) -> None: ...
|
||||
def _search_company_dependent(self, records, operator, value): ...
|
||||
def resolve_deps(self, model, path0=..., seen: Any = ...): ...
|
||||
recursive: bool
|
||||
def setup_triggers(self, model) -> None: ...
|
||||
def get_description(self, env): ...
|
||||
_description_store: Any
|
||||
_description_manual: Any
|
||||
_description_depends: Any
|
||||
_description_related: Any
|
||||
_description_company_dependent: Any
|
||||
_description_readonly: Any
|
||||
_description_required: Any
|
||||
_description_states: Any
|
||||
_description_groups: Any
|
||||
_description_change_default: Any
|
||||
_description_deprecated: Any
|
||||
_description_group_operator: Any
|
||||
@property
|
||||
def _description_searchable(self): ...
|
||||
@property
|
||||
def _description_sortable(self): ...
|
||||
def _description_string(self, env): ...
|
||||
def _description_help(self, env): ...
|
||||
def null(self, record): ...
|
||||
def convert_to_column(
|
||||
self, value, record, values: Optional[Any] = ..., validate: bool = ...
|
||||
@@ -126,7 +79,6 @@ class Field(Generic[_FieldValueT], metaclass=MetaField):
|
||||
@overload
|
||||
def __get__(self: _FieldT, record: None, owner) -> _FieldT: ...
|
||||
def __set__(self, record, value) -> None: ...
|
||||
def _compute_value(self, records) -> None: ...
|
||||
def compute_value(self, records) -> None: ...
|
||||
def determine_value(self, record) -> None: ...
|
||||
def determine_draft_value(self, record): ...
|
||||
@@ -146,26 +98,21 @@ class Boolean(Field[bool]):
|
||||
class Integer(Field[int]):
|
||||
type: str
|
||||
column_type: Any
|
||||
_slots: Any
|
||||
def convert_to_column(
|
||||
self, value, record, values: Optional[Any] = ..., validate: bool = ...
|
||||
): ...
|
||||
def convert_to_cache(self, value, record, validate: bool = ...): ...
|
||||
def convert_to_read(self, value, record, use_name_get: bool = ...): ...
|
||||
def _update(self, records, value) -> None: ...
|
||||
def convert_to_export(self, value, record): ...
|
||||
|
||||
class Float(Field[float]):
|
||||
type: str
|
||||
column_cast_from: Any
|
||||
_slots: Any
|
||||
def __init__(self, string=..., digits=..., **kwargs) -> None: ...
|
||||
@property
|
||||
def column_type(self): ...
|
||||
@property
|
||||
def digits(self): ...
|
||||
_related__digits: Any
|
||||
_description_digits: Any
|
||||
def convert_to_column(
|
||||
self, value, record, values: Optional[Any] = ..., validate: bool = ...
|
||||
): ...
|
||||
@@ -176,13 +123,8 @@ class Monetary(Field[float]):
|
||||
type: str
|
||||
column_type: Any
|
||||
column_cast_from: Any
|
||||
_slots: Any
|
||||
def __init__(self, string=..., currency_field=..., **kwargs) -> None: ...
|
||||
_description_currency_field: Any
|
||||
currency_field: str
|
||||
def _setup_currency_field(self, model) -> None: ...
|
||||
def _setup_regular_full(self, model) -> None: ...
|
||||
def _setup_related_full(self, model) -> None: ...
|
||||
def convert_to_column(
|
||||
self, value, record, values: Optional[Any] = ..., validate: bool = ...
|
||||
): ...
|
||||
@@ -191,12 +133,8 @@ class Monetary(Field[float]):
|
||||
def convert_to_write(self, value, record): ...
|
||||
|
||||
class _String(Field[str]):
|
||||
_slots: Any
|
||||
def __init__(self, string=..., **kwargs) -> None: ...
|
||||
prefetch: Any
|
||||
def _setup_attrs(self, model, name) -> None: ...
|
||||
_related_translate: Any
|
||||
def _description_translate(self, env): ...
|
||||
def get_trans_terms(self, value): ...
|
||||
def get_trans_func(self, records): ...
|
||||
def check_trans_value(self, value): ...
|
||||
@@ -204,15 +142,9 @@ class _String(Field[str]):
|
||||
class Char(_String):
|
||||
type: str
|
||||
column_cast_from: Any
|
||||
_slots: Any
|
||||
@property
|
||||
def column_type(self): ...
|
||||
def update_db_column(self, model, column) -> None: ...
|
||||
_related_size: Any
|
||||
_related_trim: Any
|
||||
_description_size: Any
|
||||
_description_trim: Any
|
||||
def _setup_regular_base(self, model) -> None: ...
|
||||
def convert_to_column(
|
||||
self, value, record, values: Optional[Any] = ..., validate: bool = ...
|
||||
): ...
|
||||
@@ -227,20 +159,6 @@ class Text(_String):
|
||||
class Html(_String):
|
||||
type: str
|
||||
column_type: Any
|
||||
_slots: Any
|
||||
def _get_attrs(self, model, name): ...
|
||||
_related_sanitize: Any
|
||||
_related_sanitize_tags: Any
|
||||
_related_sanitize_attributes: Any
|
||||
_related_sanitize_style: Any
|
||||
_related_strip_style: Any
|
||||
_related_strip_classes: Any
|
||||
_description_sanitize: Any
|
||||
_description_sanitize_tags: Any
|
||||
_description_sanitize_attributes: Any
|
||||
_description_sanitize_style: Any
|
||||
_description_strip_style: Any
|
||||
_description_strip_classes: Any
|
||||
def convert_to_column(
|
||||
self, value, record, values: Optional[Any] = ..., validate: bool = ...
|
||||
): ...
|
||||
@@ -289,14 +207,10 @@ class Datetime(Field[datetime.datetime]):
|
||||
def convert_to_export(self, value, record): ...
|
||||
def convert_to_display_name(self, value, record): ...
|
||||
|
||||
_BINARY = memoryview
|
||||
|
||||
class Binary(Field[bytes]):
|
||||
type: str
|
||||
_slots: Any
|
||||
@property
|
||||
def column_type(self): ...
|
||||
_description_attachment: Any
|
||||
def convert_to_column(
|
||||
self, value, record, values: Optional[Any] = ..., validate: bool = ...
|
||||
): ...
|
||||
@@ -307,15 +221,10 @@ class Binary(Field[bytes]):
|
||||
|
||||
class Selection(Field[str]):
|
||||
type: str
|
||||
_slots: Any
|
||||
def __init__(self, selection=..., string=..., **kwargs) -> None: ...
|
||||
@property
|
||||
def column_type(self): ...
|
||||
def _setup_regular_base(self, model) -> None: ...
|
||||
selection: Any
|
||||
def _setup_related_full(self, model): ...
|
||||
def _setup_attrs(self, model, name) -> None: ...
|
||||
def _description_selection(self, env): ...
|
||||
def get_values(self, env): ...
|
||||
def convert_to_column(
|
||||
self, value, record, values: Optional[Any] = ..., validate: bool = ...
|
||||
@@ -338,29 +247,18 @@ class Reference(Selection):
|
||||
|
||||
class _Relational(Field[BaseModel]):
|
||||
relational: bool
|
||||
_slots: Any
|
||||
comodel_name: str
|
||||
def _setup_regular_base(self, model) -> None: ...
|
||||
@property
|
||||
def _related_domain(self): ...
|
||||
_related_context: Any
|
||||
_description_relation: Any
|
||||
_description_context: Any
|
||||
def _description_domain(self, env): ...
|
||||
def null(self, record): ...
|
||||
|
||||
class Many2one(_Relational):
|
||||
type: str
|
||||
column_type: Any
|
||||
_slots: Any
|
||||
def __init__(self, comodel_name=..., string=..., **kwargs) -> None: ...
|
||||
delegate: Any
|
||||
def _setup_attrs(self, model, name) -> None: ...
|
||||
ondelete: Any
|
||||
def update_db(self, model, columns): ...
|
||||
def update_db_column(self, model, column) -> None: ...
|
||||
def update_db_foreign_key(self, model, column) -> None: ...
|
||||
def _update(self, records, value) -> None: ...
|
||||
def convert_to_column(
|
||||
self, value, record, values: Optional[Any] = ..., validate: bool = ...
|
||||
): ...
|
||||
@@ -380,8 +278,6 @@ class _RelationalMultiUpdate:
|
||||
def __call__(self): ...
|
||||
|
||||
class _RelationalMulti(_Relational):
|
||||
_slots: Any
|
||||
def _update(self, records, value) -> None: ...
|
||||
def convert_to_cache(self, value, record, validate: bool = ...): ...
|
||||
def convert_to_record(self, value, record): ...
|
||||
def convert_to_read(self, value, record, use_name_get: bool = ...): ...
|
||||
@@ -389,17 +285,12 @@ class _RelationalMulti(_Relational):
|
||||
def convert_to_onchange(self, value, record, names): ...
|
||||
def convert_to_export(self, value, record): ...
|
||||
def convert_to_display_name(self, value, record) -> None: ...
|
||||
def _compute_related(self, records): ...
|
||||
def _setup_regular_full(self, model) -> None: ...
|
||||
|
||||
class One2many(_RelationalMulti):
|
||||
type: str
|
||||
_slots: Any
|
||||
def __init__(
|
||||
self, comodel_name=..., inverse_name=..., string=..., **kwargs
|
||||
) -> None: ...
|
||||
def _setup_regular_full(self, model) -> None: ...
|
||||
_description_relation_field: Any
|
||||
def convert_to_onchange(self, value, record, names): ...
|
||||
def update_db(self, model, columns) -> None: ...
|
||||
def read(self, records): ...
|
||||
@@ -408,7 +299,6 @@ class One2many(_RelationalMulti):
|
||||
|
||||
class Many2many(_RelationalMulti):
|
||||
type: str
|
||||
_slots: Any
|
||||
def __init__(
|
||||
self,
|
||||
comodel_name=...,
|
||||
@@ -421,8 +311,6 @@ class Many2many(_RelationalMulti):
|
||||
relation: Any
|
||||
column1: Any
|
||||
column2: Any
|
||||
def _setup_regular_base(self, model) -> None: ...
|
||||
def _setup_regular_full(self, model) -> None: ...
|
||||
def update_db(self, model, columns): ...
|
||||
def update_db_foreign_keys(self, model) -> None: ...
|
||||
def read(self, records) -> None: ...
|
||||
@@ -432,6 +320,5 @@ class Many2many(_RelationalMulti):
|
||||
class Id(Field[int]):
|
||||
type: str
|
||||
column_type: Any
|
||||
_slots: Any
|
||||
def update_db(self, model, columns) -> None: ...
|
||||
def __set__(self, record, value) -> None: ...
|
||||
|
||||
@@ -2,15 +2,14 @@ from typing import Any, Optional, Union
|
||||
|
||||
import werkzeug.contrib.sessions
|
||||
import werkzeug.wsgi
|
||||
from odoo.addons.website.models.website import Website
|
||||
|
||||
from .api import Environment
|
||||
from .sql_db import Cursor
|
||||
|
||||
_logger: Any
|
||||
rpc_request: Any
|
||||
rpc_response: Any
|
||||
STATIC_CACHE: Any
|
||||
_request_stack: Any
|
||||
request: Union[HttpRequest, JsonRequest]
|
||||
|
||||
def replace_request_password(args): ...
|
||||
@@ -34,12 +33,7 @@ class WebRequest:
|
||||
endpoint: Any
|
||||
endpoint_arguments: Any
|
||||
auth_method: Any
|
||||
website = Environment()["website"]
|
||||
_cr: Cursor
|
||||
_uid: int
|
||||
_context: dict
|
||||
_env: Environment
|
||||
_failed: Any
|
||||
website: "Website"
|
||||
def __init__(self, httprequest) -> None: ...
|
||||
@property
|
||||
def cr(self) -> Cursor: ...
|
||||
@@ -60,8 +54,6 @@ class WebRequest:
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, exc_type, exc_value, traceback) -> None: ...
|
||||
def set_handler(self, endpoint, arguments, auth) -> None: ...
|
||||
def _handle_exception(self, exception) -> None: ...
|
||||
def _call_function(self, *args, **kwargs): ...
|
||||
@property
|
||||
def debug(self): ...
|
||||
def registry_cr(self) -> None: ...
|
||||
@@ -76,23 +68,17 @@ class WebRequest:
|
||||
def route(route: Optional[Any] = ..., **kw): ...
|
||||
|
||||
class JsonRequest(WebRequest):
|
||||
_request_type: str
|
||||
jsonp_handler: Any
|
||||
params: Any
|
||||
jsonp: Any
|
||||
jsonrequest: Any
|
||||
context: Any
|
||||
def __init__(self, *args): ...
|
||||
def _json_response(
|
||||
self, result: Optional[Any] = ..., error: Optional[Any] = ...
|
||||
): ...
|
||||
def _handle_exception(self, exception): ...
|
||||
def dispatch(self): ...
|
||||
|
||||
def serialize_exception(e): ...
|
||||
|
||||
class HttpRequest(WebRequest):
|
||||
_request_type: str
|
||||
params: Any
|
||||
def __init__(self, *args) -> None: ...
|
||||
def _handle_exception(self, exception): ...
|
||||
@@ -148,10 +134,8 @@ class OpenERPSession(werkzeug.contrib.sessions.Session):
|
||||
): ...
|
||||
def check_security(self) -> None: ...
|
||||
def logout(self, keep_db: bool = ...) -> None: ...
|
||||
def _default_values(self) -> None: ...
|
||||
context: Any
|
||||
def get_context(self): ...
|
||||
def _fix_lang(self, context) -> None: ...
|
||||
def save_action(self, action): ...
|
||||
def get_action(self, key): ...
|
||||
def save_request_data(self) -> None: ...
|
||||
@@ -182,7 +166,6 @@ class DisableCacheMiddleware:
|
||||
def __call__(self, environ, start_response): ...
|
||||
|
||||
class Root:
|
||||
_loaded: bool
|
||||
def __init__(self) -> None: ...
|
||||
def session_store(self): ...
|
||||
def nodb_routing_map(self): ...
|
||||
|
||||
@@ -8,9 +8,6 @@ from .sql_db import Cursor
|
||||
|
||||
_ModelT = TypeVar("_ModelT", bound=BaseModel)
|
||||
|
||||
_logger: Any
|
||||
_schema: Any
|
||||
_unlink: Any
|
||||
regex_order: Any
|
||||
regex_object_name: Any
|
||||
regex_pg_name: Any
|
||||
@@ -29,10 +26,7 @@ def fix_import_export_id_paths(fieldname): ...
|
||||
|
||||
class MetaModel(api.Meta):
|
||||
module_to_models: Any
|
||||
_register: bool
|
||||
_module: Any
|
||||
def __init__(self, name, bases, attrs) -> None: ...
|
||||
def _get_addon_name(self, full_name): ...
|
||||
|
||||
class NewId:
|
||||
ref: Any
|
||||
@@ -393,7 +387,6 @@ class BaseModel(metaclass=MetaModel):
|
||||
def onchange(self, values, field_name, field_onchange): ...
|
||||
|
||||
class RecordCache(MutableMapping):
|
||||
_record: Any
|
||||
def __init__(self, record) -> None: ...
|
||||
def __contains__(self, name): ...
|
||||
def __getitem__(self, name): ...
|
||||
@@ -423,9 +416,7 @@ class TransientModel(Model):
|
||||
def itemgetter_tuple(items): ...
|
||||
def convert_pgerror_not_null(model, fields, info, e): ...
|
||||
def convert_pgerror_unique(model, fields, info, e): ...
|
||||
def _get_translated_field_name(model, field_name): ...
|
||||
|
||||
PGERROR_TO_OE: Any
|
||||
|
||||
def _normalize_ids(arg, atoms: Any = ...): ...
|
||||
def lazy_name_get(self): ...
|
||||
|
||||
@@ -1,21 +1,20 @@
|
||||
from odoo.modules.loading import load_modules as load_modules
|
||||
from odoo.modules.loading import reset_modules_state as reset_modules_state
|
||||
from odoo.modules.module import adapt_version as adapt_version
|
||||
from odoo.modules.module import get_module_path as get_module_path
|
||||
from odoo.modules.module import get_module_resource as get_module_resource
|
||||
from odoo.modules.module import get_modules as get_modules
|
||||
from odoo.modules.module import get_modules_with_version as get_modules_with_version
|
||||
from odoo.modules.module import get_resource_from_path as get_resource_from_path
|
||||
from odoo.modules.module import get_resource_path as get_resource_path
|
||||
from odoo.modules.module import initialize_sys_path as initialize_sys_path
|
||||
from odoo.modules.module import (
|
||||
load_information_from_description_file as load_information_from_description_file,
|
||||
)
|
||||
from odoo.modules.module import load_openerp_module as load_openerp_module
|
||||
|
||||
from . import db as db
|
||||
from . import graph as graph
|
||||
from . import loading as loading
|
||||
from . import migration as migration
|
||||
from . import module as module
|
||||
from . import registry as registry
|
||||
from .loading import load_modules as load_modules
|
||||
from .loading import reset_modules_state as reset_modules_state
|
||||
from .module import adapt_version as adapt_version
|
||||
from .module import get_module_path as get_module_path
|
||||
from .module import get_module_resource as get_module_resource
|
||||
from .module import get_modules as get_modules
|
||||
from .module import get_modules_with_version as get_modules_with_version
|
||||
from .module import get_resource_from_path as get_resource_from_path
|
||||
from .module import get_resource_path as get_resource_path
|
||||
from .module import initialize_sys_path as initialize_sys_path
|
||||
from .module import (
|
||||
load_information_from_description_file as load_information_from_description_file,
|
||||
)
|
||||
from .module import load_openerp_module as load_openerp_module
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
from typing import Any
|
||||
|
||||
_logger: Any
|
||||
|
||||
def is_initialized(cr): ...
|
||||
def initialize(cr) -> None: ...
|
||||
def create_categories(cr, categories): ...
|
||||
|
||||
@@ -1,14 +1,11 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
_logger: Any
|
||||
|
||||
class Graph(dict):
|
||||
def add_node(self, name, info): ...
|
||||
def update_from_db(self, cr) -> None: ...
|
||||
def add_module(self, cr, module, force: Optional[Any] = ...) -> None: ...
|
||||
def add_modules(self, cr, module_list, force: Optional[Any] = ...): ...
|
||||
def __iter__(self) -> Any: ...
|
||||
def __str__(self): ...
|
||||
|
||||
class Node:
|
||||
def __new__(cls, name, graph, info): ...
|
||||
@@ -23,8 +20,6 @@ class Node:
|
||||
def add_child(self, name, info): ...
|
||||
def __setattr__(self, name, value) -> None: ...
|
||||
def __iter__(self) -> Any: ...
|
||||
def __str__(self): ...
|
||||
def _pprint(self, depth: int = ...): ...
|
||||
def should_have_demo(self): ...
|
||||
@property
|
||||
def parents(self): ...
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
_logger: Any
|
||||
_test_logger: Any
|
||||
|
||||
def load_data(cr, idref, mode, kind, package, report): ...
|
||||
def load_demo(cr, package, idref, mode, report: Optional[Any] = ...): ...
|
||||
def force_demo(cr) -> None: ...
|
||||
@@ -15,7 +12,6 @@ def load_module_graph(
|
||||
report: Optional[Any] = ...,
|
||||
models_to_check: Optional[Any] = ...,
|
||||
): ...
|
||||
def _check_module_names(cr, module_names) -> None: ...
|
||||
def load_marked_modules(
|
||||
cr,
|
||||
graph,
|
||||
|
||||
@@ -2,12 +2,9 @@ from typing import Any
|
||||
|
||||
def load_script(path, module_name): ...
|
||||
|
||||
_logger: Any
|
||||
|
||||
class MigrationManager:
|
||||
cr: Any
|
||||
graph: Any
|
||||
migrations: Any
|
||||
def __init__(self, cr, graph) -> None: ...
|
||||
def _get_files(self): ...
|
||||
def migrate_module(self, pkg, stage): ...
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
from operator import itemgetter as itemgetter
|
||||
from typing import Any, Optional
|
||||
|
||||
from odoo import SUPERUSER_ID as SUPERUSER_ID
|
||||
from odoo import api as api
|
||||
from .. import SUPERUSER_ID as SUPERUSER_ID
|
||||
from .. import api as api
|
||||
|
||||
MANIFEST_NAMES: Any
|
||||
README: Any
|
||||
_logger: Any
|
||||
ad_paths: Any
|
||||
hooked: bool
|
||||
loaded: Any
|
||||
@@ -36,7 +35,6 @@ def get_modules(): ...
|
||||
def get_modules_with_version(): ...
|
||||
def adapt_version(version): ...
|
||||
def get_test_modules(module): ...
|
||||
def _get_tests_modules(path, module): ...
|
||||
|
||||
class TestStream:
|
||||
logger: Any
|
||||
|
||||
@@ -2,15 +2,10 @@ from collections import Mapping
|
||||
from collections import defaultdict as defaultdict
|
||||
from typing import Any, Optional
|
||||
|
||||
from odoo.tools import table_exists as table_exists
|
||||
|
||||
from ..sql_db import Cursor
|
||||
|
||||
_logger: Any
|
||||
from ..tools import table_exists as table_exists
|
||||
|
||||
class Registry(Mapping):
|
||||
_lock: Any
|
||||
_saved_lock: Any
|
||||
model_cache: Any
|
||||
def registries(cls): ...
|
||||
def __new__(cls, db_name): ...
|
||||
@@ -23,16 +18,9 @@ class Registry(Mapping):
|
||||
update_module: bool = ...,
|
||||
): ...
|
||||
models: Any
|
||||
_sql_error: Any
|
||||
_init: bool
|
||||
_assertion_report: Any
|
||||
_fields_by_model: Any
|
||||
_post_init_queue: Any
|
||||
_init_modules: Any
|
||||
updated_modules: Any
|
||||
loaded_xmlids: Any
|
||||
db_name: Any
|
||||
_db: Any
|
||||
test_cr: Any
|
||||
test_lock: Any
|
||||
loaded: bool
|
||||
@@ -55,13 +43,11 @@ class Registry(Mapping):
|
||||
def field_sequence(self): ...
|
||||
def descendants(self, model_names, *kinds): ...
|
||||
def load(self, cr, module): ...
|
||||
_m2m: Any
|
||||
def setup_models(self, cr) -> None: ...
|
||||
def post_init(self, func, *args, **kwargs) -> None: ...
|
||||
def init_models(self, cr, model_names, context) -> None: ...
|
||||
def check_tables_exist(self, cr) -> None: ...
|
||||
def cache(self): ...
|
||||
def _clear_cache(self) -> None: ...
|
||||
def clear_caches(self) -> None: ...
|
||||
def setup_signaling(self) -> None: ...
|
||||
def check_signaling(self): ...
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import logging.handlers
|
||||
from typing import Any, Optional
|
||||
|
||||
_logger: Any
|
||||
|
||||
def log(logger, level, prefix, msg, depth: Optional[Any] = ...) -> None: ...
|
||||
|
||||
class PostgreSQLHandler(logging.Handler):
|
||||
@@ -37,8 +35,6 @@ class DBFormatter(logging.Formatter):
|
||||
class ColoredFormatter(DBFormatter):
|
||||
def format(self, record): ...
|
||||
|
||||
_logger_init: bool
|
||||
|
||||
def init_logger(): ...
|
||||
|
||||
DEFAULT_LOG_CONFIGURATION: Any
|
||||
|
||||
@@ -15,7 +15,6 @@ TRUE_LEAF: Any
|
||||
FALSE_LEAF: Any
|
||||
TRUE_DOMAIN: Any
|
||||
FALSE_DOMAIN: Any
|
||||
_logger: Any
|
||||
|
||||
def normalize_domain(domain): ...
|
||||
def is_false(model, domain): ...
|
||||
@@ -23,7 +22,6 @@ def combine(operator, unit, zero, domains): ...
|
||||
def AND(domains): ...
|
||||
def OR(domains): ...
|
||||
def distribute_not(domain): ...
|
||||
def _quote(to_quote): ...
|
||||
def generate_table_alias(src_table_alias, joined_tables: Any = ...): ...
|
||||
def get_alias_from_query(from_query): ...
|
||||
def normalize_leaf(element): ...
|
||||
@@ -39,16 +37,13 @@ class ExtendedLeaf:
|
||||
join_context: Any
|
||||
leaf: Any
|
||||
model: Any
|
||||
_models: Any
|
||||
def __init__(
|
||||
self, leaf, model, join_context: Optional[Any] = ..., internal: bool = ...
|
||||
) -> None: ...
|
||||
def __str__(self): ...
|
||||
def generate_alias(self): ...
|
||||
def add_join_context(self, model, lhs_col, table_col, link) -> None: ...
|
||||
def get_join_conditions(self): ...
|
||||
def get_tables(self): ...
|
||||
def _get_context_debug(self): ...
|
||||
def check_leaf(self, internal: bool = ...) -> None: ...
|
||||
def is_operator(self): ...
|
||||
def is_true_leaf(self): ...
|
||||
@@ -61,7 +56,6 @@ def create_substitution_leaf(
|
||||
): ...
|
||||
|
||||
class expression:
|
||||
_unaccent: Any
|
||||
joins: Any
|
||||
root_model: Any
|
||||
expression: Any
|
||||
@@ -70,5 +64,4 @@ class expression:
|
||||
result: Any
|
||||
stack: Any
|
||||
def parse(self): ...
|
||||
def __leaf_to_sql(self, eleaf): ...
|
||||
def to_sql(self): ...
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
def _quote(to_quote): ...
|
||||
|
||||
class Query:
|
||||
tables: Any
|
||||
where_clause: Any
|
||||
@@ -16,8 +14,6 @@ class Query:
|
||||
joins: Optional[Any] = ...,
|
||||
extras: Optional[Any] = ...,
|
||||
) -> None: ...
|
||||
def _get_table_aliases(self): ...
|
||||
def _get_alias_mapping(self): ...
|
||||
def add_join(
|
||||
self,
|
||||
connection,
|
||||
@@ -27,4 +23,3 @@ class Query:
|
||||
extra_params: Any = ...,
|
||||
): ...
|
||||
def get_sql(self): ...
|
||||
def __str__(self): ...
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
_logger: Any
|
||||
RPC_VERSION_1: Any
|
||||
|
||||
def exp_login(db, login, password): ...
|
||||
|
||||
@@ -1,23 +1,10 @@
|
||||
from functools import wraps as wraps
|
||||
from typing import Any, Optional
|
||||
|
||||
_logger: Any
|
||||
|
||||
class DatabaseExists(Warning): ...
|
||||
|
||||
def check_db_management_enabled(method): ...
|
||||
def check_super(passwd): ...
|
||||
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) -> None: ...
|
||||
def exp_create_database(
|
||||
db_name,
|
||||
demo,
|
||||
@@ -28,7 +15,6 @@ def exp_create_database(
|
||||
phone: Optional[Any] = ...,
|
||||
): ...
|
||||
def exp_duplicate_database(db_original_name, db_name): ...
|
||||
def _drop_conn(cr, db_name) -> None: ...
|
||||
def exp_drop(db_name): ...
|
||||
def exp_dump(db_name, format): ...
|
||||
def dump_db_manifest(cr): ...
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
_logger: Any
|
||||
PG_CONCURRENCY_ERRORS_TO_RETRY: Any
|
||||
MAX_TRIES_ON_CONCURRENCY_FAILURE: int
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ from typing import Any, Optional
|
||||
import werkzeug.serving
|
||||
|
||||
INOTIFY_LISTEN_EVENTS: Any
|
||||
_logger: Any
|
||||
SLEEP_INTERVAL: int
|
||||
|
||||
def memory_info(process): ...
|
||||
@@ -33,7 +32,6 @@ class ThreadedWSGIServerReloadable(
|
||||
def server_bind(self) -> None: ...
|
||||
def server_activate(self) -> None: ...
|
||||
def process_request(self, request, client_address) -> None: ...
|
||||
def _handle_request_noblock(self) -> None: ...
|
||||
def shutdown_request(self, request) -> None: ...
|
||||
|
||||
class FSWatcherBase:
|
||||
@@ -148,7 +146,6 @@ class Worker:
|
||||
def start(self) -> None: ...
|
||||
def stop(self) -> None: ...
|
||||
def run(self) -> None: ...
|
||||
def _runloop(self) -> None: ...
|
||||
|
||||
class WorkerHTTP(Worker):
|
||||
def process_request(self, client, addr) -> None: ...
|
||||
@@ -161,14 +158,12 @@ class WorkerCron(Worker):
|
||||
watchdog_timeout: Any
|
||||
def __init__(self, multi) -> None: ...
|
||||
def sleep(self) -> None: ...
|
||||
def _db_list(self): ...
|
||||
def process_work(self) -> None: ...
|
||||
def start(self) -> None: ...
|
||||
|
||||
server: Any
|
||||
|
||||
def load_server_wide_modules() -> None: ...
|
||||
def _reexec(updated_modules: Optional[Any] = ...) -> None: ...
|
||||
def load_test_file_py(registry, test_file) -> None: ...
|
||||
def preload_registries(dbnames): ...
|
||||
def start(preload: Optional[Any] = ..., stop: bool = ...): ...
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from typing import Any
|
||||
|
||||
_logger: Any
|
||||
RPC_FAULT_CODE_CLIENT_ERROR: int
|
||||
RPC_FAULT_CODE_APPLICATION_ERROR: int
|
||||
RPC_FAULT_CODE_WARNING: int
|
||||
@@ -9,7 +8,6 @@ RPC_FAULT_CODE_ACCESS_ERROR: int
|
||||
|
||||
def xmlrpc_handle_exception_int(e): ...
|
||||
def xmlrpc_handle_exception_string(e): ...
|
||||
def _patch_xmlrpc_marshaller() -> None: ...
|
||||
def application_unproxied(environ, start_response): ...
|
||||
|
||||
ProxyFix: Any
|
||||
|
||||
@@ -4,8 +4,6 @@ import psycopg2.extensions
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
_logger: Any
|
||||
|
||||
def unbuffer(symb, cr): ...
|
||||
def undecimalize(symb, cr): ...
|
||||
def adapt_string(adapted): ...
|
||||
@@ -21,19 +19,9 @@ class Cursor:
|
||||
sql_into_log: Any
|
||||
sql_log: Any
|
||||
sql_log_count: int
|
||||
_closed: bool
|
||||
__pool: Any
|
||||
dbname: Any
|
||||
_serialized: Any
|
||||
_cnx: Any
|
||||
_obj: Any
|
||||
__caller: Any
|
||||
__closer: bool
|
||||
_default_log_exceptions: bool
|
||||
cache: Any
|
||||
_event_handlers: Any
|
||||
def __init__(self, pool, dbname, dsn, serialized: bool = ...) -> None: ...
|
||||
def __build_dict(self, row): ...
|
||||
def dictfetchone(self): ...
|
||||
def dictfetchmany(self, size): ...
|
||||
def dictfetchall(self): ...
|
||||
@@ -44,10 +32,8 @@ class Cursor:
|
||||
def split_for_in_conditions(self, ids, size: Optional[Any] = ...): ...
|
||||
def print_log(self): ...
|
||||
def close(self): ...
|
||||
def _close(self, leak: bool = ...) -> None: ...
|
||||
def autocommit(self, on) -> None: ...
|
||||
def after(self, event, func) -> None: ...
|
||||
def _pop_event_handlers(self): ...
|
||||
def commit(self): ...
|
||||
def rollback(self): ...
|
||||
def __enter__(self: _T) -> _T: ...
|
||||
@@ -58,11 +44,6 @@ class Cursor:
|
||||
def closed(self): ...
|
||||
|
||||
class TestCursor:
|
||||
_savepoint_seq: Any
|
||||
_closed: bool
|
||||
_cursor: Any
|
||||
_lock: Any
|
||||
_savepoint: Any
|
||||
def __init__(self, cursor, lock) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def autocommit(self, on) -> None: ...
|
||||
@@ -73,9 +54,6 @@ class TestCursor:
|
||||
def __getattr__(self, name): ...
|
||||
|
||||
class LazyCursor:
|
||||
_dbname: Any
|
||||
_cursor: Any
|
||||
_depth: int
|
||||
def __init__(self, dbname: Optional[Any] = ...) -> None: ...
|
||||
@property
|
||||
def dbname(self): ...
|
||||
@@ -87,12 +65,7 @@ class PsycoConnection(psycopg2.extensions.connection): ...
|
||||
|
||||
class ConnectionPool:
|
||||
def locked(fun): ...
|
||||
_connections: Any
|
||||
_maxconn: Any
|
||||
_lock: Any
|
||||
def __init__(self, maxconn: int = ...) -> None: ...
|
||||
def __repr__(self): ...
|
||||
def _debug(self, msg, *args) -> None: ...
|
||||
def borrow(self, connection_info): ...
|
||||
def give_back(self, connection, keep_in_pool: bool = ...) -> None: ...
|
||||
def close_all(self, dsn: Optional[Any] = ...) -> None: ...
|
||||
@@ -100,7 +73,6 @@ class ConnectionPool:
|
||||
class Connection:
|
||||
dbname: Any
|
||||
dsn: Any
|
||||
__pool: Any
|
||||
def __init__(self, pool, dbname, dsn) -> None: ...
|
||||
def cursor(self, serialized: bool = ...): ...
|
||||
serialized_cursor: Any
|
||||
@@ -108,9 +80,6 @@ class Connection:
|
||||
__nonzero__: Any
|
||||
|
||||
def connection_info_for(db_or_uri): ...
|
||||
|
||||
_Pool: Any
|
||||
|
||||
def db_connect(to, allow_uri: bool = ...): ...
|
||||
def close_db(db_name) -> None: ...
|
||||
def close_all() -> None: ...
|
||||
|
||||
@@ -6,7 +6,6 @@ from ..api import Environment
|
||||
from ..modules.registry import Registry
|
||||
from ..sql_db import Cursor
|
||||
|
||||
_logger: Any
|
||||
ADDONS_PATH: Any
|
||||
HOST: str
|
||||
PORT: Any
|
||||
@@ -42,7 +41,6 @@ class BaseCase(TreeCase):
|
||||
def uid(self, user) -> None: ...
|
||||
def ref(self, xid): ...
|
||||
def browse_ref(self, xid): ...
|
||||
def _assertRaises(self, exception) -> None: ...
|
||||
def assertRaises(self, exception, func: Optional[Any] = ..., *args, **kwargs): ...
|
||||
def assertQueryCount(self, default: int = ..., **counters): ...
|
||||
def assertRecordValues(self, records, expected_values): ...
|
||||
@@ -63,12 +61,10 @@ class SingleTransactionCase(BaseCase):
|
||||
savepoint_seq: Any
|
||||
|
||||
class SavepointCase(SingleTransactionCase):
|
||||
_savepoint_id: Any
|
||||
def setUp(self) -> None: ...
|
||||
def tearDown(self) -> None: ...
|
||||
|
||||
class ChromeBrowser:
|
||||
_logger: Any
|
||||
devtools_port: Any
|
||||
ws_url: str
|
||||
ws: Any
|
||||
@@ -82,24 +78,10 @@ class ChromeBrowser:
|
||||
def stop(self) -> None: ...
|
||||
@property
|
||||
def executable(self): ...
|
||||
def _spawn_chrome(self, cmd): ...
|
||||
def _chrome_start(self) -> None: ...
|
||||
def _find_websocket(self) -> None: ...
|
||||
def _json_command(self, command, timeout: int = ...): ...
|
||||
def _open_websocket(self) -> None: ...
|
||||
def _websocket_send(self, method, params: Optional[Any] = ...): ...
|
||||
def _websocket_wait_id(self, awaited_id, timeout: int = ...): ...
|
||||
def _websocket_wait_event(
|
||||
self, method, params: Optional[Any] = ..., timeout: int = ...
|
||||
): ...
|
||||
def _get_shotname(self, prefix, ext): ...
|
||||
def take_screenshot(self, prefix: str = ...) -> None: ...
|
||||
def _save_screencast(self, prefix: str = ...) -> None: ...
|
||||
def start_screencast(self) -> None: ...
|
||||
def set_cookie(self, name, value, path, domain): ...
|
||||
def delete_cookie(self, name, **kwargs): ...
|
||||
def _wait_ready(self, ready_code, timeout: int = ...): ...
|
||||
def _wait_code_ok(self, code, timeout): ...
|
||||
def navigate_to(self, url, wait_stop: bool = ...) -> None: ...
|
||||
def clear(self) -> None: ...
|
||||
|
||||
@@ -110,7 +92,6 @@ class HttpCase(TransactionCase):
|
||||
xmlrpc_common: Any
|
||||
xmlrpc_db: Any
|
||||
xmlrpc_object: Any
|
||||
_logger: Any
|
||||
def __init__(self, methodName: str = ...) -> None: ...
|
||||
@classmethod
|
||||
def start_browser(cls, logger) -> None: ...
|
||||
@@ -121,7 +102,6 @@ class HttpCase(TransactionCase):
|
||||
opener: Any
|
||||
def setUp(self) -> None: ...
|
||||
def url_open(self, url, data: Optional[Any] = ..., timeout: int = ...): ...
|
||||
def _wait_remaining_requests(self) -> None: ...
|
||||
def authenticate(self, user, password) -> None: ...
|
||||
def browser_js(
|
||||
self,
|
||||
@@ -142,87 +122,41 @@ ref_re: Any
|
||||
|
||||
class Form:
|
||||
def __init__(self, recordp, view: Optional[Any] = ...) -> None: ...
|
||||
def _o2m_set_edition_view(self, descr, node, level) -> None: ...
|
||||
def __str__(self): ...
|
||||
def _process_fvg(self, model, fvg, level: int = ...) -> None: ...
|
||||
def _init_from_defaults(self, model): ...
|
||||
def _init_from_values(self, values) -> None: ...
|
||||
def __getattr__(self, field): ...
|
||||
def _get_modifier(
|
||||
self,
|
||||
field,
|
||||
modifier,
|
||||
default: bool = ...,
|
||||
modmap: Optional[Any] = ...,
|
||||
vals: Optional[Any] = ...,
|
||||
): ...
|
||||
_OPS: Any
|
||||
def _get_context(self, field): ...
|
||||
def __setattr__(self, field, value) -> None: ...
|
||||
def __enter__(self) -> Form: ...
|
||||
def __exit__(self, etype, _evalue, _etb) -> None: ...
|
||||
def save(self): ...
|
||||
def _values_to_save(self, all_fields: bool = ...): ...
|
||||
def _perform_onchange(self, fields) -> None: ...
|
||||
def _onchange_values(self): ...
|
||||
def _cleanup_onchange(self, descr, value, current): ...
|
||||
|
||||
class O2MForm(Form):
|
||||
def __init__(self, proxy, index: Optional[Any] = ...) -> None: ...
|
||||
def _get_modifier(
|
||||
self,
|
||||
field,
|
||||
modifier,
|
||||
default: bool = ...,
|
||||
modmap: Optional[Any] = ...,
|
||||
vals: Optional[Any] = ...,
|
||||
): ...
|
||||
def _onchange_values(self): ...
|
||||
def save(self) -> None: ...
|
||||
def _values_to_save(self, all_fields: bool = ...): ...
|
||||
|
||||
class UpdateDict(dict):
|
||||
_changed: Any
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
def changed_items(self): ...
|
||||
def update(self, *args, **kw) -> None: ...
|
||||
|
||||
class X2MProxy:
|
||||
_parent: Any
|
||||
_field: Any
|
||||
def _assert_editable(self) -> None: ...
|
||||
class X2MProxy: ...
|
||||
|
||||
class O2MProxy(X2MProxy):
|
||||
_parent: Any
|
||||
_field: Any
|
||||
_records: Any
|
||||
def __init__(self, parent, field) -> None: ...
|
||||
def __len__(self): ...
|
||||
@property
|
||||
def _model(self): ...
|
||||
@property
|
||||
def _descr(self): ...
|
||||
def _command_index(self, for_record): ...
|
||||
def new(self): ...
|
||||
def edit(self, index): ...
|
||||
def remove(self, index) -> None: ...
|
||||
|
||||
class M2MProxy(X2MProxy, collections.Sequence):
|
||||
_parent: Any
|
||||
_field: Any
|
||||
def __init__(self, parent, field) -> None: ...
|
||||
def __getitem__(self, it): ...
|
||||
def __len__(self): ...
|
||||
def __iter__(self) -> Any: ...
|
||||
def __contains__(self, record): ...
|
||||
def add(self, record) -> None: ...
|
||||
def _get_ids(self): ...
|
||||
def remove(self, id: Optional[Any] = ..., index: Optional[Any] = ...) -> None: ...
|
||||
def clear(self) -> None: ...
|
||||
|
||||
def record_to_values(fields, record): ...
|
||||
def _cleanup_from_default(type_, value): ...
|
||||
def _get_node(view, f, *arg): ...
|
||||
def tagged(*tags): ...
|
||||
|
||||
class TagsSelector:
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
__version_info__: Any
|
||||
__version__: Any
|
||||
|
||||
def user_data_dir(
|
||||
appname: Optional[Any] = ...,
|
||||
@@ -66,11 +65,3 @@ class AppDirs:
|
||||
def user_cache_dir(self): ...
|
||||
@property
|
||||
def user_log_dir(self): ...
|
||||
|
||||
def _get_win_folder_from_registry(csidl_name): ...
|
||||
def _get_win_folder_with_pywin32(csidl_name): ...
|
||||
def _get_win_folder_with_ctypes(csidl_name): ...
|
||||
|
||||
_get_win_folder = _get_win_folder_with_pywin32
|
||||
_get_win_folder = _get_win_folder_with_ctypes
|
||||
_get_win_folder = _get_win_folder_from_registry
|
||||
|
||||
@@ -5,4 +5,3 @@ class assertion_report:
|
||||
def record_success(self) -> None: ...
|
||||
def record_failure(self) -> None: ...
|
||||
def record_result(self, result) -> None: ...
|
||||
def __str__(self): ...
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
unsafe_eval = eval
|
||||
_logger: Any
|
||||
|
||||
class ormcache_counter:
|
||||
hit: int
|
||||
|
||||
@@ -9,24 +9,16 @@ class MyOption(optparse.Option):
|
||||
|
||||
DEFAULT_LOG_HANDLER: str
|
||||
|
||||
def _get_default_datadir(): ...
|
||||
def _deduplicate_loggers(loggers): ...
|
||||
|
||||
class configmanager:
|
||||
options: Any
|
||||
blacklist_for_save: Any
|
||||
casts: Any
|
||||
misc: Any
|
||||
config_file: Any
|
||||
_LOGLEVELS: Any
|
||||
parser: Any
|
||||
def __init__(self, fname: Optional[Any] = ...) -> None: ...
|
||||
def parse_config(self, args: Optional[Any] = ...) -> None: ...
|
||||
rcfile: Any
|
||||
def _parse_config(self, args: Optional[Any] = ...) -> None: ...
|
||||
def _is_addons_path(self, path): ...
|
||||
def _check_addons_path(self, option, opt, value, parser) -> None: ...
|
||||
def _test_enable_callback(self, option, opt, value, parser) -> None: ...
|
||||
def load(self) -> None: ...
|
||||
def save(self) -> None: ...
|
||||
def get(self, key, default: Optional[Any] = ...): ...
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
_logger: Any
|
||||
safe_eval: Any
|
||||
|
||||
class ParseError(Exception):
|
||||
@@ -9,16 +8,12 @@ class ParseError(Exception):
|
||||
filename: Any
|
||||
lineno: Any
|
||||
def __init__(self, msg, text, filename, lineno) -> None: ...
|
||||
def __str__(self): ...
|
||||
|
||||
class RecordDictWrapper(dict):
|
||||
record: Any
|
||||
def __init__(self, record) -> None: ...
|
||||
def __getitem__(self, key): ...
|
||||
|
||||
def _get_idref(self, env, model_str, idref): ...
|
||||
def _fix_multiple_roots(node) -> None: ...
|
||||
def _eval_xml(self, node, env): ...
|
||||
def str2bool(value): ...
|
||||
|
||||
class xml_import:
|
||||
@@ -28,32 +23,6 @@ class xml_import:
|
||||
def get_context(self, data_node, node, eval_dict): ...
|
||||
def get_uid(self, data_node, node): ...
|
||||
def make_xml_id(self, xml_id): ...
|
||||
def _test_xml_id(self, xml_id) -> None: ...
|
||||
def _tag_delete(
|
||||
self, rec, data_node: Optional[Any] = ..., mode: Optional[Any] = ...
|
||||
) -> None: ...
|
||||
def _tag_report(
|
||||
self, rec, data_node: Optional[Any] = ..., mode: Optional[Any] = ...
|
||||
): ...
|
||||
def _tag_function(
|
||||
self, rec, 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, data_node: Optional[Any] = ..., mode: Optional[Any] = ...
|
||||
) -> None: ...
|
||||
def _assert_equals(self, f1, f2, prec: int = ...): ...
|
||||
def _tag_assert(
|
||||
self, rec, data_node: Optional[Any] = ..., mode: Optional[Any] = ...
|
||||
) -> None: ...
|
||||
def _tag_record(
|
||||
self, rec, 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, raise_if_not_found: bool = ...): ...
|
||||
def model_id_get(self, id_str, raise_if_not_found: bool = ...): ...
|
||||
def parse(self, de, mode: Optional[Any] = ...): ...
|
||||
@@ -66,7 +35,6 @@ class xml_import:
|
||||
assertion_report: Any
|
||||
noupdate: Any
|
||||
xml_filename: Any
|
||||
_tags: Any
|
||||
def __init__(
|
||||
self,
|
||||
cr,
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from typing import Any
|
||||
|
||||
_logger: Any
|
||||
SUPPORTED_DEBUGGER: Any
|
||||
|
||||
def post_mortem(config, info) -> None: ...
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
def round(f): ...
|
||||
|
||||
round = round
|
||||
|
||||
def _float_check_precision(
|
||||
precision_digits: Optional[Any] = ..., precision_rounding: Optional[Any] = ...
|
||||
): ...
|
||||
def float_round(
|
||||
value,
|
||||
precision_digits: Optional[Any] = ...,
|
||||
@@ -25,8 +19,5 @@ def float_compare(
|
||||
precision_rounding: Optional[Any] = ...,
|
||||
): ...
|
||||
def float_repr(value, precision_digits): ...
|
||||
|
||||
_float_repr = float_repr
|
||||
|
||||
def float_split_str(value, precision_digits): ...
|
||||
def float_split(value, precision_digits): ...
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
from json import JSONEncoder as JSONEncoder
|
||||
from typing import Any
|
||||
|
||||
__all__: Any
|
||||
|
||||
class lazy_property:
|
||||
fget: Any
|
||||
def __init__(self, fget) -> None: ...
|
||||
@@ -27,13 +25,9 @@ def classproperty(func): ...
|
||||
|
||||
class lazy:
|
||||
def __init__(self, func, *args, **kwargs) -> None: ...
|
||||
@property
|
||||
def _value(self): ...
|
||||
def __getattr__(self, name): ...
|
||||
def __setattr__(self, name, value): ...
|
||||
def __delattr__(self, name): ...
|
||||
def __repr__(self): ...
|
||||
def __str__(self): ...
|
||||
def __bytes__(self): ...
|
||||
def __format__(self, format_spec): ...
|
||||
def __lt__(self, other) -> Any: ...
|
||||
|
||||
@@ -51,7 +51,6 @@ class graph:
|
||||
tree_list: Any
|
||||
start: Any
|
||||
def process(self, starting_node) -> None: ...
|
||||
def __str__(self): ...
|
||||
def scale(
|
||||
self, maxx, maxy, nwidth: int = ..., nheight: int = ..., margin: int = ...
|
||||
) -> None: ...
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
__all__: Any
|
||||
|
||||
class LRUNode:
|
||||
prev: Any
|
||||
me: Any
|
||||
@@ -9,7 +7,6 @@ class LRUNode:
|
||||
def __init__(self, prev, me) -> None: ...
|
||||
|
||||
class LRU:
|
||||
_lock: Any
|
||||
count: Any
|
||||
d: Any
|
||||
first: Any
|
||||
|
||||
@@ -1,24 +1,10 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
from lxml.html import clean
|
||||
|
||||
_logger: Any
|
||||
tags_to_kill: Any
|
||||
tags_to_remove: Any
|
||||
allowed_tags: Any
|
||||
safe_attrs: Any
|
||||
|
||||
class _Cleaner(clean.Cleaner):
|
||||
_style_re: Any
|
||||
_style_whitelist: Any
|
||||
strip_classes: bool
|
||||
sanitize_style: bool
|
||||
def __call__(self, doc) -> None: ...
|
||||
def tag_quote(self, el): ...
|
||||
def strip_class(self, el) -> None: ...
|
||||
def parse_style(self, el) -> None: ...
|
||||
def allow_element(self, el): ...
|
||||
|
||||
def html_sanitize(
|
||||
src,
|
||||
silent: bool = ...,
|
||||
|
||||
@@ -1,26 +1 @@
|
||||
from collections import namedtuple
|
||||
from typing import Any
|
||||
|
||||
__all__: Any
|
||||
_logger: Any
|
||||
_ooxml_dirs: Any
|
||||
|
||||
def _check_ooxml(data): ...
|
||||
|
||||
_mime_validator: Any
|
||||
|
||||
def _check_open_container_format(data): ...
|
||||
|
||||
_xls_pattern: Any
|
||||
_ppt_pattern: Any
|
||||
|
||||
def _check_olecf(data): ...
|
||||
def _check_svg(data): ...
|
||||
|
||||
_Entry = namedtuple("_Entry", ["mimetype", "signatures", "discriminants"])
|
||||
_mime_mappings: Any
|
||||
|
||||
def guess_mimetype(bin_data, default: str = ...): ...
|
||||
|
||||
guess_mimetype: Any
|
||||
ms: Any
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import pickle as pickle_
|
||||
from collections import Mapping, MutableMapping, MutableSet, defaultdict
|
||||
from collections import Mapping, MutableMapping, MutableSet
|
||||
from itertools import repeat as repeat
|
||||
from typing import Any, Optional
|
||||
|
||||
@@ -10,18 +10,15 @@ from odoo.loglevels import get_encodings as get_encodings
|
||||
|
||||
from .cache import *
|
||||
|
||||
_logger: Any
|
||||
SKIPPED_ELEMENT_TYPES: Any
|
||||
|
||||
def find_in_path(name): ...
|
||||
def _exec_pipe(prog, args, env: Optional[Any] = ...): ...
|
||||
def exec_command_pipe(name, *args): ...
|
||||
def find_pg_tool(name): ...
|
||||
def exec_pg_environ(): ...
|
||||
def exec_pg_command(name, *args) -> None: ...
|
||||
def exec_pg_command_pipe(name, *args): ...
|
||||
def file_open(name, mode: str = ..., subdir: str = ..., pathinfo: bool = ...): ...
|
||||
def _fileopen(path, mode, basedir, pathinfo, basename: Optional[Any] = ...): ...
|
||||
def flatten(list): ...
|
||||
def reverse_enumerate(l): ...
|
||||
def partition(pred, elems): ...
|
||||
@@ -64,8 +61,7 @@ def resolve_attr(obj, attr): ...
|
||||
def attrgetter(*items): ...
|
||||
def remove_accents(input_str): ...
|
||||
|
||||
class unquote(str):
|
||||
def __repr__(self): ...
|
||||
class unquote(str): ...
|
||||
|
||||
class UnquoteEvalContext(defaultdict):
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
@@ -84,8 +80,6 @@ class mute_logger:
|
||||
) -> None: ...
|
||||
def __call__(self, func): ...
|
||||
|
||||
_ph: Any
|
||||
|
||||
class CountingStream:
|
||||
stream: Any
|
||||
index: Any
|
||||
@@ -98,7 +92,6 @@ class CountingStream:
|
||||
def stripped_sys_argv(*strip_args): ...
|
||||
|
||||
class ConstantMapping(Mapping):
|
||||
_value: Any
|
||||
def __init__(self, val) -> None: ...
|
||||
def __len__(self): ...
|
||||
def __iter__(self) -> Any: ...
|
||||
@@ -123,7 +116,6 @@ class frozendict(dict):
|
||||
def __hash__(self) -> Any: ...
|
||||
|
||||
class Collector(Mapping):
|
||||
_map: Any
|
||||
def __init__(self) -> None: ...
|
||||
def add(self, key, val) -> None: ...
|
||||
def __getitem__(self, key): ...
|
||||
@@ -131,19 +123,16 @@ class Collector(Mapping):
|
||||
def __len__(self): ...
|
||||
|
||||
class StackMap(MutableMapping):
|
||||
_maps: Any
|
||||
def __init__(self, m: Optional[Any] = ...) -> None: ...
|
||||
def __getitem__(self, key): ...
|
||||
def __setitem__(self, key, val) -> None: ...
|
||||
def __delitem__(self, key) -> None: ...
|
||||
def __iter__(self) -> Any: ...
|
||||
def __len__(self): ...
|
||||
def __str__(self): ...
|
||||
def pushmap(self, m: Optional[Any] = ...) -> None: ...
|
||||
def popmap(self): ...
|
||||
|
||||
class OrderedSet(MutableSet):
|
||||
_map: Any
|
||||
def __init__(self, elems: Any = ...) -> None: ...
|
||||
def __contains__(self, elem): ...
|
||||
def __iter__(self) -> Any: ...
|
||||
@@ -179,7 +168,6 @@ def formatLang(
|
||||
currency_obj: bool = ...,
|
||||
): ...
|
||||
def format_date(env, value, lang_code: str = ..., date_format: bool = ...): ...
|
||||
def _consteq(str1, str2): ...
|
||||
|
||||
consteq: Any
|
||||
|
||||
@@ -187,8 +175,6 @@ class Unpickler(pickle_.Unpickler):
|
||||
find_global: Any
|
||||
find_class: Any
|
||||
|
||||
def _pickle_load(stream, encoding: str = ..., errors: bool = ...): ...
|
||||
|
||||
pickle: Any
|
||||
|
||||
def wrap_module(module, attr_list): ...
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import ctypes
|
||||
from typing import Any, Optional
|
||||
|
||||
def listdir(dir, recursive: bool = ...): ...
|
||||
@@ -10,7 +9,3 @@ def zip_dir(
|
||||
|
||||
getppid: Any
|
||||
is_running_as_nt_service: Any
|
||||
_TH32CS_SNAPPROCESS: int
|
||||
|
||||
class _PROCESSENTRY32(ctypes.Structure):
|
||||
_fields_: Any
|
||||
|
||||
@@ -3,5 +3,4 @@ from typing import Any
|
||||
component_re: Any
|
||||
replace: Any
|
||||
|
||||
def _parse_version_parts(s) -> None: ...
|
||||
def parse_version(s): ...
|
||||
|
||||
@@ -1,23 +1,5 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
_logger: Any
|
||||
|
||||
class _LogTracer:
|
||||
profiles: Any
|
||||
whitelist: Any
|
||||
blacklist: Any
|
||||
files: Any
|
||||
deep: Any
|
||||
first_frame: Any
|
||||
def __init__(
|
||||
self,
|
||||
whitelist: Optional[Any] = ...,
|
||||
blacklist: Optional[Any] = ...,
|
||||
files: Optional[Any] = ...,
|
||||
deep: bool = ...,
|
||||
) -> None: ...
|
||||
def tracer(self, frame, event, arg): ...
|
||||
|
||||
def profile(
|
||||
method: Optional[Any] = ...,
|
||||
whitelist: Optional[Any] = ...,
|
||||
|
||||
@@ -1,13 +1,7 @@
|
||||
from collections import namedtuple
|
||||
from typing import Any, Optional
|
||||
|
||||
PY2: Any
|
||||
|
||||
_Writer = namedtuple("_Writer", "writerow writerows")
|
||||
unichr = unichr
|
||||
text_type = unicode
|
||||
string_types: Any
|
||||
|
||||
def to_native(source, encoding: str = ..., falsy_empty: bool = ...): ...
|
||||
|
||||
integer_types: Any
|
||||
@@ -24,8 +18,4 @@ izip = zip
|
||||
ifilter = filter
|
||||
|
||||
def reraise(tp, value, tb: Optional[Any] = ...) -> None: ...
|
||||
|
||||
_reader: Any
|
||||
_writer: Any
|
||||
|
||||
def to_text(source): ...
|
||||
|
||||
@@ -1,31 +1,12 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
unsafe_eval = eval
|
||||
__all__: Any
|
||||
_ALLOWED_MODULES: Any
|
||||
_UNSAFE_ATTRIBUTES: Any
|
||||
_POSSIBLE_OPCODES_P3: Any
|
||||
_CONST_OPCODES: Any
|
||||
_EXPR_OPCODES: Any
|
||||
_SAFE_OPCODES: Any
|
||||
_logger: Any
|
||||
|
||||
def _get_opcodes(codeobj): ...
|
||||
def assert_no_dunder_name(code_obj, expr) -> None: ...
|
||||
def assert_valid_codeobj(allowed_codes, code_obj, expr) -> None: ...
|
||||
def test_expr(expr, allowed_codes, mode: str = ...): ...
|
||||
def const_eval(expr): ...
|
||||
def expr_eval(expr): ...
|
||||
def _import(
|
||||
name,
|
||||
globals: Optional[Any] = ...,
|
||||
locals: Optional[Any] = ...,
|
||||
fromlist: Optional[Any] = ...,
|
||||
level: int = ...,
|
||||
): ...
|
||||
|
||||
_BUILTINS: Any
|
||||
|
||||
def safe_eval(
|
||||
expr,
|
||||
globals_dict: Optional[Any] = ...,
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
_schema: Any
|
||||
_CONFDELTYPES: Any
|
||||
|
||||
def existing_tables(cr, tablenames): ...
|
||||
def table_exists(cr, tablename): ...
|
||||
def table_kind(cr, tablename): ...
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
from typing import Any
|
||||
|
||||
config_file_00: Any
|
||||
conf: Any
|
||||
@@ -2,9 +2,6 @@ from typing import Any, Optional
|
||||
|
||||
from . import config as config
|
||||
|
||||
_logger: Any
|
||||
_test_logger: Any
|
||||
|
||||
def try_report(
|
||||
cr,
|
||||
uid,
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
import csv
|
||||
from typing import Any, Optional
|
||||
|
||||
_logger: Any
|
||||
WEB_TRANSLATION_COMMENT: str
|
||||
SKIPPED_ELEMENTS: Any
|
||||
_LOCALE2WIN32: Any
|
||||
ENGLISH_SMALL_WORDS: Any
|
||||
|
||||
class UNIX_LINE_TERMINATOR(csv.excel):
|
||||
@@ -20,9 +18,6 @@ node_pattern: Any
|
||||
def translate_xml_node(node, callback, parse, serialize): ...
|
||||
def parse_xml(text): ...
|
||||
def serialize_xml(node): ...
|
||||
|
||||
_HTML_PARSER: Any
|
||||
|
||||
def parse_html(text): ...
|
||||
def serialize_html(node): ...
|
||||
def xml_translate(callback, value): ...
|
||||
@@ -30,10 +25,6 @@ def html_translate(callback, value): ...
|
||||
def translate(cr, name, source_type, lang, source: Optional[Any] = ...): ...
|
||||
|
||||
class GettextAlias:
|
||||
def _get_db(self): ...
|
||||
def _get_cr(self, frame, allow_create: bool = ...): ...
|
||||
def _get_uid(self, frame): ...
|
||||
def _get_lang(self, frame): ...
|
||||
def __call__(self, source): ...
|
||||
|
||||
_: Any
|
||||
@@ -43,7 +34,6 @@ def quote(s): ...
|
||||
re_escaped_char: Any
|
||||
re_escaped_replacements: Any
|
||||
|
||||
def _sub_replacement(match_obj): ...
|
||||
def unquote(str): ...
|
||||
|
||||
class PoFile:
|
||||
@@ -54,7 +44,6 @@ class PoFile:
|
||||
first: bool
|
||||
extra_lines: Any
|
||||
def __iter__(self) -> Any: ...
|
||||
def _get_lines(self): ...
|
||||
def cur_line(self): ...
|
||||
def next(self): ...
|
||||
__next__: Any
|
||||
@@ -65,9 +54,7 @@ class PoFile:
|
||||
|
||||
def trans_export(lang, modules, buffer, format, cr) -> None: ...
|
||||
def trans_parse_rml(de): ...
|
||||
def _push(callback, term, source_line) -> None: ...
|
||||
def in_modules(object_name, modules): ...
|
||||
def _extract_translatable_qweb_terms(element, callback) -> None: ...
|
||||
def babel_extract_qweb(fileobj, keywords, comment_tags, options): ...
|
||||
def trans_generate(lang, modules, cr): ...
|
||||
def trans_load(
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
from typing import Any
|
||||
|
||||
_logger: Any
|
||||
_validators: Any
|
||||
_relaxng_cache: Any
|
||||
|
||||
def valid_view(arch): ...
|
||||
def validate(*view_types): ...
|
||||
def relaxng(view_type): ...
|
||||
|
||||
@@ -3,8 +3,6 @@ from os import W_OK as W_OK
|
||||
from os.path import dirname as dirname
|
||||
from typing import Any, Optional
|
||||
|
||||
__docformat__: str
|
||||
__all__: Any
|
||||
ENOENT: int
|
||||
windows: Any
|
||||
seen: Any
|
||||
|
||||
@@ -3,7 +3,6 @@ from typing import Any, Optional
|
||||
from odoo.tools.misc import file_open as file_open
|
||||
|
||||
def check_with_xsd(tree_or_str, stream) -> None: ...
|
||||
def _check_with_xsd(tree_or_str, stream) -> None: ...
|
||||
def create_xml_node_chain(
|
||||
first_parent_node, nodes_list, last_node_value: Optional[Any] = ...
|
||||
): ...
|
||||
|
||||
Reference in New Issue
Block a user