This commit is contained in:
Trinh Anh Ngoc
2023-05-19 22:06:03 +07:00
parent 85325bf205
commit 73a1a2b9f1
69 changed files with 33 additions and 939 deletions

View File

@@ -1,11 +1,11 @@
from collections import Mapping from collections import Mapping
from typing import Any from typing import Any
from odoo.addons.base.res.res_users import Users
from .modules.registry import Registry from .modules.registry import Registry
from .sql_db import Cursor from .sql_db import Cursor
__all__: Any
_logger: Any
WRAPPED_ATTRS: Any WRAPPED_ATTRS: Any
INHERITED_ATTRS: Any INHERITED_ATTRS: Any
@@ -13,7 +13,6 @@ class Params:
args: Any args: Any
kwargs: Any kwargs: Any
def __init__(self, args, kwargs) -> None: ... def __init__(self, args, kwargs) -> None: ...
def __str__(self): ...
class Meta(type): class Meta(type):
def __new__(meta, name, bases, attrs): ... def __new__(meta, name, bases, attrs): ...
@@ -52,7 +51,6 @@ def call_kw_multi(method, self, args, kwargs): ...
def call_kw(model, name, args, kwargs): ... def call_kw(model, name, args, kwargs): ...
class Environment(Mapping): class Environment(Mapping):
_local: Any
cr: Cursor = ... cr: Cursor = ...
uid: int = ... uid: int = ...
context: dict = ... context: dict = ...
@@ -63,7 +61,6 @@ class Environment(Mapping):
def reset(cls) -> None: ... def reset(cls) -> None: ...
registry: Registry registry: Registry
cache: Any cache: Any
_protected: Any
dirty: Any dirty: Any
all: Environments all: Environments
def __new__(cls, cr: Cursor, uid, context) -> Environment: ... def __new__(cls, cr: Cursor, uid, context) -> Environment: ...
@@ -79,11 +76,9 @@ class Environment(Mapping):
) -> Environment: ... ) -> Environment: ...
def ref(self, xml_id, raise_if_not_found: bool = ...): ... def ref(self, xml_id, raise_if_not_found: bool = ...): ...
@property @property
def user(self): def user(self) -> "Users": ...
return self["res.users"]
@property @property
def lang(self): ... def lang(self): ...
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): ...

View File

@@ -1,7 +1,5 @@
from typing import Any from typing import Any
_logger: Any
class except_orm(Exception): class except_orm(Exception):
name: Any name: Any
value: Any value: Any

View File

@@ -10,8 +10,6 @@ DATE_LENGTH: Any
DATETIME_LENGTH: Any DATETIME_LENGTH: Any
EMPTY_DICT: Any EMPTY_DICT: Any
RENAMED_ATTRS: Any RENAMED_ATTRS: Any
_logger: Any
_schema: Any
Default: Any Default: Any
class SpecialValue: class SpecialValue:
@@ -24,7 +22,6 @@ class FailedValue(SpecialValue):
def __init__(self, exception) -> None: ... def __init__(self, exception) -> None: ...
def get(self) -> None: ... def get(self) -> None: ...
def _check_value(value): ...
def copy_cache(records, env) -> None: ... def copy_cache(records, env) -> None: ...
def first(records): ... def first(records): ...
def resolve_mro(model, name, predicate): ... def resolve_mro(model, name, predicate): ...
@@ -41,28 +38,19 @@ class Field(Generic[_FieldValueT]):
translate: bool translate: bool
column_type: Any column_type: Any
column_format: str column_format: str
_slots: Any
args: Any args: Any
_setup_done: Any
def __init__(self, string=..., **kwargs) -> None: ... def __init__(self, string=..., **kwargs) -> None: ...
def new(self, **kwargs): ... def new(self, **kwargs): ...
def __getattr__(self, name): ... def __getattr__(self, name): ...
_attrs: Any
def __setattr__(self, name, value) -> None: ... def __setattr__(self, name, value) -> None: ...
def set_all_attrs(self, attrs) -> None: ... def set_all_attrs(self, attrs) -> None: ...
def __delattr__(self, name) -> None: ... def __delattr__(self, name) -> None: ...
def __str__(self): ...
def __repr__(self): ...
def setup_base(self, model, name) -> None: ... def setup_base(self, model, name) -> None: ...
def _can_setup_from(self, field): ...
prefetch: bool prefetch: bool
string: Any string: Any
default: Any default: Any
def _setup_attrs(self, model, name): ...
def setup_full(self, model) -> None: ... def setup_full(self, model) -> None: ...
depends: Any depends: Any
def _setup_regular_base(self, model): ...
def _setup_regular_full(self, model) -> None: ...
related: Any related: Any
related_field: Any related_field: Any
compute: Any compute: Any
@@ -70,46 +58,13 @@ class Field(Generic[_FieldValueT]):
search: Any search: Any
states: Any states: Any
required: bool required: bool
def _setup_related_full(self, model) -> None: ...
def traverse_related(self, record): ... 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_readonly: Any
_related_groups: Any
_related_group_operator: Any
@property @property
def base_field(self): ... 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 _compute_sparse(self, records) -> None: ...
def _inverse_sparse(self, records) -> None: ...
def resolve_deps(self, model, path0=..., seen=...): ... def resolve_deps(self, model, path0=..., seen=...): ...
recursive: bool recursive: bool
def setup_triggers(self, model) -> None: ... def setup_triggers(self, model) -> None: ...
def get_description(self, env): ... 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
@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 null(self, record): ...
def convert_to_column(self, value, record): ... def convert_to_column(self, value, record): ...
def convert_to_cache(self, value, record, validate: bool = ...): ... def convert_to_cache(self, value, record, validate: bool = ...): ...
@@ -127,7 +82,6 @@ class Field(Generic[_FieldValueT]):
@overload @overload
def __get__(self: _FieldT, record: None, owner) -> _FieldT: ... def __get__(self: _FieldT, record: None, owner) -> _FieldT: ...
def __set__(self, record, value) -> None: ... def __set__(self, record, value) -> None: ...
def _compute_value(self, records) -> None: ...
def compute_value(self, records) -> None: ... def compute_value(self, records) -> None: ...
def determine_value(self, record) -> None: ... def determine_value(self, record) -> None: ...
def determine_draft_value(self, record) -> None: ... def determine_draft_value(self, record) -> None: ...
@@ -146,25 +100,18 @@ class Boolean(Field[bool]):
class Integer(Field[int]): class Integer(Field[int]):
type: str type: str
column_type: Any column_type: Any
_slots: Any
_description_group_operator: Any
def convert_to_column(self, value, record): ... def convert_to_column(self, value, record): ...
def convert_to_cache(self, value, record, validate: bool = ...): ... def convert_to_cache(self, value, record, validate: bool = ...): ...
def convert_to_read(self, value, record, use_name_get: 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): ... def convert_to_export(self, value, record): ...
class Float(Field[float]): class Float(Field[float]):
type: str type: str
_slots: Any
def __init__(self, string=..., digits=..., **kwargs) -> 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
_description_digits: Any
_description_group_operator: Any
def convert_to_column(self, value, record): ... def convert_to_column(self, value, record): ...
def convert_to_cache(self, value, record, validate: bool = ...): ... def convert_to_cache(self, value, record, validate: bool = ...): ...
def convert_to_export(self, value, record): ... def convert_to_export(self, value, record): ...
@@ -172,35 +119,23 @@ class Float(Field[float]):
class Monetary(Field[float]): class Monetary(Field[float]):
type: str type: str
column_type: Any column_type: Any
_slots: Any
def __init__(self, string=..., currency_field=..., **kwargs) -> None: ... def __init__(self, string=..., currency_field=..., **kwargs) -> None: ...
_related_currency_field: Any
_description_currency_field: Any
_description_group_operator: Any
currency_field: str currency_field: str
def _setup_regular_full(self, model) -> None: ...
def convert_to_column(self, value, record): ... def convert_to_column(self, value, record): ...
def convert_to_cache(self, value, record, validate: bool = ...): ... def convert_to_cache(self, value, record, validate: bool = ...): ...
def convert_to_read(self, value, record, use_name_get: bool = ...): ... def convert_to_read(self, value, record, use_name_get: bool = ...): ...
def convert_to_write(self, value, record): ... def convert_to_write(self, value, record): ...
class _String(Field[str]): class _String(Field[str]):
_slots: Any
def __init__(self, string=..., **kwargs) -> None: ... def __init__(self, string=..., **kwargs) -> None: ...
_related_translate: Any
def _description_translate(self, env): ...
def get_trans_terms(self, value): ... def get_trans_terms(self, value): ...
def get_trans_func(self, records): ... def get_trans_func(self, records): ...
def check_trans_value(self, value): ... def check_trans_value(self, value): ...
class Char(_String): class Char(_String):
type: str type: str
_slots: Any
@property @property
def column_type(self): ... def column_type(self): ...
_related_size: Any
_description_size: Any
def _setup_regular_base(self, model) -> None: ...
def convert_to_column(self, value, record): ... def convert_to_column(self, value, record): ...
def convert_to_cache(self, value, record, validate: bool = ...): ... def convert_to_cache(self, value, record, validate: bool = ...): ...
@@ -212,21 +147,7 @@ class Text(_String):
class Html(_String): class Html(_String):
type: str type: str
column_type: Any column_type: Any
_slots: Any
translate: Any translate: Any
def _setup_attrs(self, model, name) -> None: ...
_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): ... def convert_to_column(self, value, record): ...
def convert_to_cache(self, value, record, validate: bool = ...): ... def convert_to_cache(self, value, record, validate: bool = ...): ...
@@ -263,10 +184,8 @@ class Datetime(Field[datetime.datetime]):
class Binary(Field[bytes]): class Binary(Field[bytes]):
type: str type: str
_slots: Any
@property @property
def column_type(self): ... def column_type(self): ...
_description_attachment: Any
def convert_to_column(self, value, record): ... def convert_to_column(self, value, record): ...
def convert_to_cache(self, value, record, validate: bool = ...): ... def convert_to_cache(self, value, record, validate: bool = ...): ...
def read(self, records) -> None: ... def read(self, records) -> None: ...
@@ -274,15 +193,10 @@ class Binary(Field[bytes]):
class Selection(Field[str]): class Selection(Field[str]):
type: str type: str
_slots: Any
def __init__(self, selection=..., string=..., **kwargs) -> None: ... def __init__(self, selection=..., string=..., **kwargs) -> None: ...
@property @property
def column_type(self): ... def column_type(self): ...
def _setup_regular_base(self, model) -> None: ...
selection: Any 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 get_values(self, env): ...
def convert_to_cache(self, value, record, validate: bool = ...): ... def convert_to_cache(self, value, record, validate: bool = ...): ...
def convert_to_export(self, value, record): ... def convert_to_export(self, value, record): ...
@@ -300,26 +214,15 @@ class Reference(Selection):
class _Relational(Field[BaseModel]): class _Relational(Field[BaseModel]):
relational: bool relational: bool
_slots: Any
comodel_name: str 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): ... def null(self, record): ...
def modified(self, records): ... def modified(self, records): ...
class Many2one(_Relational): class Many2one(_Relational):
type: str type: str
column_type: Any column_type: Any
_slots: Any
def __init__(self, comodel_name=..., string=..., **kwargs) -> None: ... def __init__(self, comodel_name=..., string=..., **kwargs) -> None: ...
delegate: Any delegate: Any
def _setup_attrs(self, model, name) -> None: ...
def _update(self, records, value) -> None: ...
def convert_to_column(self, value, record): ... def convert_to_column(self, value, record): ...
def convert_to_cache(self, value, record, validate: bool = ...): ... def convert_to_cache(self, value, record, validate: bool = ...): ...
def convert_to_record(self, value, record): ... def convert_to_record(self, value, record): ...
@@ -335,7 +238,6 @@ class UnionUpdate(SpecialValue):
def get(self): ... def get(self): ...
class _RelationalMulti(_Relational): class _RelationalMulti(_Relational):
def _update(self, records, value) -> None: ...
def convert_to_cache(self, value, record, validate: bool = ...): ... def convert_to_cache(self, value, record, validate: bool = ...): ...
def convert_to_record(self, value, record): ... def convert_to_record(self, value, record): ...
def convert_to_read(self, value, record, use_name_get: bool = ...): ... def convert_to_read(self, value, record, use_name_get: bool = ...): ...
@@ -343,17 +245,12 @@ class _RelationalMulti(_Relational):
def convert_to_onchange(self, value, record, fnames=...): ... def convert_to_onchange(self, value, record, fnames=...): ...
def convert_to_export(self, value, record): ... def convert_to_export(self, value, record): ...
def convert_to_display_name(self, value, record) -> None: ... def convert_to_display_name(self, value, record) -> None: ...
def _compute_related(self, records): ...
def _setup_regular_base(self, model) -> None: ...
class One2many(_RelationalMulti): class One2many(_RelationalMulti):
type: str type: str
_slots: Any
def __init__( def __init__(
self, comodel_name=..., inverse_name=..., string=..., **kwargs self, comodel_name=..., inverse_name=..., string=..., **kwargs
) -> None: ... ) -> None: ...
def _setup_regular_full(self, model) -> None: ...
_description_relation_field: Any
def convert_to_onchange(self, value, record, fnames=...): ... def convert_to_onchange(self, value, record, fnames=...): ...
def check_schema(self, model) -> None: ... def check_schema(self, model) -> None: ...
def read(self, records) -> None: ... def read(self, records) -> None: ...
@@ -361,7 +258,6 @@ class One2many(_RelationalMulti):
class Many2many(_RelationalMulti): class Many2many(_RelationalMulti):
type: str type: str
_slots: Any
def __init__( def __init__(
self, self,
comodel_name=..., comodel_name=...,
@@ -374,15 +270,12 @@ class Many2many(_RelationalMulti):
relation: Any relation: Any
column1: Any column1: Any
column2: Any column2: Any
def _setup_regular_base(self, model) -> None: ...
def _setup_regular_full(self, model) -> None: ...
def check_schema(self, model): ... def check_schema(self, model): ...
def read(self, records) -> None: ... def read(self, records) -> None: ...
def write(self, records, value): ... def write(self, records, value): ...
class Serialized(Field): class Serialized(Field):
type: str type: str
_slots: Any
column_type: Any column_type: Any
def convert_to_column(self, value, record): ... def convert_to_column(self, value, record): ...
def convert_to_cache(self, value, record, validate: bool = ...): ... def convert_to_cache(self, value, record, validate: bool = ...): ...
@@ -390,5 +283,4 @@ class Serialized(Field):
class Id(Field[int]): class Id(Field[int]):
type: str type: str
column_type: Any column_type: Any
_slots: Any
def __set__(self, record, value) -> None: ... def __set__(self, record, value) -> None: ...

View File

@@ -7,11 +7,9 @@ from .api import Environment
from .modules.registry import Registry from .modules.registry import Registry
from .sql_db import Cursor from .sql_db import Cursor
_logger: Any
rpc_request: Any rpc_request: Any
rpc_response: Any rpc_response: Any
STATIC_CACHE: Any STATIC_CACHE: Any
_request_stack: Any
request: Union[HttpRequest, JsonRequest] request: Union[HttpRequest, JsonRequest]
def replace_request_password(args): ... def replace_request_password(args): ...
@@ -35,11 +33,6 @@ class WebRequest:
endpoint: Any endpoint: Any
endpoint_arguments: Any endpoint_arguments: Any
auth_method: Any auth_method: Any
_cr: Cursor
_uid: int
_context: dict
_env: Environment
_failed: Any
def __init__(self, httprequest) -> None: ... def __init__(self, httprequest) -> None: ...
@property @property
def cr(self) -> Cursor: ... def cr(self) -> Cursor: ...
@@ -60,8 +53,6 @@ class WebRequest:
def __enter__(self): ... def __enter__(self): ...
def __exit__(self, exc_type, exc_value, traceback) -> None: ... def __exit__(self, exc_type, exc_value, traceback) -> None: ...
def set_handler(self, endpoint, arguments, auth) -> None: ... def set_handler(self, endpoint, arguments, auth) -> None: ...
def _handle_exception(self, exception) -> None: ...
def _call_function(self, *args, **kwargs): ...
@property @property
def debug(self): ... def debug(self): ...
def registry_cr(self) -> None: ... def registry_cr(self) -> None: ...
@@ -75,25 +66,20 @@ class WebRequest:
def route(route: Any | None = ..., **kw): ... def route(route: Any | None = ..., **kw): ...
class JsonRequest(WebRequest): class JsonRequest(WebRequest):
_request_type: str
jsonp_handler: Any jsonp_handler: Any
jsonp: Any jsonp: Any
jsonrequest: Any jsonrequest: Any
params: Any params: Any
context: Any context: Any
def __init__(self, *args): ... def __init__(self, *args): ...
def _json_response(self, result: Any | None = ..., error: Any | None = ...): ...
def _handle_exception(self, exception): ...
def dispatch(self): ... def dispatch(self): ...
def serialize_exception(e): ... def serialize_exception(e): ...
def to_jsonable(o): ... def to_jsonable(o): ...
class HttpRequest(WebRequest): class HttpRequest(WebRequest):
_request_type: str
params: Any params: Any
def __init__(self, *args) -> None: ... def __init__(self, *args) -> None: ...
def _handle_exception(self, exception): ...
def dispatch(self): ... def dispatch(self): ...
def make_response( def make_response(
self, data, headers: Any | None = ..., cookies: Any | None = ... self, data, headers: Any | None = ..., cookies: Any | None = ...
@@ -146,10 +132,8 @@ class OpenERPSession(werkzeug.contrib.sessions.Session):
): ... ): ...
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: ...
context: Any context: Any
def get_context(self): ... def get_context(self): ...
def _fix_lang(self, context) -> None: ...
def save_action(self, action): ... def save_action(self, action): ...
def get_action(self, key): ... def get_action(self, key): ...
def save_request_data(self) -> None: ... def save_request_data(self) -> None: ...
@@ -180,7 +164,6 @@ class DisableCacheMiddleware:
def __call__(self, environ, start_response): ... def __call__(self, environ, start_response): ...
class Root: class Root:
_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): ...

View File

@@ -8,9 +8,6 @@ from .sql_db import Cursor
_ModelT = TypeVar("_ModelT", bound=BaseModel) _ModelT = TypeVar("_ModelT", bound=BaseModel)
_logger: Any
_schema: Any
_unlink: Any
regex_order: Any regex_order: Any
regex_object_name: Any regex_object_name: Any
regex_pg_name: Any regex_pg_name: Any
@@ -33,10 +30,7 @@ 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
_module: Any
def __init__(self, name, bases, attrs) -> None: ... def __init__(self, name, bases, attrs) -> None: ...
def _get_addon_name(self, full_name): ...
class NewId: class NewId:
def __nonzero__(self): ... def __nonzero__(self): ...
@@ -393,7 +387,6 @@ class BaseModel:
def onchange(self, values, field_name, field_onchange): ... def onchange(self, values, field_name, field_onchange): ...
class RecordCache(MutableMapping): class RecordCache(MutableMapping):
_recs: Any
def __init__(self, records) -> None: ... def __init__(self, records) -> None: ...
def contains(self, field): ... def contains(self, field): ...
def __contains__(self, field): ... def __contains__(self, field): ...
@@ -424,5 +417,3 @@ def convert_pgerror_23502(model, fields, info, e): ...
def convert_pgerror_23505(model, fields, info, e): ... def convert_pgerror_23505(model, fields, info, e): ...
PGERROR_TO_OE: Any PGERROR_TO_OE: Any
def _normalize_ids(arg, atoms=...): ...

View File

@@ -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 db as db
from . import graph as graph from . import graph as graph
from . import loading as loading from . import loading as loading
from . import migration as migration from . import migration as migration
from . import module as module from . import module as module
from . import registry as registry 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

View File

@@ -1,7 +1,3 @@
from typing import Any
_logger: Any
def is_initialized(cr): ... def is_initialized(cr): ...
def initialize(cr) -> None: ... def initialize(cr) -> None: ...
def create_categories(cr, categories): ... def create_categories(cr, categories): ...

View File

@@ -2,10 +2,7 @@ from typing import Any
from zipfile import ZIP_DEFLATED as ZIP_DEFLATED from zipfile import ZIP_DEFLATED as ZIP_DEFLATED
from zipfile import PyZipFile as PyZipFile from zipfile import PyZipFile as PyZipFile
from cStringIO import StringIO as StringIO from ..tools.translate import _ as _
from odoo.tools.translate import _ as _
_logger: Any
class Graph(dict): class Graph(dict):
def add_node(self, name, info): ... def add_node(self, name, info): ...
@@ -13,7 +10,6 @@ class Graph(dict):
def add_module(self, cr, module, force: Any | None = ...) -> None: ... def add_module(self, cr, module, force: Any | None = ...) -> None: ...
def add_modules(self, cr, module_list, force: Any | None = ...): ... def add_modules(self, cr, module_list, force: Any | None = ...): ...
def __iter__(self): ... def __iter__(self): ...
def __str__(self): ...
class Node: class Node:
def __new__(cls, name, graph, info): ... def __new__(cls, name, graph, info): ...
@@ -28,5 +24,3 @@ class Node:
def add_child(self, name, info): ... def add_child(self, name, info): ...
def __setattr__(self, name, value) -> None: ... def __setattr__(self, name, value) -> None: ...
def __iter__(self): ... def __iter__(self): ...
def __str__(self): ...
def _pprint(self, depth: int = ...): ...

View File

@@ -1,8 +1,5 @@
from typing import Any from typing import Any
_logger: Any
_test_logger: Any
def load_module_graph( def load_module_graph(
cr, cr,
graph, graph,
@@ -12,7 +9,6 @@ def load_module_graph(
report: Any | None = ..., report: Any | None = ...,
models_to_check: Any | None = ..., models_to_check: Any | None = ...,
): ... ): ...
def _check_module_names(cr, module_names) -> None: ...
def load_marked_modules( def load_marked_modules(
cr, cr,
graph, graph,

View File

@@ -1,11 +1,8 @@
from typing import Any from typing import Any
_logger: Any
class MigrationManager: class MigrationManager:
cr: Any cr: Any
graph: Any graph: Any
migrations: Any migrations: Any
def __init__(self, cr, graph) -> None: ... def __init__(self, cr, graph) -> None: ...
def _get_files(self): ...
def migrate_module(self, pkg, stage): ... def migrate_module(self, pkg, stage): ...

View File

@@ -1,12 +1,11 @@
from operator import itemgetter as itemgetter from operator import itemgetter as itemgetter
from typing import Any from typing import Any
from odoo import SUPERUSER_ID as SUPERUSER_ID from .. import SUPERUSER_ID as SUPERUSER_ID
from odoo import api as api from .. import api as api
MANIFEST_NAMES: Any MANIFEST_NAMES: Any
README: Any README: Any
_logger: Any
ad_paths: Any ad_paths: Any
hooked: bool hooked: bool
loaded: Any loaded: Any

View File

@@ -1,13 +1,9 @@
from collections import Mapping from collections import Mapping
from typing import Any from typing import Any
from odoo.sql_db import Cursor from ..sql_db import Cursor
_logger: Any
class Registry(Mapping): class Registry(Mapping):
_lock: Any
_saved_lock: Any
model_cache: Any model_cache: Any
def registries(cls): ... def registries(cls): ...
def __new__(cls, db_name): ... def __new__(cls, db_name): ...
@@ -20,14 +16,7 @@ class Registry(Mapping):
update_module: bool = ..., update_module: bool = ...,
): ... ): ...
models: Any models: Any
_sql_error: Any
_init: bool
_init_parent: Any
_assertion_report: Any
_fields_by_model: Any
_init_modules: Any
db_name: Any db_name: Any
_db: Any
test_cr: Any test_cr: Any
ready: bool ready: bool
registry_sequence: Any registry_sequence: Any
@@ -51,7 +40,6 @@ class Registry(Mapping):
def do_parent_store(self, cr) -> None: ... def do_parent_store(self, cr) -> None: ...
def descendants(self, model_names, *kinds): ... def descendants(self, model_names, *kinds): ...
def load(self, cr, module): ... def load(self, cr, module): ...
_m2m: Any
def setup_models(self, cr, partial: bool = ...) -> None: ... def setup_models(self, cr, partial: bool = ...) -> None: ...
def init_models(self, cr, model_names, context) -> None: ... def init_models(self, cr, model_names, context) -> None: ...
def clear_caches(self) -> None: ... def clear_caches(self) -> None: ...

View File

@@ -1,8 +1,6 @@
import logging.handlers import logging.handlers
from typing import Any from typing import Any
_logger: Any
def log(logger, level, prefix, msg, depth: Any | None = ...) -> None: ... def log(logger, level, prefix, msg, depth: Any | None = ...) -> None: ...
def LocalService(name): ... def LocalService(name): ...
@@ -19,7 +17,6 @@ BLUE: Any
MAGENTA: Any MAGENTA: Any
CYAN: Any CYAN: Any
WHITE: Any WHITE: Any
_NOTHING: Any
DEFAULT: Any DEFAULT: Any
RESET_SEQ: str RESET_SEQ: str
COLOR_SEQ: str COLOR_SEQ: str
@@ -33,8 +30,6 @@ class DBFormatter(logging.Formatter):
class ColoredFormatter(DBFormatter): class ColoredFormatter(DBFormatter):
def format(self, record): ... def format(self, record): ...
_logger_init: bool
def init_logger(): ... def init_logger(): ...
DEFAULT_LOG_CONFIGURATION: Any DEFAULT_LOG_CONFIGURATION: Any

View File

@@ -12,14 +12,12 @@ TRUE_LEAF: Any
FALSE_LEAF: Any FALSE_LEAF: Any
TRUE_DOMAIN: Any TRUE_DOMAIN: Any
FALSE_DOMAIN: Any FALSE_DOMAIN: Any
_logger: Any
def normalize_domain(domain): ... def normalize_domain(domain): ...
def combine(operator, unit, zero, domains): ... def combine(operator, unit, zero, domains): ...
def AND(domains): ... def AND(domains): ...
def OR(domains): ... def OR(domains): ...
def distribute_not(domain): ... def distribute_not(domain): ...
def _quote(to_quote): ...
def generate_table_alias(src_table_alias, joined_tables=...): ... def generate_table_alias(src_table_alias, joined_tables=...): ...
def get_alias_from_query(from_query): ... def get_alias_from_query(from_query): ...
def normalize_leaf(element): ... def normalize_leaf(element): ...
@@ -35,16 +33,13 @@ class ExtendedLeaf:
join_context: Any join_context: Any
leaf: Any leaf: Any
model: Any model: Any
_models: Any
def __init__( def __init__(
self, leaf, model, join_context: Any | None = ..., internal: bool = ... self, leaf, model, join_context: Any | None = ..., internal: bool = ...
) -> None: ... ) -> None: ...
def __str__(self): ...
def generate_alias(self): ... def generate_alias(self): ...
def add_join_context(self, model, lhs_col, table_col, link) -> 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 check_leaf(self, internal: bool = ...) -> None: ... def check_leaf(self, internal: bool = ...) -> None: ...
def is_operator(self): ... def is_operator(self): ...
def is_true_leaf(self): ... def is_true_leaf(self): ...
@@ -57,7 +52,6 @@ def create_substitution_leaf(
): ... ): ...
class expression: class expression:
_unaccent: Any
joins: Any joins: Any
root_model: Any root_model: Any
expression: Any expression: Any
@@ -66,5 +60,4 @@ class expression:
result: Any result: Any
stack: Any stack: Any
def parse(self): ... def parse(self): ...
def __leaf_to_sql(self, eleaf): ...
def to_sql(self): ... def to_sql(self): ...

View File

@@ -1,7 +1,5 @@
from typing import Any from typing import Any
def _quote(to_quote): ...
class Query: class Query:
tables: Any tables: Any
where_clause: Any where_clause: Any
@@ -16,8 +14,6 @@ class Query:
joins: Any | None = ..., joins: Any | None = ...,
extras: Any | None = ..., extras: Any | None = ...,
) -> None: ... ) -> None: ...
def _get_table_aliases(self): ...
def _get_alias_mapping(self): ...
def add_join( def add_join(
self, self,
connection, connection,
@@ -27,4 +23,3 @@ class Query:
extra_params=..., extra_params=...,
): ... ): ...
def get_sql(self): ... def get_sql(self): ...
def __str__(self): ...

View File

@@ -7,24 +7,8 @@ class external_pdf(render.render):
pdf: Any pdf: Any
output_type: str output_type: str
def __init__(self, pdf) -> None: ... def __init__(self, pdf) -> None: ...
def _render(self): ...
class report_custom(report_int): class report_custom(report_int):
def __init__(self, name) -> None: ... def __init__(self, name) -> None: ...
def _row_get(
self,
cr,
uid,
objs,
fields,
conditions,
row_canvas: Any | None = ...,
group_by: Any | None = ...,
): ...
def create(self, cr, uid, ids, datas, context: Any | None = ...): ... def create(self, cr, uid, ids, datas, context: Any | None = ...): ...
obj: Any obj: Any
def _create_tree(self, uid, ids, report, fields, level, results, context): ...
def _create_lines(self, cr, uid, ids, report, fields, results, context): ...
def _create_bars(self, cr, uid, ids, report, fields, results, context): ...
def _create_pie(self, cr, uid, ids, report, fields, results, context): ...
def _create_table(self, uid, ids, report, fields, tree, results, context): ...

View File

@@ -5,7 +5,4 @@ dizaine: Any
centaine: Any centaine: Any
mille: Any mille: Any
def _100_to_text(chiffre): ...
def _1000_to_text(chiffre): ...
def _10000_to_text(chiffre): ...
def int_to_text(i): ... def int_to_text(i): ...

View File

@@ -3,8 +3,6 @@ from typing import Any
def toxml(value): ... def toxml(value): ...
class report_int: class report_int:
_reports: Any
__name: Any
name: Any name: Any
id: int id: int
name2: Any name2: Any
@@ -59,4 +57,3 @@ class report_rml(report_int):
def create_sxw(self, rml, localcontext: Any | None = ...): ... def create_sxw(self, rml, localcontext: Any | None = ...): ...
def create_odt(self, rml, localcontext: Any | None = ...): ... def create_odt(self, rml, localcontext: Any | None = ...): ...
def create_makohtml2html(self, html, localcontext: Any | None = ...): ... def create_makohtml2html(self, html, localcontext: Any | None = ...): ...
def _get_path(self): ...

View File

@@ -1,13 +1,8 @@
from typing import Any from typing import Any
from odoo.report.interface import report_int from ..interface import report_int
class report_printscreen_list(report_int): class report_printscreen_list(report_int):
def _parse_node(self, root_node): ...
def _parse_string(self, view): ...
title: Any title: Any
def create(self, cr, uid, ids, datas, context: Any | None = ...): ... def create(self, cr, uid, ids, datas, context: Any | None = ...): ...
obj: Any obj: Any
def _create_table(
self, uid, ids, fields, fields_order, results, context, title: str = ...
): ...

View File

@@ -1,18 +1,13 @@
from typing import Any from typing import Any
from odoo.report.interface import report_int from ..interface import report_int
class report_printscreen_list(report_int): class report_printscreen_list(report_int):
context: Any context: Any
groupby: Any groupby: Any
cr: str cr: str
def __init__(self, name) -> None: ... def __init__(self, name) -> None: ...
def _parse_node(self, root_node): ...
def _parse_string(self, view): ...
groupby_no_leaf: Any groupby_no_leaf: Any
title: Any title: Any
def create(self, cr, uid, ids, datas, context: Any | None = ...): ... def create(self, cr, uid, ids, datas, context: Any | None = ...): ...
obj: Any obj: Any
def _create_table(
self, uid, ids, fields, fields_order, results, context, title: str = ...
): ...

View File

@@ -1,5 +1,3 @@
from typing import Any
from PIL import Image as Image from PIL import Image as Image
from .render import render as render from .render import render as render
@@ -10,5 +8,3 @@ from .rml import rml as rml
from .rml import rml2html as rml2html from .rml import rml2html as rml2html
from .rml import rml2txt as rml2txt from .rml import rml2txt as rml2txt
from .simple import simple as simple from .simple import simple as simple
_logger: Any

View File

@@ -1,11 +1,8 @@
from typing import Any from typing import Any
_regex: Any
class html2html: class html2html:
localcontext: Any localcontext: Any
etree: Any etree: Any
_node: Any
def __init__(self, html, localcontext) -> None: ... def __init__(self, html, localcontext) -> None: ...
def render(self): ... def render(self): ...
def url_modify(self, root): ... def url_modify(self, root): ...

View File

@@ -1,7 +1,5 @@
from typing import Any from typing import Any
_logger: Any
class makohtml2html: class makohtml2html:
localcontext: Any localcontext: Any
html: Any html: Any

View File

@@ -3,7 +3,6 @@ from typing import Any
class odt2odt: class odt2odt:
localcontext: Any localcontext: Any
etree: Any etree: Any
_node: Any
def __init__(self, odt, localcontext) -> None: ... def __init__(self, odt, localcontext) -> None: ...
def render(self): ... def render(self): ...

View File

@@ -5,8 +5,6 @@ class render:
bin_datas: Any bin_datas: Any
path: Any path: Any
def __init__(self, bin_datas: Any | None = ..., path: str = ...) -> None: ... def __init__(self, bin_datas: Any | None = ..., path: str = ...) -> None: ...
def _render(self) -> None: ...
_result: Any
def render(self): ... def render(self): ...
def is_done(self): ... def is_done(self): ...
def get(self): ... def get(self): ...

View File

@@ -15,7 +15,6 @@ class rml(render.render):
path: str = ..., path: str = ...,
title: Any | None = ..., title: Any | None = ...,
) -> None: ... ) -> None: ...
def _render(self): ...
class rml2html(render.render): class rml2html(render.render):
rml: Any rml: Any
@@ -24,7 +23,6 @@ class rml2html(render.render):
def __init__( def __init__(
self, rml, localcontext: Any | None = ..., datas: Any | None = ... self, rml, localcontext: Any | None = ..., datas: Any | None = ...
) -> None: ... ) -> None: ...
def _render(self): ...
class rml2txt(render.render): class rml2txt(render.render):
rml: Any rml: Any
@@ -33,7 +31,6 @@ class rml2txt(render.render):
def __init__( def __init__(
self, rml, localcontext: Any | None = ..., datas: Any | None = ... self, rml, localcontext: Any | None = ..., datas: Any | None = ...
) -> None: ... ) -> None: ...
def _render(self): ...
class odt2odt(render.render): class odt2odt(render.render):
rml_dom: Any rml_dom: Any
@@ -42,7 +39,6 @@ class odt2odt(render.render):
def __init__( def __init__(
self, rml, localcontext: Any | None = ..., datas: Any | None = ... self, rml, localcontext: Any | None = ..., datas: Any | None = ...
) -> None: ... ) -> None: ...
def _render(self): ...
class html2html(render.render): class html2html(render.render):
rml_dom: Any rml_dom: Any
@@ -51,11 +47,9 @@ class html2html(render.render):
def __init__( def __init__(
self, rml, localcontext: Any | None = ..., datas: Any | None = ... self, rml, localcontext: Any | None = ..., datas: Any | None = ...
) -> None: ... ) -> None: ...
def _render(self): ...
class makohtml2html(render.render): class makohtml2html(render.render):
html: Any html: Any
localcontext: Any localcontext: Any
output_type: str output_type: str
def __init__(self, html, localcontext: Any | None = ...) -> None: ... def __init__(self, html, localcontext: Any | None = ...) -> None: ...
def _render(self): ...

View File

@@ -1,102 +1,4 @@
from typing import Any from typing import Any
class _flowable:
_tags: Any
template: Any
doc: Any
localcontext: Any
_cache: Any
def __init__(self, template, doc, localcontext: Any | None = ...) -> None: ...
def _tag_page_break(self, node): ...
def _tag_next_template(self, node): ...
def _tag_next_frame(self, node): ...
def _tag_title(self, node): ...
def _tag_spacer(self, node): ...
def _tag_table(self, node): ...
def _tag_para(self, node): ...
def _section(self, node): ...
def render(self, node): ...
class _rml_tmpl_tag:
def __init__(self, *args) -> None: ...
def tag_start(self): ...
def tag_end(self): ...
def tag_stop(self): ...
def tag_mergeable(self): ...
class _rml_tmpl_frame(_rml_tmpl_tag):
width: Any
posx: Any
def __init__(self, posx, width) -> None: ...
def tag_start(self): ...
def tag_end(self): ...
def tag_stop(self): ...
def tag_mergeable(self): ...
def merge(self, frame) -> None: ...
class _rml_tmpl_draw_string(_rml_tmpl_tag):
localcontext: Any
posx: Any
posy: Any
pos: Any
def __init__(self, node, style, localcontext=...) -> None: ...
def tag_start(self): ...
def merge(self, ds) -> None: ...
class _rml_tmpl_draw_lines(_rml_tmpl_tag):
localcontext: Any
ok: bool
posx: Any
posy: Any
width: Any
style: Any
def __init__(self, node, style, localcontext=...) -> None: ...
def tag_start(self): ...
class _rml_stylesheet:
doc: Any
localcontext: Any
attrs: Any
_tags: Any
result: Any
def __init__(self, localcontext, stylesheet, doc): ...
def render(self): ...
class _rml_draw_style:
style: Any
_styles: Any
def __init__(self): ...
def update(self, node) -> None: ...
def font_size_get(self, tag): ...
def get(self, tag): ...
class _rml_template:
frame_pos: int
localcontext: Any
frames: Any
template_order: Any
page_template: Any
loop: int
_tags: Any
style: Any
data: str
template: Any
def __init__(self, template, localcontext: Any | None = ...) -> None: ...
def _get_style(self): ...
def set_next_template(self) -> None: ...
def set_template(self, name) -> None: ...
def frame_start(self): ...
def frame_stop(self): ...
def start(self): ...
def end(self): ...
class _rml_doc:
dom: Any
localcontext: Any
filename: Any
result: str
def __init__(self, data, localcontext) -> None: ...
def render(self, out) -> None: ...
def parseString(data, localcontext=..., fout: Any | None = ...): ... def parseString(data, localcontext=..., fout: Any | None = ...): ...
def rml2html_help() -> None: ... def rml2html_help() -> None: ...

View File

@@ -1,6 +1,5 @@
from typing import Any from typing import Any
_logger: Any
CustomTTFonts: Any CustomTTFonts: Any
TTFSearchPath: Any TTFSearchPath: Any

View File

@@ -4,15 +4,11 @@ from reportlab import platypus
from reportlab.pdfgen import canvas from reportlab.pdfgen import canvas
from reportlab.platypus.doctemplate import ActionFlowable from reportlab.platypus.doctemplate import ActionFlowable
_hush_pyflakes: Any
_logger: Any
encoding: str encoding: str
def select_fontname(fontname, default_fontname): ... def select_fontname(fontname, default_fontname): ...
def _open_image(filename, path: Any | None = ...): ...
class NumberedCanvas(canvas.Canvas): class NumberedCanvas(canvas.Canvas):
_saved_page_states: Any
def __init__(self, *args, **kwargs) -> None: ... def __init__(self, *args, **kwargs) -> None: ...
def showPage(self) -> None: ... def showPage(self) -> None: ...
def save(self) -> None: ... def save(self) -> None: ...
@@ -26,170 +22,19 @@ class PageCount(platypus.Flowable):
class PageReset(platypus.Flowable): class PageReset(platypus.Flowable):
def draw(self) -> None: ... def draw(self) -> None: ...
class _rml_styles:
localcontext: Any
styles: Any
styles_obj: Any
names: Any
table_styles: Any
default_style: Any
def __init__(self, nodes, localcontext) -> None: ...
def _para_style_update(self, node): ...
def _table_style_get(self, style_node): ...
def para_style_get(self, node): ...
class _rml_doc:
localcontext: Any
etree: Any
filename: Any
images: Any
path: Any
title: Any
def __init__(
self,
node,
localcontext: Any | None = ...,
images: Any | None = ...,
path: str = ...,
title: Any | None = ...,
) -> None: ...
def docinit(self, els) -> None: ...
def setTTFontMapping(self, face, fontname, filename, mode: str = ...) -> None: ...
def _textual_image(self, node): ...
def _images(self, el): ...
styles: Any
canvas: Any
def render(self, out) -> None: ...
class _rml_canvas:
localcontext: Any
canvas: Any
styles: Any
doc_tmpl: Any
doc: Any
images: Any
path: Any
title: Any
def __init__(
self,
canvas,
localcontext,
doc_tmpl: Any | None = ...,
doc: Any | None = ...,
images: Any | None = ...,
path: str = ...,
title: Any | None = ...,
) -> None: ...
def _textual(self, node, x: int = ..., y: int = ...): ...
def _drawString(self, node) -> None: ...
def _drawCenteredString(self, node) -> None: ...
def _drawRightString(self, node) -> None: ...
def _rect(self, node) -> None: ...
def _ellipse(self, node) -> None: ...
def _curves(self, node) -> None: ...
def _lines(self, node) -> None: ...
def _grid(self, node) -> None: ...
def _translate(self, node) -> None: ...
def _circle(self, node) -> None: ...
def _place(self, node) -> None: ...
def _line_mode(self, node) -> None: ...
def _image(self, node): ...
def _path(self, node) -> None: ...
def setFont(self, node): ...
def render(self, node): ...
class _rml_draw:
localcontext: Any
node: Any
styles: Any
canvas: Any
images: Any
path: Any
canvas_title: Any
def __init__(
self,
localcontext,
node,
styles,
images: Any | None = ...,
path: str = ...,
title: Any | None = ...,
) -> None: ...
def render(self, canvas, doc) -> None: ...
class _rml_Illustration(platypus.flowables.Flowable):
localcontext: Any
node: Any
styles: Any
width: Any
height: Any
self2: Any
def __init__(self, node, localcontext, styles, self2) -> None: ...
def wrap(self, *args): ...
def draw(self) -> None: ...
original_pto_split: Any original_pto_split: Any
def split(self, availWidth, availHeight): ... def split(self, availWidth, availHeight): ...
class _rml_flowable:
localcontext: Any
doc: Any
styles: Any
images: Any
path: Any
title: Any
canvas: Any
def __init__(
self,
doc,
localcontext,
images: Any | None = ...,
path: str = ...,
title: Any | None = ...,
canvas: Any | None = ...,
) -> None: ...
def _textual(self, node): ...
def _table(self, node): ...
def _illustration(self, node): ...
def _textual_image(self, node): ...
def _pto(self, node): ...
def _flowable(self, node, extra_style: Any | None = ...): ...
def render(self, node_story): ...
class EndFrameFlowable(ActionFlowable): class EndFrameFlowable(ActionFlowable):
def __init__(self, resume: int = ...) -> None: ... def __init__(self, resume: int = ...) -> None: ...
class TinyDocTemplate(platypus.BaseDocTemplate): class TinyDocTemplate(platypus.BaseDocTemplate):
def beforeDocument(self) -> None: ... def beforeDocument(self) -> None: ...
_curPageFlowableCount: int
frame: Any frame: Any
def ___handle_pageBegin(self) -> None: ...
page: int page: int
def afterPage(self) -> None: ... def afterPage(self) -> None: ...
class _rml_template:
localcontext: Any
images: Any
path: Any
title: Any
doc_tmpl: Any
page_templates: Any
styles: Any
doc: Any
image: Any
def __init__(
self,
localcontext,
out,
node,
doc,
images: Any | None = ...,
path: str = ...,
title: Any | None = ...,
): ...
def render(self, node_stories) -> None: ...
def parseNode( def parseNode(
rml, rml,
localcontext: Any | None = ..., localcontext: Any | None = ...,

View File

@@ -1,12 +1,7 @@
from typing import Any from typing import Any
_logger: Any
_regex: Any
def str2xml(s): ... def str2xml(s): ...
def xml2str(s): ... def xml2str(s): ...
def _child_get(node, self: Any | None = ..., tagname: Any | None = ...) -> None: ...
def _process_text(self, txt): ...
def text_get(node): ... def text_get(node): ...
units: Any units: Any

View File

@@ -18,122 +18,6 @@ class textbox:
def renderlines(self, pad: int = ...): ... def renderlines(self, pad: int = ...): ...
def haplines(self, arr, offset, cc: str = ...) -> None: ... def haplines(self, arr, offset, cc: str = ...) -> None: ...
class _flowable:
_tags: Any
template: Any
doc: Any
localcontext: Any
nitags: Any
tbox: Any
def __init__(self, template, doc, localcontext) -> None: ...
def warn_nitag(self, tag) -> None: ...
def _tag_page_break(self, node): ...
def _tag_next_template(self, node): ...
def _tag_next_frame(self, node): ...
def _tag_title(self, node): ...
def _tag_spacer(self, node): ...
tb: Any
def _tag_table(self, node): ...
def _tag_para(self, node) -> None: ...
def _tag_section(self, node) -> None: ...
def _tag_font(self, node) -> None: ...
def rec_render_cnodes(self, node) -> None: ...
def rec_render(self, node) -> None: ...
def render(self, node): ...
class _rml_tmpl_tag:
def __init__(self, *args) -> None: ...
def tag_start(self): ...
def tag_end(self): ...
def tag_stop(self): ...
def tag_mergeable(self): ...
class _rml_tmpl_frame(_rml_tmpl_tag):
width: Any
posx: Any
def __init__(self, posx, width) -> None: ...
def tag_start(self): ...
def tag_end(self): ...
def tag_stop(self): ...
def tag_mergeable(self): ...
def merge(self, frame) -> None: ...
class _rml_tmpl_draw_string(_rml_tmpl_tag):
posx: Any
posy: Any
pos: Any
def __init__(self, node, style) -> None: ...
def tag_start(self): ...
def merge(self, ds) -> None: ...
class _rml_tmpl_draw_lines(_rml_tmpl_tag):
ok: bool
posx: Any
posy: Any
width: Any
style: Any
def __init__(self, node, style) -> None: ...
def tag_start(self): ...
class _rml_stylesheet:
doc: Any
attrs: Any
_tags: Any
result: Any
def __init__(self, stylesheet, doc): ...
def render(self): ...
class _rml_draw_style:
style: Any
_styles: Any
def __init__(self): ...
def update(self, node) -> None: ...
def font_size_get(self, tag): ...
def get(self, tag): ...
class _rml_template:
localcontext: Any
frame_pos: int
frames: Any
template_order: Any
page_template: Any
loop: int
_tags: Any
style: Any
template: Any
def __init__(
self,
localcontext,
out,
node,
doc,
images: Any | None = ...,
path: str = ...,
title: Any | None = ...,
) -> None: ...
def _get_style(self): ...
def set_next_template(self) -> None: ...
def set_template(self, name) -> None: ...
def frame_start(self): ...
def frame_stop(self): ...
def start(self): ...
def end(self): ...
class _rml_doc:
localcontext: Any
etree: Any
filename: Any
result: str
def __init__(
self,
node,
localcontext: Any | None = ...,
images: Any | None = ...,
path: str = ...,
title: Any | None = ...,
) -> None: ...
def render(self, out) -> None: ...
def parseNode( def parseNode(
rml, rml,
localcontext: Any | None = ..., localcontext: Any | None = ...,

View File

@@ -1,9 +1,5 @@
from typing import Any from typing import Any
_regex: Any
def _child_get(node, self: Any | None = ..., tagname: Any | None = ...) -> None: ...
def _process_text(self, txt): ...
def text_get(node): ... def text_get(node): ...
units: Any units: Any

View File

@@ -4,4 +4,3 @@ from . import render
class simple(render.render): class simple(render.render):
result: Any result: Any
def _render(self): ...

View File

@@ -3,7 +3,6 @@ from typing import Any
from . import preprocess from . import preprocess
from .interface import report_rml from .interface import report_rml
_logger: Any
rml_parents: Any rml_parents: Any
rml_tag: str rml_tag: str
sxw_parents: Any sxw_parents: Any
@@ -18,25 +17,20 @@ class rml_parse:
uid: Any uid: Any
localcontext: Any localcontext: Any
name: Any name: Any
_node: Any
parents: Any parents: Any
tag: Any tag: Any
_lang_cache: Any
lang_dict: Any lang_dict: Any
default_lang: Any default_lang: Any
lang_dict_called: bool lang_dict_called: bool
_transl_regex: Any
def __init__( def __init__(
self, cr, uid, name, parents=..., tag=..., context: Any | None = ... self, cr, uid, name, parents=..., tag=..., context: Any | None = ...
) -> None: ... ) -> None: ...
def setTag(self, oldtag, newtag, attrs: Any | None = ...): ... def setTag(self, oldtag, newtag, attrs: Any | None = ...): ...
def _ellipsis(self, char, size: int = ..., truncation_str: str = ...): ...
rml_header: Any rml_header: Any
rml_header2: Any rml_header2: Any
rml_header3: Any rml_header3: Any
logo: Any logo: Any
def setCompany(self, company_id) -> None: ... def setCompany(self, company_id) -> None: ...
def _strip_name(self, name, maxlen: int = ...): ...
def format(self, text, oldtag: Any | None = ...): ... def format(self, text, oldtag: Any | None = ...): ...
def removeParentNode(self, tag: Any | None = ...) -> None: ... def removeParentNode(self, tag: Any | None = ...) -> None: ...
def set_html_image( def set_html_image(
@@ -48,7 +42,6 @@ class rml_parse:
): ... ): ...
objects: Any objects: Any
def setLang(self, lang) -> None: ... def setLang(self, lang) -> None: ...
def _get_lang_dict(self): ...
def digits_fmt( def digits_fmt(
self, obj: Any | None = ..., f: Any | None = ..., dp: Any | None = ... self, obj: Any | None = ..., f: Any | None = ..., dp: Any | None = ...
): ... ): ...
@@ -68,8 +61,6 @@ class rml_parse:
): ... ): ...
def display_address(self, address_record, without_company: bool = ...): ... def display_address(self, address_record, without_company: bool = ...): ...
def repeatIn(self, lst, name, nodes_parent: bool = ...): ... def repeatIn(self, lst, name, nodes_parent: bool = ...): ...
def _translate(self, text): ...
def _add_header(self, rml_dom, header: str = ...): ...
datas: Any datas: Any
ids: Any ids: Any
def set_context( def set_context(

View File

@@ -1,6 +1,5 @@
from typing import Any from typing import Any
_logger: Any
RPC_VERSION_1: Any RPC_VERSION_1: Any
def exp_login(db, login, password): ... def exp_login(db, login, password): ...

View File

@@ -1,23 +1,11 @@
from functools import wraps as wraps from functools import wraps as wraps
from typing import Any from typing import Any
from odoo.exceptions import UserError as UserError from ..exceptions import UserError as UserError
_logger: Any
class DatabaseExists(Warning): ... class DatabaseExists(Warning): ...
def check_super(passwd): ... def check_super(passwd): ...
def _initialize_db(
id,
db_name,
demo,
lang,
user_password,
login: str = ...,
country_code: Any | None = ...,
) -> None: ...
def _create_empty_database(name) -> None: ...
def exp_create_database( def exp_create_database(
db_name, db_name,
demo, demo,
@@ -27,7 +15,6 @@ def exp_create_database(
country_code: Any | None = ..., country_code: Any | None = ...,
): ... ): ...
def exp_duplicate_database(db_original_name, db_name): ... def exp_duplicate_database(db_original_name, db_name): ...
def _drop_conn(cr, db_name) -> None: ...
def exp_drop(db_name): ... def exp_drop(db_name): ...
def exp_dump(db_name, format): ... def exp_dump(db_name, format): ...
def dump_db_manifest(cr): ... def dump_db_manifest(cr): ...

View File

@@ -1,6 +1,5 @@
from typing import Any from typing import Any
_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

View File

@@ -1,6 +1,5 @@
from typing import Any from typing import Any
_logger: Any
self_reports: Any self_reports: Any
self_id: int self_id: int
self_id_protect: Any self_id_protect: Any
@@ -12,5 +11,4 @@ def exp_render_report(
def exp_report( def exp_report(
db, uid, object, ids, datas: Any | None = ..., context: Any | None = ... db, uid, object, ids, datas: Any | None = ..., context: Any | None = ...
): ... ): ...
def _check_report(report_id): ...
def exp_report_get(db, uid, report_id): ... def exp_report_get(db, uid, report_id): ...

View File

@@ -3,7 +3,6 @@ from typing import Any
import werkzeug.serving import werkzeug.serving
INOTIFY_LISTEN_EVENTS: Any INOTIFY_LISTEN_EVENTS: Any
_logger: Any
SLEEP_INTERVAL: int SLEEP_INTERVAL: int
def memory_info(process): ... def memory_info(process): ...
@@ -146,14 +145,12 @@ class WorkerCron(Worker):
watchdog_timeout: Any watchdog_timeout: Any
def __init__(self, multi) -> None: ... def __init__(self, multi) -> None: ...
def sleep(self) -> None: ... def sleep(self) -> None: ...
def _db_list(self): ...
def process_work(self) -> None: ... def process_work(self) -> None: ...
def start(self) -> None: ... def start(self) -> None: ...
server: Any server: Any
def load_server_wide_modules() -> None: ... def load_server_wide_modules() -> None: ...
def _reexec(updated_modules: Any | None = ...) -> None: ...
def load_test_file_yml(registry, test_file) -> None: ... def load_test_file_yml(registry, test_file) -> None: ...
def load_test_file_py(registry, test_file) -> None: ... def load_test_file_py(registry, test_file) -> None: ...
def preload_registries(dbnames): ... def preload_registries(dbnames): ...

View File

@@ -1,6 +1,3 @@
from typing import Any
_logger: Any
RPC_FAULT_CODE_CLIENT_ERROR: int RPC_FAULT_CODE_CLIENT_ERROR: int
RPC_FAULT_CODE_APPLICATION_ERROR: int RPC_FAULT_CODE_APPLICATION_ERROR: int
RPC_FAULT_CODE_WARNING: int RPC_FAULT_CODE_WARNING: int

View File

@@ -2,7 +2,6 @@ from typing import Any
import psycopg2.extensions import psycopg2.extensions
_logger: Any
types_mapping: Any types_mapping: Any
def unbuffer(symb, cr): ... def unbuffer(symb, cr): ...
@@ -20,19 +19,9 @@ class Cursor:
sql_into_log: Any sql_into_log: Any
sql_log: Any sql_log: Any
sql_log_count: int sql_log_count: int
_closed: bool
__pool: Any
dbname: Any dbname: Any
_serialized: Any
_cnx: Any
_obj: Any
__caller: Any
__closer: bool
_default_log_exceptions: bool
cache: Any cache: Any
_event_handlers: Any
def __init__(self, pool, dbname, dsn, serialized: bool = ...) -> None: ... def __init__(self, pool, dbname, dsn, serialized: bool = ...) -> None: ...
def __build_dict(self, row): ...
def dictfetchone(self): ... def dictfetchone(self): ...
def dictfetchmany(self, size): ... def dictfetchmany(self, size): ...
def dictfetchall(self): ... def dictfetchall(self): ...
@@ -43,10 +32,8 @@ class Cursor:
def split_for_in_conditions(self, ids, size: Any | None = ...): ... def split_for_in_conditions(self, ids, size: Any | None = ...): ...
def print_log(self): ... def print_log(self): ...
def close(self): ... def close(self): ...
def _close(self, leak: bool = ...) -> None: ...
def autocommit(self, on) -> None: ... def autocommit(self, on) -> None: ...
def after(self, event, func) -> None: ... def after(self, event, func) -> None: ...
def _pop_event_handlers(self): ...
def commit(self): ... def commit(self): ...
def rollback(self): ... def rollback(self): ...
def __enter__(self): ... def __enter__(self): ...
@@ -57,7 +44,6 @@ class Cursor:
def closed(self): ... def closed(self): ...
class TestCursor(Cursor): class TestCursor(Cursor):
_lock: Any
def __init__(self, *args, **kwargs) -> None: ... def __init__(self, *args, **kwargs) -> None: ...
def acquire(self) -> None: ... def acquire(self) -> None: ...
def release(self) -> None: ... def release(self) -> None: ...
@@ -68,9 +54,6 @@ class TestCursor(Cursor):
def rollback(self) -> None: ... def rollback(self) -> None: ...
class LazyCursor: class LazyCursor:
_dbname: Any
_cursor: Any
_depth: int
def __init__(self, dbname: Any | None = ...) -> None: ... def __init__(self, dbname: Any | None = ...) -> None: ...
@property @property
def dbname(self): ... def dbname(self): ...
@@ -82,12 +65,7 @@ class PsycoConnection(psycopg2.extensions.connection): ...
class ConnectionPool: class ConnectionPool:
def locked(fun): ... def locked(fun): ...
_connections: Any
_maxconn: Any
_lock: Any
def __init__(self, maxconn: int = ...) -> None: ... def __init__(self, maxconn: int = ...) -> None: ...
def __repr__(self): ...
def _debug(self, msg, *args) -> None: ...
def borrow(self, connection_info): ... def borrow(self, connection_info): ...
def give_back(self, connection, keep_in_pool: bool = ...) -> None: ... def give_back(self, connection, keep_in_pool: bool = ...) -> None: ...
def close_all(self, dsn: Any | None = ...) -> None: ... def close_all(self, dsn: Any | None = ...) -> None: ...
@@ -95,7 +73,6 @@ class ConnectionPool:
class Connection: class Connection:
dbname: Any dbname: Any
dsn: Any dsn: Any
__pool: Any
def __init__(self, pool, dbname, dsn) -> None: ... def __init__(self, pool, dbname, dsn) -> None: ...
def cursor(self, serialized: bool = ...): ... def cursor(self, serialized: bool = ...): ...
def test_cursor(self, serialized: bool = ...): ... def test_cursor(self, serialized: bool = ...): ...
@@ -103,9 +80,6 @@ class Connection:
def __nonzero__(self): ... def __nonzero__(self): ...
def connection_info_for(db_or_uri): ... def connection_info_for(db_or_uri): ...
_Pool: Any
def db_connect(to, allow_uri: bool = ...): ... def db_connect(to, allow_uri: bool = ...): ...
def close_db(db_name) -> None: ... def close_db(db_name) -> None: ...
def close_all() -> None: ... def close_all() -> None: ...

View File

@@ -2,11 +2,11 @@ import unittest
from typing import Any from typing import Any
import urllib2 import urllib2
from odoo.api import Environment
from odoo.modules.registry import Registry
from odoo.sql_db import Cursor
_logger: Any from ..api import Environment
from ..modules.registry import Registry
from ..sql_db import Cursor
ADDONS_PATH: Any ADDONS_PATH: Any
HOST: str HOST: str
PORT: Any PORT: Any
@@ -26,7 +26,6 @@ class BaseCase(unittest.TestCase):
def cursor(self) -> Cursor: ... def cursor(self) -> Cursor: ...
def ref(self, xid): ... def ref(self, xid): ...
def browse_ref(self, xid): ... def browse_ref(self, xid): ...
def _assertRaises(self, exception) -> None: ...
def assertRaises(self, exception, func: Any | None = ..., *args, **kwargs): ... def assertRaises(self, exception, func: Any | None = ..., *args, **kwargs): ...
def shortDescription(self): ... def shortDescription(self): ...
@@ -48,7 +47,6 @@ class SingleTransactionCase(BaseCase):
savepoint_seq: Any savepoint_seq: Any
class SavepointCase(SingleTransactionCase): class SavepointCase(SingleTransactionCase):
_savepoint_id: Any
def setUp(self) -> None: ... def setUp(self) -> None: ...
def tearDown(self) -> None: ... def tearDown(self) -> None: ...
@@ -71,7 +69,6 @@ class HttpCase(TransactionCase):
def authenticate(self, user, password) -> None: ... def authenticate(self, user, password) -> None: ...
def phantom_poll(self, phantom, timeout): ... def phantom_poll(self, phantom, timeout): ...
def phantom_run(self, cmd, timeout) -> None: ... def phantom_run(self, cmd, timeout) -> None: ...
def _wait_remaining_requests(self) -> None: ...
def phantom_js( def phantom_js(
self, self,
url_path, url_path,

View File

@@ -4,8 +4,6 @@ to_19_fr: Any
tens_fr: Any tens_fr: Any
denom_fr: Any denom_fr: Any
def _convert_nn_fr(val): ...
def _convert_nnn_fr(val): ...
def french_number(val): ... def french_number(val): ...
def amount_to_text_fr(number, currency): ... def amount_to_text_fr(number, currency): ...
@@ -13,12 +11,7 @@ to_19_nl: Any
tens_nl: Any tens_nl: Any
denom_nl: Any denom_nl: Any
def _convert_nn_nl(val): ...
def _convert_nnn_nl(val): ...
def dutch_number(val): ... def dutch_number(val): ...
def amount_to_text_nl(number, currency): ... def amount_to_text_nl(number, currency): ...
_translate_funcs: Any
def add_amount_to_text_function(lang, func) -> None: ... def add_amount_to_text_function(lang, func) -> None: ...
def amount_to_text(nbr, lang: str = ..., currency: str = ...): ... def amount_to_text(nbr, lang: str = ..., currency: str = ...): ...

View File

@@ -1,13 +1,8 @@
from typing import Any from typing import Any
_logger: Any
to_19: Any to_19: Any
tens: Any tens: Any
denom: Any denom: Any
def _convert_nn(val): ...
def _convert_nnn(val): ...
def english_number(val): ... def english_number(val): ...
def amount_to_text(number, currency): ... def amount_to_text(number, currency): ...
_translate_funcs: Any

View File

@@ -1,9 +1,6 @@
from typing import Any from typing import Any
__version_info__: Any __version_info__: Any
__version__: Any
PY3: Any
unicode = str
def user_data_dir( def user_data_dir(
appname: Any | None = ..., appname: Any | None = ...,
@@ -68,11 +65,3 @@ class AppDirs:
def user_cache_dir(self): ... def user_cache_dir(self): ...
@property @property
def user_log_dir(self): ... 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

View File

@@ -5,4 +5,3 @@ class assertion_report:
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) -> None: ... def record_result(self, result) -> None: ...
def __str__(self): ...

View File

@@ -1,7 +1,6 @@
from typing import Any from typing import Any
unsafe_eval = eval unsafe_eval = eval
_logger: Any
class ormcache_counter: class ormcache_counter:
hit: int hit: int

View File

@@ -7,23 +7,16 @@ class MyOption(optparse.Option):
DEFAULT_LOG_HANDLER: str DEFAULT_LOG_HANDLER: str
def _get_default_datadir(): ...
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
parser: Any parser: Any
def __init__(self, fname: Any | None = ...) -> None: ... def __init__(self, fname: Any | None = ...) -> None: ...
def parse_config(self, args: Any | None = ...) -> None: ... def parse_config(self, args: Any | None = ...) -> None: ...
rcfile: Any rcfile: Any
def _parse_config(self, args: Any | None = ...): ...
def _is_addons_path(self, path): ...
def _check_addons_path(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, default: Any | None = ...): ... def get(self, key, default: Any | None = ...): ...

View File

@@ -1,6 +1,5 @@
from typing import Any from typing import Any
_logger: Any
safe_eval: Any safe_eval: Any
class ParseError(Exception): class ParseError(Exception):
@@ -9,16 +8,12 @@ class ParseError(Exception):
filename: Any filename: Any
lineno: Any lineno: Any
def __init__(self, msg, text, filename, lineno) -> None: ... def __init__(self, msg, text, filename, lineno) -> None: ...
def __str__(self): ...
class RecordDictWrapper(dict): class RecordDictWrapper(dict):
record: Any record: Any
def __init__(self, record) -> None: ... def __init__(self, record) -> None: ...
def __getitem__(self, key): ... 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): ... def str2bool(value): ...
class xml_import: class xml_import:
@@ -27,35 +22,6 @@ class xml_import:
def isnoupdate(self, data_node: Any | None = ...): ... def isnoupdate(self, data_node: Any | None = ...): ...
def get_context(self, data_node, node, eval_dict): ... def get_context(self, data_node, node, eval_dict): ...
def get_uid(self, data_node, node): ... def get_uid(self, data_node, node): ...
def _test_xml_id(self, xml_id) -> None: ...
def _tag_delete(
self, rec, data_node: Any | None = ..., mode: Any | None = ...
) -> None: ...
def _remove_ir_values(self, name, value, model): ...
def _tag_report(self, rec, data_node: Any | None = ..., mode: Any | None = ...): ...
def _tag_function(
self, rec, data_node: Any | None = ..., mode: Any | None = ...
) -> None: ...
def _tag_act_window(
self, rec, data_node: Any | None = ..., mode: Any | None = ...
) -> None: ...
def _tag_ir_set(
self, rec, data_node: Any | None = ..., mode: Any | None = ...
) -> None: ...
def _tag_workflow(
self, rec, data_node: Any | None = ..., mode: Any | None = ...
) -> None: ...
def _tag_menuitem(
self, rec, data_node: Any | None = ..., mode: Any | None = ...
): ...
def _assert_equals(self, f1, f2, prec: int = ...): ...
def _tag_assert(
self, rec, data_node: Any | None = ..., mode: Any | None = ...
) -> None: ...
def _tag_record(self, rec, data_node: Any | None = ..., mode: Any | None = ...): ...
def _tag_template(
self, el, data_node: Any | None = ..., mode: Any | None = ...
): ...
def id_get(self, id_str, raise_if_not_found: bool = ...): ... def id_get(self, id_str, raise_if_not_found: bool = ...): ...
def model_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: Any | None = ...): ... def parse(self, de, mode: Any | None = ...): ...
@@ -68,7 +34,6 @@ class xml_import:
assertion_report: Any assertion_report: Any
noupdate: Any noupdate: Any
xml_filename: Any xml_filename: Any
_tags: Any
def __init__( def __init__(
self, self,
cr, cr,

View File

@@ -1,6 +1,5 @@
from typing import Any from typing import Any
_logger: Any
SUPPORTED_DEBUGGER: Any SUPPORTED_DEBUGGER: Any
def post_mortem(config, info) -> None: ... def post_mortem(config, info) -> None: ...

View File

@@ -1,8 +1,5 @@
from typing import Any from typing import Any
def _float_check_precision(
precision_digits: Any | None = ..., precision_rounding: Any | None = ...
): ...
def float_round( def float_round(
value, value,
precision_digits: Any | None = ..., precision_digits: Any | None = ...,
@@ -20,8 +17,6 @@ def float_compare(
): ... ): ...
def float_repr(value, precision_digits): ... def float_repr(value, precision_digits): ...
_float_repr = float_repr
class float_precision(float): class float_precision(float):
def __new__(cls, value, precision_digits): ... def __new__(cls, value, precision_digits): ...
def float_repr(self): ... def float_repr(self): ...

View File

@@ -1,7 +1,5 @@
from typing import Any from typing import Any
__all__: Any
class lazy_property: class lazy_property:
fget: Any fget: Any
def __init__(self, fget) -> None: ... def __init__(self, fget) -> None: ...

View File

@@ -49,7 +49,6 @@ class graph:
tree_list: Any tree_list: Any
start: Any start: Any
def process(self, starting_node) -> None: ... def process(self, starting_node) -> None: ...
def __str__(self): ...
def scale( def scale(
self, maxx, maxy, nwidth: int = ..., nheight: int = ..., margin: int = ... self, maxx, maxy, nwidth: int = ..., nheight: int = ..., margin: int = ...
) -> None: ... ) -> None: ...

View File

@@ -1,7 +1,5 @@
from typing import Any from typing import Any
__all__: Any
class LRUNode: class LRUNode:
prev: Any prev: Any
me: Any me: Any
@@ -9,7 +7,6 @@ class LRUNode:
def __init__(self, prev, me) -> None: ... def __init__(self, prev, me) -> None: ...
class LRU: class LRU:
_lock: Any
count: Any count: Any
d: Any d: Any
first: Any first: Any

View File

@@ -2,23 +2,11 @@ from typing import Any
import lxml.html.clean as clean import lxml.html.clean as clean
_logger: Any
tags_to_kill: Any tags_to_kill: Any
tags_to_remove: Any tags_to_remove: Any
allowed_tags: Any allowed_tags: Any
safe_attrs: 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( def html_sanitize(
src, src,
silent: bool = ..., silent: bool = ...,

View File

@@ -1,28 +1 @@
from typing import Any, NamedTuple
__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): ...
class _Entry(NamedTuple):
mimetype: Any
signatures: Any
discriminants: Any
_mime_mappings: Any
def guess_mimetype(bin_data, default: str = ...): ... def guess_mimetype(bin_data, default: str = ...): ...
guess_mimetype: Any
ms: Any

View File

@@ -1,5 +1,5 @@
import threading import threading
from collections import Mapping, MutableSet, defaultdict from collections import Mapping, MutableSet
from itertools import repeat as repeat from itertools import repeat as repeat
from threading import local from threading import local
from typing import Any from typing import Any
@@ -7,21 +7,19 @@ from typing import Any
import xlsxwriter import xlsxwriter
import xlwt import xlwt
from cache import * from cache import *
from odoo.loglevels import exception_to_unicode as exception_to_unicode
from odoo.loglevels import get_encodings as get_encodings
_logger: Any from ..loglevels import exception_to_unicode as exception_to_unicode
from ..loglevels import get_encodings as get_encodings
SKIPPED_ELEMENT_TYPES: Any SKIPPED_ELEMENT_TYPES: Any
def find_in_path(name): ... def find_in_path(name): ...
def _exec_pipe(prog, args, env: Any | None = ...): ...
def exec_command_pipe(name, *args): ... def exec_command_pipe(name, *args): ...
def find_pg_tool(name): ... def find_pg_tool(name): ...
def exec_pg_environ(): ... def exec_pg_environ(): ...
def exec_pg_command(name, *args) -> None: ... def exec_pg_command(name, *args) -> None: ...
def exec_pg_command_pipe(name, *args): ... def exec_pg_command_pipe(name, *args): ...
def file_open(name, mode: str = ..., subdir: str = ..., pathinfo: bool = ...): ... def file_open(name, mode: str = ..., subdir: str = ..., pathinfo: bool = ...): ...
def _fileopen(path, mode, basedir, pathinfo, basename: Any | None = ...): ...
def flatten(list): ... def flatten(list): ...
def reverse_enumerate(l): ... def reverse_enumerate(l): ...
def partition(pred, elems): ... def partition(pred, elems): ...
@@ -36,15 +34,11 @@ class PatchedXlsxWorkbook(xlsxwriter.Workbook):
class UpdateableStr(local): class UpdateableStr(local):
string: Any string: Any
def __init__(self, string: str = ...) -> None: ... def __init__(self, string: str = ...) -> None: ...
def __str__(self): ...
def __repr__(self): ...
def __nonzero__(self): ... def __nonzero__(self): ...
class UpdateableDict(local): class UpdateableDict(local):
dict: Any dict: Any
def __init__(self, dict: Any | None = ...) -> None: ... def __init__(self, dict: Any | None = ...) -> None: ...
def __str__(self): ...
def __repr__(self): ...
def clear(self): ... def clear(self): ...
def keys(self): ... def keys(self): ...
def __setitem__(self, i, y) -> None: ... def __setitem__(self, i, y) -> None: ...
@@ -110,8 +104,7 @@ def get_and_group_by_company(cr, uid, obj, ids, context: Any | None = ...): ...
def resolve_attr(obj, attr): ... def resolve_attr(obj, attr): ...
def attrgetter(*items): ... def attrgetter(*items): ...
class unquote(str): class unquote(str): ...
def __repr__(self): ...
class UnquoteEvalContext(defaultdict): class UnquoteEvalContext(defaultdict):
def __init__(self, *args, **kwargs) -> None: ... def __init__(self, *args, **kwargs) -> None: ...
@@ -130,8 +123,6 @@ class mute_logger:
) -> None: ... ) -> None: ...
def __call__(self, func): ... def __call__(self, func): ...
_ph: Any
class CountingStream: class CountingStream:
stream: Any stream: Any
index: Any index: Any
@@ -143,7 +134,6 @@ class CountingStream:
def stripped_sys_argv(*strip_args): ... def stripped_sys_argv(*strip_args): ...
class ConstantMapping(Mapping): class ConstantMapping(Mapping):
_value: Any
def __init__(self, val) -> None: ... def __init__(self, val) -> None: ...
def __len__(self): ... def __len__(self): ...
def __iter__(self): ... def __iter__(self): ...
@@ -163,7 +153,6 @@ class frozendict(dict):
def __hash__(self): ... def __hash__(self): ...
class Collector(Mapping): class Collector(Mapping):
_map: Any
def __init__(self) -> None: ... def __init__(self) -> None: ...
def add(self, key, val) -> None: ... def add(self, key, val) -> None: ...
def __getitem__(self, key): ... def __getitem__(self, key): ...
@@ -171,7 +160,6 @@ class Collector(Mapping):
def __len__(self): ... def __len__(self): ...
class OrderedSet(MutableSet): class OrderedSet(MutableSet):
_map: Any
def __init__(self, elems=...) -> None: ... def __init__(self, elems=...) -> None: ...
def __contains__(self, elem): ... def __contains__(self, elem): ...
def __iter__(self): ... def __iter__(self): ...
@@ -193,7 +181,6 @@ def formatLang(
dp: bool = ..., dp: bool = ...,
currency_obj: bool = ..., currency_obj: bool = ...,
): ... ): ...
def _consteq(str1, str2): ...
consteq: Any consteq: Any

View File

@@ -1,4 +1,3 @@
import ctypes
from typing import Any from typing import Any
def listdir(dir, recursive: bool = ...): ... def listdir(dir, recursive: bool = ...): ...
@@ -10,7 +9,3 @@ def zip_dir(
getppid: Any getppid: Any
is_running_as_nt_service: Any is_running_as_nt_service: Any
_TH32CS_SNAPPROCESS: int
class _PROCESSENTRY32(ctypes.Structure):
_fields_: Any

View File

@@ -3,5 +3,4 @@ from typing import Any
component_re: Any component_re: Any
replace: Any replace: Any
def _parse_version_parts(s) -> None: ...
def parse_version(s): ... def parse_version(s): ...

View File

@@ -1,30 +1,12 @@
from typing import Any from typing import Any
unsafe_eval = eval unsafe_eval = eval
__all__: Any
_ALLOWED_MODULES: Any
_UNSAFE_ATTRIBUTES: Any
_CONST_OPCODES: Any
_EXPR_OPCODES: Any
_SAFE_OPCODES: Any
_logger: Any
def _get_opcodes(codeobj) -> None: ...
def assert_no_dunder_name(code_obj, expr) -> None: ... def assert_no_dunder_name(code_obj, expr) -> None: ...
def assert_valid_codeobj(allowed_codes, code_obj, expr) -> None: ... def assert_valid_codeobj(allowed_codes, code_obj, expr) -> None: ...
def test_expr(expr, allowed_codes, mode: str = ...): ... def test_expr(expr, allowed_codes, mode: str = ...): ...
def const_eval(expr): ... def const_eval(expr): ...
def expr_eval(expr): ... def expr_eval(expr): ...
def _import(
name,
globals: Any | None = ...,
locals: Any | None = ...,
fromlist: Any | None = ...,
level: int = ...,
): ...
_BUILTINS: Any
def safe_eval( def safe_eval(
expr, expr,
globals_dict: Any | None = ..., globals_dict: Any | None = ...,

View File

@@ -1,4 +0,0 @@
from typing import Any
config_file_00: Any
conf: Any

View File

@@ -1,8 +1,5 @@
from typing import Any from typing import Any
_logger: Any
_test_logger: Any
def try_report( def try_report(
cr, cr,
uid, uid,

View File

@@ -1,10 +1,8 @@
import csv import csv
from typing import Any from typing import Any
_logger: Any
WEB_TRANSLATION_COMMENT: str WEB_TRANSLATION_COMMENT: str
SKIPPED_ELEMENTS: Any SKIPPED_ELEMENTS: Any
_LOCALE2WIN32: Any
ENGLISH_SMALL_WORDS: Any ENGLISH_SMALL_WORDS: Any
class UNIX_LINE_TERMINATOR(csv.excel): class UNIX_LINE_TERMINATOR(csv.excel):
@@ -20,8 +18,6 @@ class XMLTranslator:
callback: Any callback: Any
method: Any method: Any
parser: Any parser: Any
_done: Any
_todo: Any
needs_trans: bool needs_trans: bool
def __init__(self, callback, method, parser: Any | None = ...) -> None: ... def __init__(self, callback, method, parser: Any | None = ...) -> None: ...
def todo(self, text, needs_trans: bool = ...) -> None: ... def todo(self, text, needs_trans: bool = ...) -> None: ...
@@ -40,10 +36,6 @@ def html_translate(callback, value): ...
def translate(cr, name, source_type, lang, source: Any | None = ...): ... def translate(cr, name, source_type, lang, source: Any | None = ...): ...
class GettextAlias: 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): ... def __call__(self, source): ...
_: Any _: Any
@@ -53,7 +45,6 @@ def quote(s): ...
re_escaped_char: Any re_escaped_char: Any
re_escaped_replacements: Any re_escaped_replacements: Any
def _sub_replacement(match_obj): ...
def unquote(str): ... def unquote(str): ...
class PoFile: class PoFile:
@@ -64,7 +55,6 @@ class PoFile:
first: bool first: bool
extra_lines: Any extra_lines: Any
def __iter__(self): ... def __iter__(self): ...
def _get_lines(self): ...
def cur_line(self): ... def cur_line(self): ...
def next(self): ... def next(self): ...
def write_infos(self, modules): ... def write_infos(self, modules): ...
@@ -74,9 +64,7 @@ class PoFile:
def trans_export(lang, modules, buffer, format, cr) -> None: ... def trans_export(lang, modules, buffer, format, cr) -> None: ...
def trans_parse_rml(de): ... def trans_parse_rml(de): ...
def _push(callback, term, source_line) -> None: ...
def in_modules(object_name, modules): ... def in_modules(object_name, modules): ...
def _extract_translatable_qweb_terms(element, callback) -> None: ...
def babel_extract_qweb(fileobj, keywords, comment_tags, options): ... def babel_extract_qweb(fileobj, keywords, comment_tags, options): ...
def trans_generate(lang, modules, cr): ... def trans_generate(lang, modules, cr): ...
def trans_load( def trans_load(

View File

@@ -1,8 +1,3 @@
from typing import Any
_logger: Any
_validators: Any
def valid_view(arch): ... def valid_view(arch): ...
def validate(*view_types): ... def validate(*view_types): ...
def valid_page_in_book(arch): ... def valid_page_in_book(arch): ...

View File

@@ -3,8 +3,6 @@ from os import W_OK as W_OK
from os.path import dirname as dirname from os.path import dirname as dirname
from typing import Any from typing import Any
__docformat__: str
__all__: Any
windows: Any windows: Any
seen: Any seen: Any
defpathext: Any defpathext: Any

View File

@@ -1,14 +1,12 @@
from typing import Any from typing import Any
unsafe_eval = eval unsafe_eval = eval
_logger: Any
def encode(s): ... def encode(s): ...
class YamlImportException(Exception): ... class YamlImportException(Exception): ...
class YamlImportAbortion(Exception): ... class YamlImportAbortion(Exception): ...
def _is_yaml_mapping(node, tag_constructor): ...
def is_comment(node): ... def is_comment(node): ...
def is_assert(node): ... def is_assert(node): ...
def is_record(node): ... def is_record(node): ...
@@ -56,48 +54,21 @@ class YamlInterpreter:
noupdate: bool = ..., noupdate: bool = ...,
loglevel=..., loglevel=...,
) -> None: ... ) -> None: ...
def _log(self, *args, **kwargs) -> None: ...
def validate_xml_id(self, xml_id) -> None: ... def validate_xml_id(self, xml_id) -> None: ...
def get_id(self, xml_id): ... def get_id(self, xml_id): ...
def get_record(self, xml_id): ... def get_record(self, xml_id): ...
def get_context(self, node, eval_dict): ... def get_context(self, node, eval_dict): ...
def isnoupdate(self, node): ... def isnoupdate(self, node): ...
def _get_first_result(self, results, default: bool = ...): ...
def process_comment(self, node): ... def process_comment(self, node): ...
def _log_assert_failure(self, msg, *args) -> None: ...
def _get_assertion_id(self, assertion): ...
def process_assert(self, node) -> None: ... def process_assert(self, node) -> None: ...
def _coerce_bool(self, value, default: bool = ...): ...
def create_osv_memory_record(self, record, fields): ... def create_osv_memory_record(self, record, fields): ...
def process_record(self, node) -> None: ... def process_record(self, node) -> None: ...
_dict: Any
def _create_record(
self,
model,
fields,
view_info: Any | None = ...,
parent=...,
default: bool = ...,
context: Any | None = ...,
): ...
def process_ref(self, node, field: Any | None = ...): ... def process_ref(self, node, field: Any | None = ...): ...
def process_eval(self, node): ... def process_eval(self, node): ...
def _eval_field(
self,
model,
field_name,
expression,
view_info: bool = ...,
parent=...,
default: bool = ...,
context: Any | None = ...,
): ...
def process_context(self, node) -> None: ... def process_context(self, node) -> None: ...
def process_python(self, node) -> None: ... def process_python(self, node) -> None: ...
def process_workflow(self, node) -> None: ... def process_workflow(self, node) -> None: ...
def _eval_params(self, model, params): ...
def process_function(self, node): ... def process_function(self, node): ...
def _set_group_values(self, node, values) -> None: ...
def process_menuitem(self, node) -> None: ... def process_menuitem(self, node) -> None: ...
def process_act_window(self, node) -> None: ... def process_act_window(self, node) -> None: ...
def process_delete(self, node) -> None: ... def process_delete(self, node) -> None: ...
@@ -106,8 +77,6 @@ class YamlInterpreter:
def process_report(self, node) -> None: ... def process_report(self, node) -> None: ...
def process_none(self) -> None: ... def process_none(self) -> None: ...
def process(self, yaml_string) -> None: ... def process(self, yaml_string) -> None: ...
def _process_node(self, node) -> None: ...
def _log_node(self, node, is_preceded_by_comment): ...
def yaml_import( def yaml_import(
cr, cr,

View File

@@ -4,7 +4,6 @@ class YamlTag:
def __init__(self, **kwargs) -> None: ... def __init__(self, **kwargs) -> None: ...
def __getitem__(self, key): ... def __getitem__(self, key): ...
def __getattr__(self, attr) -> None: ... def __getattr__(self, attr) -> None: ...
def __repr__(self): ...
class Assert(YamlTag): class Assert(YamlTag):
model: Any model: Any
@@ -22,14 +21,12 @@ class Record(YamlTag):
def __init__( def __init__(
self, model, id, use: str = ..., view: bool = ..., **kwargs self, model, id, use: str = ..., view: bool = ..., **kwargs
) -> None: ... ) -> None: ...
def __str__(self): ...
class Python(YamlTag): class Python(YamlTag):
model: Any model: Any
severity: Any severity: Any
name: Any name: Any
def __init__(self, model, severity=..., name: str = ..., **kwargs) -> None: ... def __init__(self, model, severity=..., name: str = ..., **kwargs) -> None: ...
def __str__(self): ...
class Menuitem(YamlTag): class Menuitem(YamlTag):
id: Any id: Any
@@ -41,7 +38,6 @@ class Workflow(YamlTag):
action: Any action: Any
ref: Any ref: Any
def __init__(self, model, action, ref: Any | None = ..., **kwargs) -> None: ... def __init__(self, model, action, ref: Any | None = ..., **kwargs) -> None: ...
def __str__(self): ...
class ActWindow(YamlTag): class ActWindow(YamlTag):
def __init__(self, **kwargs) -> None: ... def __init__(self, **kwargs) -> None: ...
@@ -69,12 +65,10 @@ class Url(YamlTag):
class Eval(YamlTag): class Eval(YamlTag):
expression: Any expression: Any
def __init__(self, expression) -> None: ... def __init__(self, expression) -> None: ...
def __str__(self): ...
class Ref(YamlTag): class Ref(YamlTag):
expr: Any expr: Any
def __init__(self, expr: str = ..., *args, **kwargs) -> None: ... def __init__(self, expr: str = ..., *args, **kwargs) -> None: ...
def __str__(self): ...
class IrSet(YamlTag): class IrSet(YamlTag):
def __init__(self) -> None: ... def __init__(self) -> None: ...

View File

@@ -10,10 +10,8 @@ class WorkflowInstance:
def delete(self) -> None: ... def delete(self) -> None: ...
def validate(self, signal, force_running: bool = ...): ... def validate(self, signal, force_running: bool = ...): ...
def update(self): ... def update(self): ...
def _update_end(self): ...
def create(session, record, workflow_id): ... def create(session, record, workflow_id): ...
def delete(session, record): ... def delete(session, record): ...
def validate(session, record, instance_id, signal, force_running: bool = ...): ... def validate(session, record, instance_id, signal, force_running: bool = ...): ...
def update(session, record, instance_id): ... def update(session, record, instance_id): ...
def _update_end(session, record, instance_id): ...

View File

@@ -1,7 +1,5 @@
from typing import Any from typing import Any
logger: Any
class Environment(dict): class Environment(dict):
cr: Any cr: Any
uid: Any uid: Any
@@ -26,10 +24,6 @@ class WorkflowItem:
force_running: bool = ..., force_running: bool = ...,
stack: Any | None = ..., stack: Any | None = ...,
): ... ): ...
def _execute(self, activity, stack): ...
def _state_set(self, activity, state) -> None: ...
def _split_test(self, split_mode, signal, stack): ...
def _join_test(self, trans_id, inst_id, stack) -> None: ...
def wkf_expr_eval_expr(self, lines): ... def wkf_expr_eval_expr(self, lines): ...
def wkf_expr_execute_action(self, activity): ... def wkf_expr_execute_action(self, activity): ...
def wkf_expr_execute(self, activity): ... def wkf_expr_execute(self, activity): ...