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 typing import Any
from odoo.addons.base.res.res_users import Users
from .modules.registry import Registry
from .sql_db import Cursor
__all__: Any
_logger: Any
WRAPPED_ATTRS: Any
INHERITED_ATTRS: Any
@@ -13,7 +13,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): ...
@@ -52,7 +51,6 @@ def call_kw_multi(method, self, args, kwargs): ...
def call_kw(model, name, args, kwargs): ...
class Environment(Mapping):
_local: Any
cr: Cursor = ...
uid: int = ...
context: dict = ...
@@ -63,7 +61,6 @@ class Environment(Mapping):
def reset(cls) -> None: ...
registry: Registry
cache: Any
_protected: Any
dirty: Any
all: Environments
def __new__(cls, cr: Cursor, uid, context) -> Environment: ...
@@ -79,11 +76,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): ...
def _do_in_mode(self, mode) -> None: ...
def do_in_draft(self): ...
@property
def in_draft(self): ...

View File

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

View File

@@ -10,8 +10,6 @@ DATE_LENGTH: Any
DATETIME_LENGTH: Any
EMPTY_DICT: Any
RENAMED_ATTRS: Any
_logger: Any
_schema: Any
Default: Any
class SpecialValue:
@@ -24,7 +22,6 @@ class FailedValue(SpecialValue):
def __init__(self, exception) -> None: ...
def get(self) -> None: ...
def _check_value(value): ...
def copy_cache(records, env) -> None: ...
def first(records): ...
def resolve_mro(model, name, predicate): ...
@@ -41,28 +38,19 @@ class Field(Generic[_FieldValueT]):
translate: bool
column_type: Any
column_format: str
_slots: 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): ...
prefetch: bool
string: Any
default: Any
def _setup_attrs(self, model, name): ...
def setup_full(self, model) -> None: ...
depends: Any
def _setup_regular_base(self, model): ...
def _setup_regular_full(self, model) -> None: ...
related: Any
related_field: Any
compute: Any
@@ -70,46 +58,13 @@ class Field(Generic[_FieldValueT]):
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_readonly: Any
_related_groups: Any
_related_group_operator: 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 _compute_sparse(self, records) -> None: ...
def _inverse_sparse(self, records) -> None: ...
def resolve_deps(self, model, path0=..., seen=...): ...
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
@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): ...
def convert_to_cache(self, value, record, validate: bool = ...): ...
@@ -127,7 +82,6 @@ class Field(Generic[_FieldValueT]):
@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) -> None: ...
@@ -146,25 +100,18 @@ class Boolean(Field[bool]):
class Integer(Field[int]):
type: str
column_type: Any
_slots: Any
_description_group_operator: Any
def convert_to_column(self, value, record): ...
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
_slots: Any
def __init__(self, string=..., digits=..., **kwargs) -> None: ...
@property
def column_type(self): ...
@property
def digits(self): ...
_related__digits: Any
_description_digits: Any
_description_group_operator: Any
def convert_to_column(self, value, record): ...
def convert_to_cache(self, value, record, validate: bool = ...): ...
def convert_to_export(self, value, record): ...
@@ -172,35 +119,23 @@ class Float(Field[float]):
class Monetary(Field[float]):
type: str
column_type: Any
_slots: Any
def __init__(self, string=..., currency_field=..., **kwargs) -> None: ...
_related_currency_field: Any
_description_currency_field: Any
_description_group_operator: Any
currency_field: str
def _setup_regular_full(self, model) -> None: ...
def convert_to_column(self, value, record): ...
def convert_to_cache(self, value, record, validate: bool = ...): ...
def convert_to_read(self, value, record, use_name_get: bool = ...): ...
def convert_to_write(self, value, record): ...
class _String(Field[str]):
_slots: Any
def __init__(self, string=..., **kwargs) -> 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): ...
class Char(_String):
type: str
_slots: Any
@property
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_cache(self, value, record, validate: bool = ...): ...
@@ -212,21 +147,7 @@ class Text(_String):
class Html(_String):
type: str
column_type: Any
_slots: 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_cache(self, value, record, validate: bool = ...): ...
@@ -263,10 +184,8 @@ class Datetime(Field[datetime.datetime]):
class Binary(Field[bytes]):
type: str
_slots: Any
@property
def column_type(self): ...
_description_attachment: Any
def convert_to_column(self, value, record): ...
def convert_to_cache(self, value, record, validate: bool = ...): ...
def read(self, records) -> None: ...
@@ -274,15 +193,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_cache(self, value, record, validate: bool = ...): ...
def convert_to_export(self, value, record): ...
@@ -300,26 +214,15 @@ 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): ...
def modified(self, records): ...
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: ...
def _update(self, records, value) -> None: ...
def convert_to_column(self, value, record): ...
def convert_to_cache(self, value, record, validate: bool = ...): ...
def convert_to_record(self, value, record): ...
@@ -335,7 +238,6 @@ class UnionUpdate(SpecialValue):
def get(self): ...
class _RelationalMulti(_Relational):
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 = ...): ...
@@ -343,17 +245,12 @@ class _RelationalMulti(_Relational):
def convert_to_onchange(self, value, record, fnames=...): ...
def convert_to_export(self, value, record): ...
def convert_to_display_name(self, value, record) -> None: ...
def _compute_related(self, records): ...
def _setup_regular_base(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, fnames=...): ...
def check_schema(self, model) -> None: ...
def read(self, records) -> None: ...
@@ -361,7 +258,6 @@ class One2many(_RelationalMulti):
class Many2many(_RelationalMulti):
type: str
_slots: Any
def __init__(
self,
comodel_name=...,
@@ -374,15 +270,12 @@ class Many2many(_RelationalMulti):
relation: Any
column1: Any
column2: Any
def _setup_regular_base(self, model) -> None: ...
def _setup_regular_full(self, model) -> None: ...
def check_schema(self, model): ...
def read(self, records) -> None: ...
def write(self, records, value): ...
class Serialized(Field):
type: str
_slots: Any
column_type: Any
def convert_to_column(self, value, record): ...
def convert_to_cache(self, value, record, validate: bool = ...): ...
@@ -390,5 +283,4 @@ class Serialized(Field):
class Id(Field[int]):
type: str
column_type: Any
_slots: Any
def __set__(self, record, value) -> None: ...

View File

@@ -7,11 +7,9 @@ from .api import Environment
from .modules.registry import Registry
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): ...
@@ -35,11 +33,6 @@ class WebRequest:
endpoint: Any
endpoint_arguments: Any
auth_method: Any
_cr: Cursor
_uid: int
_context: dict
_env: Environment
_failed: Any
def __init__(self, httprequest) -> None: ...
@property
def cr(self) -> Cursor: ...
@@ -60,8 +53,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: ...
@@ -75,25 +66,20 @@ class WebRequest:
def route(route: Any | None = ..., **kw): ...
class JsonRequest(WebRequest):
_request_type: str
jsonp_handler: Any
jsonp: Any
jsonrequest: Any
params: Any
context: Any
def __init__(self, *args): ...
def _json_response(self, result: Any | None = ..., error: Any | None = ...): ...
def _handle_exception(self, exception): ...
def dispatch(self): ...
def serialize_exception(e): ...
def to_jsonable(o): ...
class HttpRequest(WebRequest):
_request_type: str
params: Any
def __init__(self, *args) -> None: ...
def _handle_exception(self, exception): ...
def dispatch(self): ...
def make_response(
self, data, headers: Any | None = ..., cookies: Any | None = ...
@@ -146,10 +132,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: ...
@@ -180,7 +164,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): ...

View File

@@ -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
@@ -33,10 +30,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:
def __nonzero__(self): ...
@@ -393,7 +387,6 @@ class BaseModel:
def onchange(self, values, field_name, field_onchange): ...
class RecordCache(MutableMapping):
_recs: Any
def __init__(self, records) -> None: ...
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): ...
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 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

View File

@@ -1,7 +1,3 @@
from typing import Any
_logger: Any
def is_initialized(cr): ...
def initialize(cr) -> None: ...
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 PyZipFile as PyZipFile
from cStringIO import StringIO as StringIO
from odoo.tools.translate import _ as _
_logger: Any
from ..tools.translate import _ as _
class Graph(dict):
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_modules(self, cr, module_list, force: Any | None = ...): ...
def __iter__(self): ...
def __str__(self): ...
class Node:
def __new__(cls, name, graph, info): ...
@@ -28,5 +24,3 @@ class Node:
def add_child(self, name, info): ...
def __setattr__(self, name, value) -> None: ...
def __iter__(self): ...
def __str__(self): ...
def _pprint(self, depth: int = ...): ...

View File

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

View File

@@ -1,11 +1,8 @@
from typing import Any
_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): ...

View File

@@ -1,12 +1,11 @@
from operator import itemgetter as itemgetter
from typing import Any
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

View File

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

View File

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

View File

@@ -12,14 +12,12 @@ TRUE_LEAF: Any
FALSE_LEAF: Any
TRUE_DOMAIN: Any
FALSE_DOMAIN: Any
_logger: Any
def normalize_domain(domain): ...
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=...): ...
def get_alias_from_query(from_query): ...
def normalize_leaf(element): ...
@@ -35,16 +33,13 @@ class ExtendedLeaf:
join_context: Any
leaf: Any
model: Any
_models: Any
def __init__(
self, leaf, model, join_context: Any | None = ..., 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): ...
@@ -57,7 +52,6 @@ def create_substitution_leaf(
): ...
class expression:
_unaccent: Any
joins: Any
root_model: Any
expression: Any
@@ -66,5 +60,4 @@ class expression:
result: Any
stack: Any
def parse(self): ...
def __leaf_to_sql(self, eleaf): ...
def to_sql(self): ...

View File

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

View File

@@ -7,24 +7,8 @@ class external_pdf(render.render):
pdf: Any
output_type: str
def __init__(self, pdf) -> None: ...
def _render(self): ...
class report_custom(report_int):
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 = ...): ...
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
mille: Any
def _100_to_text(chiffre): ...
def _1000_to_text(chiffre): ...
def _10000_to_text(chiffre): ...
def int_to_text(i): ...

View File

@@ -3,8 +3,6 @@ from typing import Any
def toxml(value): ...
class report_int:
_reports: Any
__name: Any
name: Any
id: int
name2: Any
@@ -59,4 +57,3 @@ class report_rml(report_int):
def create_sxw(self, rml, localcontext: Any | None = ...): ...
def create_odt(self, rml, 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 odoo.report.interface import report_int
from ..interface import report_int
class report_printscreen_list(report_int):
def _parse_node(self, root_node): ...
def _parse_string(self, view): ...
title: Any
def create(self, cr, uid, ids, datas, context: Any | None = ...): ...
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 odoo.report.interface import report_int
from ..interface import report_int
class report_printscreen_list(report_int):
context: Any
groupby: Any
cr: str
def __init__(self, name) -> None: ...
def _parse_node(self, root_node): ...
def _parse_string(self, view): ...
groupby_no_leaf: Any
title: Any
def create(self, cr, uid, ids, datas, context: Any | None = ...): ...
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 .render import render as render
@@ -10,5 +8,3 @@ from .rml import rml as rml
from .rml import rml2html as rml2html
from .rml import rml2txt as rml2txt
from .simple import simple as simple
_logger: Any

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,102 +1,4 @@
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 rml2html_help() -> None: ...

View File

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

View File

@@ -4,15 +4,11 @@ from reportlab import platypus
from reportlab.pdfgen import canvas
from reportlab.platypus.doctemplate import ActionFlowable
_hush_pyflakes: Any
_logger: Any
encoding: str
def select_fontname(fontname, default_fontname): ...
def _open_image(filename, path: Any | None = ...): ...
class NumberedCanvas(canvas.Canvas):
_saved_page_states: Any
def __init__(self, *args, **kwargs) -> None: ...
def showPage(self) -> None: ...
def save(self) -> None: ...
@@ -26,170 +22,19 @@ class PageCount(platypus.Flowable):
class PageReset(platypus.Flowable):
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
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):
def __init__(self, resume: int = ...) -> None: ...
class TinyDocTemplate(platypus.BaseDocTemplate):
def beforeDocument(self) -> None: ...
_curPageFlowableCount: int
frame: Any
def ___handle_pageBegin(self) -> None: ...
page: int
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(
rml,
localcontext: Any | None = ...,

View File

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

View File

@@ -18,122 +18,6 @@ class textbox:
def renderlines(self, pad: int = ...): ...
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(
rml,
localcontext: Any | None = ...,

View File

@@ -1,9 +1,5 @@
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): ...
units: Any

View File

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

View File

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

View File

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

View File

@@ -1,23 +1,11 @@
from functools import wraps as wraps
from typing import Any
from odoo.exceptions import UserError as UserError
_logger: Any
from ..exceptions import UserError as UserError
class DatabaseExists(Warning): ...
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(
db_name,
demo,
@@ -27,7 +15,6 @@ def exp_create_database(
country_code: Any | None = ...,
): ...
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): ...

View File

@@ -1,6 +1,5 @@
from typing import Any
_logger: Any
PG_CONCURRENCY_ERRORS_TO_RETRY: Any
MAX_TRIES_ON_CONCURRENCY_FAILURE: int

View File

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

View File

@@ -3,7 +3,6 @@ from typing import Any
import werkzeug.serving
INOTIFY_LISTEN_EVENTS: Any
_logger: Any
SLEEP_INTERVAL: int
def memory_info(process): ...
@@ -146,14 +145,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: Any | None = ...) -> None: ...
def load_test_file_yml(registry, test_file) -> None: ...
def load_test_file_py(registry, test_file) -> None: ...
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_APPLICATION_ERROR: int
RPC_FAULT_CODE_WARNING: int

View File

@@ -2,7 +2,6 @@ from typing import Any
import psycopg2.extensions
_logger: Any
types_mapping: Any
def unbuffer(symb, cr): ...
@@ -20,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): ...
@@ -43,10 +32,8 @@ class Cursor:
def split_for_in_conditions(self, ids, size: Any | None = ...): ...
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): ...
@@ -57,7 +44,6 @@ class Cursor:
def closed(self): ...
class TestCursor(Cursor):
_lock: Any
def __init__(self, *args, **kwargs) -> None: ...
def acquire(self) -> None: ...
def release(self) -> None: ...
@@ -68,9 +54,6 @@ class TestCursor(Cursor):
def rollback(self) -> None: ...
class LazyCursor:
_dbname: Any
_cursor: Any
_depth: int
def __init__(self, dbname: Any | None = ...) -> None: ...
@property
def dbname(self): ...
@@ -82,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: Any | None = ...) -> None: ...
@@ -95,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 = ...): ...
def test_cursor(self, serialized: bool = ...): ...
@@ -103,9 +80,6 @@ class Connection:
def __nonzero__(self): ...
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: ...

View File

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

View File

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

View File

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

View File

@@ -1,9 +1,6 @@
from typing import Any
__version_info__: Any
__version__: Any
PY3: Any
unicode = str
def user_data_dir(
appname: Any | None = ...,
@@ -68,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

View File

@@ -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): ...

View File

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

View File

@@ -7,23 +7,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: Any | None = ...) -> None: ...
def parse_config(self, args: Any | None = ...) -> None: ...
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 save(self) -> None: ...
def get(self, key, default: Any | None = ...): ...

View File

@@ -1,6 +1,5 @@
from typing import Any
_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:
@@ -27,35 +22,6 @@ class xml_import:
def isnoupdate(self, data_node: Any | None = ...): ...
def get_context(self, data_node, node, eval_dict): ...
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 model_id_get(self, id_str, raise_if_not_found: bool = ...): ...
def parse(self, de, mode: Any | None = ...): ...
@@ -68,7 +34,6 @@ class xml_import:
assertion_report: Any
noupdate: Any
xml_filename: Any
_tags: Any
def __init__(
self,
cr,

View File

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

View File

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

View File

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

View File

@@ -49,7 +49,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: ...

View File

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

View File

@@ -2,23 +2,11 @@ from typing import Any
import lxml.html.clean as 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 = ...,

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 = ...): ...
guess_mimetype: Any
ms: Any

View File

@@ -1,5 +1,5 @@
import threading
from collections import Mapping, MutableSet, defaultdict
from collections import Mapping, MutableSet
from itertools import repeat as repeat
from threading import local
from typing import Any
@@ -7,21 +7,19 @@ from typing import Any
import xlsxwriter
import xlwt
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
def find_in_path(name): ...
def _exec_pipe(prog, args, env: Any | None = ...): ...
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: Any | None = ...): ...
def flatten(list): ...
def reverse_enumerate(l): ...
def partition(pred, elems): ...
@@ -36,15 +34,11 @@ class PatchedXlsxWorkbook(xlsxwriter.Workbook):
class UpdateableStr(local):
string: Any
def __init__(self, string: str = ...) -> None: ...
def __str__(self): ...
def __repr__(self): ...
def __nonzero__(self): ...
class UpdateableDict(local):
dict: Any
def __init__(self, dict: Any | None = ...) -> None: ...
def __str__(self): ...
def __repr__(self): ...
def clear(self): ...
def keys(self): ...
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 attrgetter(*items): ...
class unquote(str):
def __repr__(self): ...
class unquote(str): ...
class UnquoteEvalContext(defaultdict):
def __init__(self, *args, **kwargs) -> None: ...
@@ -130,8 +123,6 @@ class mute_logger:
) -> None: ...
def __call__(self, func): ...
_ph: Any
class CountingStream:
stream: Any
index: Any
@@ -143,7 +134,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): ...
@@ -163,7 +153,6 @@ class frozendict(dict):
def __hash__(self): ...
class Collector(Mapping):
_map: Any
def __init__(self) -> None: ...
def add(self, key, val) -> None: ...
def __getitem__(self, key): ...
@@ -171,7 +160,6 @@ class Collector(Mapping):
def __len__(self): ...
class OrderedSet(MutableSet):
_map: Any
def __init__(self, elems=...) -> None: ...
def __contains__(self, elem): ...
def __iter__(self): ...
@@ -193,7 +181,6 @@ def formatLang(
dp: bool = ...,
currency_obj: bool = ...,
): ...
def _consteq(str1, str2): ...
consteq: Any

View File

@@ -1,4 +1,3 @@
import ctypes
from typing import Any
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

View File

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

View File

@@ -1,30 +1,12 @@
from typing import Any
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_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: Any | None = ...,
locals: Any | None = ...,
fromlist: Any | None = ...,
level: int = ...,
): ...
_BUILTINS: Any
def safe_eval(
expr,
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
_logger: Any
_test_logger: Any
def try_report(
cr,
uid,

View File

@@ -1,10 +1,8 @@
import csv
from typing import Any
_logger: Any
WEB_TRANSLATION_COMMENT: str
SKIPPED_ELEMENTS: Any
_LOCALE2WIN32: Any
ENGLISH_SMALL_WORDS: Any
class UNIX_LINE_TERMINATOR(csv.excel):
@@ -20,8 +18,6 @@ class XMLTranslator:
callback: Any
method: Any
parser: Any
_done: Any
_todo: Any
needs_trans: bool
def __init__(self, callback, method, parser: Any | None = ...) -> 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 = ...): ...
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
@@ -53,7 +45,6 @@ def quote(s): ...
re_escaped_char: Any
re_escaped_replacements: Any
def _sub_replacement(match_obj): ...
def unquote(str): ...
class PoFile:
@@ -64,7 +55,6 @@ class PoFile:
first: bool
extra_lines: Any
def __iter__(self): ...
def _get_lines(self): ...
def cur_line(self): ...
def next(self): ...
def write_infos(self, modules): ...
@@ -74,9 +64,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(

View File

@@ -1,8 +1,3 @@
from typing import Any
_logger: Any
_validators: Any
def valid_view(arch): ...
def validate(*view_types): ...
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 typing import Any
__docformat__: str
__all__: Any
windows: Any
seen: Any
defpathext: Any

View File

@@ -1,14 +1,12 @@
from typing import Any
unsafe_eval = eval
_logger: Any
def encode(s): ...
class YamlImportException(Exception): ...
class YamlImportAbortion(Exception): ...
def _is_yaml_mapping(node, tag_constructor): ...
def is_comment(node): ...
def is_assert(node): ...
def is_record(node): ...
@@ -56,48 +54,21 @@ class YamlInterpreter:
noupdate: bool = ...,
loglevel=...,
) -> None: ...
def _log(self, *args, **kwargs) -> None: ...
def validate_xml_id(self, xml_id) -> None: ...
def get_id(self, xml_id): ...
def get_record(self, xml_id): ...
def get_context(self, node, eval_dict): ...
def isnoupdate(self, node): ...
def _get_first_result(self, results, default: bool = ...): ...
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 _coerce_bool(self, value, default: bool = ...): ...
def create_osv_memory_record(self, record, fields): ...
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_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_python(self, node) -> None: ...
def process_workflow(self, node) -> None: ...
def _eval_params(self, model, params): ...
def process_function(self, node): ...
def _set_group_values(self, node, values) -> None: ...
def process_menuitem(self, node) -> None: ...
def process_act_window(self, node) -> None: ...
def process_delete(self, node) -> None: ...
@@ -106,8 +77,6 @@ class YamlInterpreter:
def process_report(self, node) -> None: ...
def process_none(self) -> 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(
cr,

View File

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

View File

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

View File

@@ -1,7 +1,5 @@
from typing import Any
logger: Any
class Environment(dict):
cr: Any
uid: Any
@@ -26,10 +24,6 @@ class WorkflowItem:
force_running: bool = ...,
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_execute_action(self, activity): ...
def wkf_expr_execute(self, activity): ...