mirror of
https://github.com/odoo-ide/odoo-stubs.git
synced 2025-05-08 16:52:26 +03:00
@@ -1,13 +1,10 @@
|
||||
from . import addons as addons, api as api, cli as cli, conf as conf, fields as fields, http as http, loglevels as loglevels, models as models, netsvc as netsvc, osv as osv, release as release, service as service, sql_db as sql_db, tools as tools
|
||||
from . import api as api, fields as fields, models as models
|
||||
from odoo.modules.registry import Registry
|
||||
from odoo.tools.translate import _ as _
|
||||
from typing import Any
|
||||
|
||||
__path__: Any
|
||||
evented: bool
|
||||
|
||||
def gevent_wait_callback(conn, timeout: Any | None = ...) -> None: ...
|
||||
|
||||
multi_process: bool
|
||||
SUPERUSER_ID: int
|
||||
|
||||
def registry(database_name: Any | None = ...): ...
|
||||
def registry(database_name: Any | None = ...) -> Registry: ...
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
from collections import Mapping
|
||||
from typing import Any, Optional
|
||||
|
||||
from odoo.sql_db import Cursor
|
||||
from typing import Any
|
||||
|
||||
__all__: Any
|
||||
_logger: Any
|
||||
@@ -9,130 +7,105 @@ WRAPPED_ATTRS: Any
|
||||
INHERITED_ATTRS: Any
|
||||
|
||||
class Params:
|
||||
args: Any = ...
|
||||
kwargs: Any = ...
|
||||
def __init__(self, args: Any, kwargs: Any) -> None: ...
|
||||
args: Any
|
||||
kwargs: Any
|
||||
def __init__(self, args, kwargs) -> None: ...
|
||||
def __str__(self): ...
|
||||
|
||||
class Meta(type):
|
||||
def __new__(meta: Any, name: Any, bases: Any, attrs: Any): ...
|
||||
def __new__(meta, name, bases, attrs): ...
|
||||
|
||||
def attrsetter(attr: Any, value: Any): ...
|
||||
def propagate(method1: Any, method2: Any): ...
|
||||
def constrains(*args: Any): ...
|
||||
def onchange(*args: Any): ...
|
||||
def depends(*args: Any): ...
|
||||
def returns(model: Any, downgrade: Optional[Any] = ..., upgrade: Optional[Any] = ...): ...
|
||||
def downgrade(method: Any, value: Any, self: Any, args: Any, kwargs: Any): ...
|
||||
def aggregate(method: Any, value: Any, self: Any): ...
|
||||
def split_context(method: Any, args: Any, kwargs: Any): ...
|
||||
def model(method: Any): ...
|
||||
def multi(method: Any): ...
|
||||
def one(method: Any): ...
|
||||
def model_cr(method: Any): ...
|
||||
def model_cr_context(method: Any): ...
|
||||
def cr(method: Any): ...
|
||||
def cr_context(method: Any): ...
|
||||
def cr_uid(method: Any): ...
|
||||
def cr_uid_context(method: Any): ...
|
||||
def cr_uid_id(method: Any): ...
|
||||
def cr_uid_id_context(method: Any): ...
|
||||
def cr_uid_ids(method: Any): ...
|
||||
def cr_uid_ids_context(method: Any): ...
|
||||
def cr_uid_records(method: Any): ...
|
||||
def cr_uid_records_context(method: Any): ...
|
||||
def v7(method_v7: Any): ...
|
||||
def v8(method_v8: Any): ...
|
||||
def noguess(method: Any): ...
|
||||
def guess(method: Any): ...
|
||||
def expected(decorator: Any, func: Any): ...
|
||||
def call_kw(model: Any, name: Any, args: Any, kwargs: Any): ...
|
||||
def attrsetter(attr, value): ...
|
||||
def propagate(method1, method2): ...
|
||||
def constrains(*args): ...
|
||||
def onchange(*args): ...
|
||||
def depends(*args): ...
|
||||
def returns(model, downgrade: Any | None = ..., upgrade: Any | None = ...): ...
|
||||
def downgrade(method, value, self, args, kwargs): ...
|
||||
def aggregate(method, value, self): ...
|
||||
def split_context(method, args, kwargs): ...
|
||||
def model(method): ...
|
||||
def multi(method): ...
|
||||
def one(method): ...
|
||||
def model_cr(method): ...
|
||||
def model_cr_context(method): ...
|
||||
def cr(method): ...
|
||||
def cr_context(method): ...
|
||||
def cr_uid(method): ...
|
||||
def cr_uid_context(method): ...
|
||||
def cr_uid_id(method): ...
|
||||
def cr_uid_id_context(method): ...
|
||||
def cr_uid_ids(method): ...
|
||||
def cr_uid_ids_context(method): ...
|
||||
def cr_uid_records(method): ...
|
||||
def cr_uid_records_context(method): ...
|
||||
def v7(method_v7): ...
|
||||
def v8(method_v8): ...
|
||||
def noguess(method): ...
|
||||
def guess(method): ...
|
||||
def expected(decorator, func): ...
|
||||
def call_kw_model(method, self, args, kwargs): ...
|
||||
def call_kw_multi(method, self, args, kwargs): ...
|
||||
def call_kw(model, name, args, kwargs): ...
|
||||
|
||||
class Environment(Mapping):
|
||||
cr: Cursor = ...
|
||||
uid: int = ...
|
||||
context: dict = ...
|
||||
_local: Any = ...
|
||||
_local: Any
|
||||
@classmethod
|
||||
@property
|
||||
def envs(cls) -> Environments: ...
|
||||
@classmethod
|
||||
def manage(cls) -> None: ...
|
||||
@classmethod
|
||||
def reset(cls) -> None: ...
|
||||
registry: Any = ...
|
||||
cache: Any = ...
|
||||
_cache_key: Any = ...
|
||||
_protected: Any = ...
|
||||
dirty: Any = ...
|
||||
all: Any = ...
|
||||
def __new__(cls, cr: Any, uid: Any, context: Any) -> Environment: ...
|
||||
def __contains__(self, model_name: Any): ...
|
||||
def __getitem__(self, model_name: Any): ...
|
||||
def __iter__(self) -> Any: ...
|
||||
registry: Any
|
||||
cache: Any
|
||||
_protected: Any
|
||||
dirty: Any
|
||||
all: Any
|
||||
def __new__(cls, cr, uid, context) -> Environment: ...
|
||||
def __contains__(self, model_name): ...
|
||||
def __getitem__(self, model_name): ...
|
||||
def __iter__(self): ...
|
||||
def __len__(self): ...
|
||||
def __eq__(self, other: Any) -> Any: ...
|
||||
def __ne__(self, other: Any) -> Any: ...
|
||||
def __hash__(self) -> Any: ...
|
||||
def __call__(self, cr: Optional[Any] = ..., user: Optional[Any] = ..., context: Optional[Any] = ...) -> Environment: ...
|
||||
def ref(self, xml_id: Any, raise_if_not_found: bool = ...): ...
|
||||
def __eq__(self, other): ...
|
||||
def __ne__(self, other): ...
|
||||
def __hash__(self): ...
|
||||
def __call__(self, cr: Any | None = ..., user: Any | None = ..., context: Any | None = ...): ...
|
||||
def ref(self, xml_id, raise_if_not_found: bool = ...): ...
|
||||
@property
|
||||
def user(self):
|
||||
return self['res.users']
|
||||
@property
|
||||
def lang(self) -> str: ...
|
||||
def _do_in_mode(self, mode: Any) -> None: ...
|
||||
def lang(self): ...
|
||||
def _do_in_mode(self, mode) -> None: ...
|
||||
def do_in_draft(self): ...
|
||||
@property
|
||||
def in_draft(self): ...
|
||||
def do_in_onchange(self): ...
|
||||
@property
|
||||
def in_onchange(self): ...
|
||||
def invalidate(self, spec) -> None: ...
|
||||
def invalidate_all(self) -> None: ...
|
||||
def clear(self) -> None: ...
|
||||
def clear_upon_failure(self) -> None: ...
|
||||
def protected(self, field: Any): ...
|
||||
def protecting(self, fields: Any, records: Any) -> None: ...
|
||||
def field_todo(self, field: Any): ...
|
||||
def check_todo(self, field: Any, record: Any): ...
|
||||
def add_todo(self, field: Any, records: Any) -> None: ...
|
||||
def remove_todo(self, field: Any, records: Any) -> None: ...
|
||||
def protected(self, field): ...
|
||||
def protecting(self, fields, records) -> None: ...
|
||||
def field_todo(self, field): ...
|
||||
def check_todo(self, field, record): ...
|
||||
def add_todo(self, field, records) -> None: ...
|
||||
def remove_todo(self, field, records) -> None: ...
|
||||
def has_todo(self): ...
|
||||
def get_todo(self): ...
|
||||
def check_cache(self) -> None: ...
|
||||
@property
|
||||
def recompute(self): ...
|
||||
def norecompute(self) -> None: ...
|
||||
def cache_key(self, field: Any): ...
|
||||
|
||||
class Environments:
|
||||
envs: Any = ...
|
||||
cache: Any = ...
|
||||
todo: Any = ...
|
||||
mode: bool = ...
|
||||
recompute: bool = ...
|
||||
envs: Any
|
||||
todo: Any
|
||||
mode: bool
|
||||
recompute: bool
|
||||
def __init__(self) -> None: ...
|
||||
def add(self, env: Any) -> None: ...
|
||||
def __iter__(self) -> Any: ...
|
||||
|
||||
class Cache:
|
||||
_data: Any = ...
|
||||
def __init__(self): ...
|
||||
def contains(self, record: Any, field: Any): ...
|
||||
def get(self, record: Any, field: Any): ...
|
||||
def set(self, record: Any, field: Any, value: Any) -> None: ...
|
||||
def update(self, records: Any, field: Any, values: Any) -> None: ...
|
||||
def remove(self, record: Any, field: Any) -> None: ...
|
||||
def contains_value(self, record: Any, field: Any): ...
|
||||
def get_value(self, record: Any, field: Any, default: Optional[Any] = ...): ...
|
||||
def get_special(self, record: Any, field: Any, default: Optional[Any] = ...): ...
|
||||
def set_special(self, record: Any, field: Any, getter: Any) -> None: ...
|
||||
def set_failed(self, records: Any, fields: Any, exception: Any) -> None: ...
|
||||
def get_fields(self, record: Any) -> None: ...
|
||||
def get_records(self, model: Any, field: Any): ...
|
||||
def get_missing_ids(self, records: Any, field: Any) -> None: ...
|
||||
def copy(self, records: Any, env: Any) -> None: ...
|
||||
def invalidate(self, spec: Optional[Any] = ...) -> None: ...
|
||||
def check(self, env: Any) -> None: ...
|
||||
|
||||
class SpecialValue:
|
||||
__slots__: Any = ...
|
||||
get: Any = ...
|
||||
def __init__(self, getter: Any) -> None: ...
|
||||
def add(self, env) -> None: ...
|
||||
def __iter__(self): ...
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
from . import deploy as deploy, scaffold as scaffold, server as server, shell as shell, start as start
|
||||
from .command import Command as Command, main as main
|
||||
from command import Command as Command, main as main
|
||||
|
||||
@@ -3,11 +3,13 @@ from typing import Any
|
||||
commands: Any
|
||||
|
||||
class CommandType(type):
|
||||
def __init__(cls, name: Any, bases: Any, attrs: Any) -> None: ...
|
||||
def __init__(cls, name, bases, attrs) -> None: ...
|
||||
|
||||
Command: Any
|
||||
class Command:
|
||||
__metaclass__: Any
|
||||
def run(self, args) -> None: ...
|
||||
|
||||
class Help(Command):
|
||||
def run(self, args: Any) -> None: ...
|
||||
def run(self, args) -> None: ...
|
||||
|
||||
def main() -> None: ...
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
from . import Command
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
class Deploy(Command):
|
||||
session: Any = ...
|
||||
session: Any
|
||||
def __init__(self) -> None: ...
|
||||
def deploy_module(self, module_path: Any, url: Any, login: Any, password: Any, db: str = ..., force: bool = ...): ...
|
||||
def upload_module(self, server: Any, module_file: Any, force: bool = ..., csrf_token: Optional[Any] = ...): ...
|
||||
def authenticate(self, server: Any, login: Any, password: Any, db: str = ...): ...
|
||||
def zip_module(self, path: Any): ...
|
||||
def run(self, cmdargs: Any) -> None: ...
|
||||
def deploy_module(self, module_path, url, login, password, db: str = ..., force: bool = ...): ...
|
||||
def upload_module(self, server, module_file, force: bool = ..., csrf_token: Any | None = ...): ...
|
||||
def authenticate(self, server, login, password, db: str = ...): ...
|
||||
def zip_module(self, path): ...
|
||||
def run(self, cmdargs) -> None: ...
|
||||
|
||||
@@ -1,25 +1,25 @@
|
||||
from . import Command
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
class Scaffold(Command):
|
||||
def run(self, cmdargs: Any) -> None: ...
|
||||
def run(self, cmdargs) -> None: ...
|
||||
def epilog(self): ...
|
||||
|
||||
builtins: Any
|
||||
|
||||
def snake(s: Any): ...
|
||||
def pascal(s: Any): ...
|
||||
def directory(p: Any, create: bool = ...): ...
|
||||
def snake(s): ...
|
||||
def pascal(s): ...
|
||||
def directory(p, create: bool = ...): ...
|
||||
|
||||
env: Any
|
||||
|
||||
class template:
|
||||
id: Any = ...
|
||||
path: Any = ...
|
||||
def __init__(self, identifier: Any) -> None: ...
|
||||
id: Any
|
||||
path: Any
|
||||
def __init__(self, identifier) -> None: ...
|
||||
def __str__(self): ...
|
||||
def files(self) -> None: ...
|
||||
def render_to(self, modname: Any, directory: Any, params: Optional[Any] = ...) -> None: ...
|
||||
def render_to(self, modname, directory, params: Any | None = ...) -> None: ...
|
||||
|
||||
def die(message: Any, code: int = ...) -> None: ...
|
||||
def warn(message: Any) -> None: ...
|
||||
def die(message, code: int = ...) -> None: ...
|
||||
def warn(message) -> None: ...
|
||||
|
||||
@@ -8,11 +8,11 @@ _logger: Any
|
||||
def check_root_user() -> None: ...
|
||||
def check_postgres_user() -> None: ...
|
||||
def report_configuration() -> None: ...
|
||||
def rm_pid_file(main_pid: Any) -> None: ...
|
||||
def rm_pid_file(main_pid) -> None: ...
|
||||
def setup_pid_file() -> None: ...
|
||||
def export_translation() -> None: ...
|
||||
def import_translation() -> None: ...
|
||||
def main(args: Any) -> None: ...
|
||||
def main(args) -> None: ...
|
||||
|
||||
class Server(Command):
|
||||
def run(self, args: Any) -> None: ...
|
||||
def run(self, args) -> None: ...
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
import code
|
||||
from . import Command
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
_logger: Any
|
||||
|
||||
def raise_keyboard_interrupt(*a: Any) -> None: ...
|
||||
def raise_keyboard_interrupt(*a) -> None: ...
|
||||
|
||||
class Console(code.InteractiveConsole):
|
||||
def __init__(self, locals: Optional[Any] = ..., filename: str = ...) -> None: ...
|
||||
def __init__(self, locals: Any | None = ..., filename: str = ...) -> None: ...
|
||||
|
||||
class Shell(Command):
|
||||
supported_shells: Any = ...
|
||||
def init(self, args: Any) -> None: ...
|
||||
def console(self, local_vars: Any): ...
|
||||
def ipython(self, local_vars: Any) -> None: ...
|
||||
def ptpython(self, local_vars: Any) -> None: ...
|
||||
def bpython(self, local_vars: Any) -> None: ...
|
||||
def python(self, local_vars: Any) -> None: ...
|
||||
def shell(self, dbname: Any) -> None: ...
|
||||
def run(self, args: Any): ...
|
||||
supported_shells: Any
|
||||
def init(self, args) -> None: ...
|
||||
def console(self, local_vars): ...
|
||||
def ipython(self, local_vars) -> None: ...
|
||||
def ptpython(self, local_vars) -> None: ...
|
||||
def bpython(self, local_vars) -> None: ...
|
||||
def python(self, local_vars) -> None: ...
|
||||
def shell(self, dbname) -> None: ...
|
||||
def run(self, args): ...
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
from . import Command
|
||||
from typing import Any
|
||||
|
||||
class Start(Command):
|
||||
def get_module_list(self, path: Any): ...
|
||||
def run(self, cmdargs: Any): ...
|
||||
def get_module_list(self, path): ...
|
||||
def run(self, cmdargs): ...
|
||||
|
||||
def die(message: Any, code: int = ...) -> None: ...
|
||||
def die(message, code: int = ...) -> None: ...
|
||||
|
||||
3
odoo-stubs/conf/deprecation.pyi
Normal file
3
odoo-stubs/conf/deprecation.pyi
Normal file
@@ -0,0 +1,3 @@
|
||||
open_openerp_namespace: bool
|
||||
allow_local_service: bool
|
||||
allow_report_int_registration: bool
|
||||
@@ -1,15 +1,15 @@
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
_logger: Any
|
||||
|
||||
class except_orm(Exception):
|
||||
name: Any = ...
|
||||
value: Any = ...
|
||||
args: Any = ...
|
||||
def __init__(self, name: Any, value: Optional[Any] = ...) -> None: ...
|
||||
name: Any
|
||||
value: Any
|
||||
args: Any
|
||||
def __init__(self, name, value: Any | None = ...) -> None: ...
|
||||
|
||||
class UserError(except_orm):
|
||||
def __init__(self, msg: Any) -> None: ...
|
||||
def __init__(self, msg) -> None: ...
|
||||
Warning = UserError
|
||||
|
||||
class RedirectWarning(Exception):
|
||||
@@ -17,21 +17,21 @@ class RedirectWarning(Exception):
|
||||
def name(self): ...
|
||||
|
||||
class AccessDenied(Exception):
|
||||
traceback: Any = ...
|
||||
traceback: Any
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
class AccessError(except_orm):
|
||||
def __init__(self, msg: Any) -> None: ...
|
||||
def __init__(self, msg) -> None: ...
|
||||
|
||||
class MissingError(except_orm):
|
||||
def __init__(self, msg: Any) -> None: ...
|
||||
def __init__(self, msg) -> None: ...
|
||||
|
||||
class ValidationError(except_orm):
|
||||
def __init__(self, msg: Any) -> None: ...
|
||||
def __init__(self, msg) -> None: ...
|
||||
|
||||
class DeferredException(Exception):
|
||||
message: Any = ...
|
||||
traceback: Any = ...
|
||||
def __init__(self, msg: Any, tb: Any) -> None: ...
|
||||
message: Any
|
||||
traceback: Any
|
||||
def __init__(self, msg, tb) -> None: ...
|
||||
|
||||
class QWebException(Exception): ...
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import datetime
|
||||
|
||||
from dateutil.relativedelta import relativedelta as relativedelta
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
DATE_LENGTH: Any
|
||||
DATETIME_LENGTH: Any
|
||||
@@ -11,373 +9,369 @@ _logger: Any
|
||||
_schema: Any
|
||||
Default: Any
|
||||
|
||||
def copy_cache(records: Any, env: Any) -> None: ...
|
||||
def first(records: Any): ...
|
||||
def resolve_mro(model: Any, name: Any, predicate: Any): ...
|
||||
class SpecialValue:
|
||||
value: Any
|
||||
def __init__(self, value) -> None: ...
|
||||
def get(self): ...
|
||||
|
||||
class FailedValue(SpecialValue):
|
||||
exception: Any
|
||||
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): ...
|
||||
|
||||
class MetaField(type):
|
||||
by_type: Any = ...
|
||||
def __new__(meta: Any, name: Any, bases: Any, attrs: Any): ...
|
||||
def __init__(cls, name: Any, bases: Any, attrs: Any) -> None: ...
|
||||
by_type: Any
|
||||
def __new__(meta, name, bases, attrs): ...
|
||||
def __init__(cls, name, bases, attrs) -> None: ...
|
||||
|
||||
_global_seq: Any
|
||||
|
||||
class Field(MetaField('DummyField', (object,), {})):
|
||||
type: Any = ...
|
||||
relational: bool = ...
|
||||
translate: bool = ...
|
||||
column_type: Any = ...
|
||||
column_format: str = ...
|
||||
column_cast_from: Any = ...
|
||||
_slots: Any = ...
|
||||
_sequence: Any = ...
|
||||
args: Any = ...
|
||||
_setup_done: Any = ...
|
||||
def __init__(self, string: Any = ..., **kwargs: Any) -> None: ...
|
||||
def new(self, **kwargs: Any): ...
|
||||
def __getattr__(self, name: Any): ...
|
||||
_attrs: Any = ...
|
||||
def __setattr__(self, name: Any, value: Any) -> None: ...
|
||||
def set_all_attrs(self, attrs: Any) -> None: ...
|
||||
def __delattr__(self, name: Any) -> None: ...
|
||||
class Field:
|
||||
__metaclass__: MetaField
|
||||
type: Any
|
||||
relational: bool
|
||||
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: Any, name: Any) -> None: ...
|
||||
def _can_setup_from(self, field: Any): ...
|
||||
def _get_attrs(self, model: Any, name: Any): ...
|
||||
prefetch: bool = ...
|
||||
string: Any = ...
|
||||
default: Any = ...
|
||||
def _setup_attrs(self, model: Any, name: Any): ...
|
||||
def setup_full(self, model: Any) -> None: ...
|
||||
def _setup_regular_base(self, model: Any) -> None: ...
|
||||
depends: Any = ...
|
||||
def _setup_regular_full(self, model: Any): ...
|
||||
related: Any = ...
|
||||
related_field: Any = ...
|
||||
compute: Any = ...
|
||||
inverse: Any = ...
|
||||
search: Any = ...
|
||||
states: Any = ...
|
||||
required: bool = ...
|
||||
def _setup_related_full(self, model: Any) -> None: ...
|
||||
def traverse_related(self, record: Any): ...
|
||||
def _compute_related(self, records: Any) -> None: ...
|
||||
def _inverse_related(self, records: Any) -> None: ...
|
||||
def _search_related(self, records: Any, operator: Any, value: Any): ...
|
||||
_related_comodel_name: Any = ...
|
||||
_related_string: Any = ...
|
||||
_related_help: Any = ...
|
||||
_related_readonly: Any = ...
|
||||
_related_groups: Any = ...
|
||||
_related_group_operator: Any = ...
|
||||
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
|
||||
inverse: Any
|
||||
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: Any): ...
|
||||
def _compute_company_dependent(self, records: Any) -> None: ...
|
||||
def _inverse_company_dependent(self, records: Any) -> None: ...
|
||||
def _search_company_dependent(self, records: Any, operator: Any, value: Any): ...
|
||||
def resolve_deps(self, model: Any, path0: Any = ..., seen: Any = ...): ...
|
||||
recursive: bool = ...
|
||||
def setup_triggers(self, model: Any) -> None: ...
|
||||
def get_description(self, env: Any): ...
|
||||
_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 = ...
|
||||
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: Any): ...
|
||||
def _description_help(self, env: Any): ...
|
||||
def null(self, record: Any): ...
|
||||
def convert_to_column(self, value: Any, record: Any, values: Optional[Any] = ...): ...
|
||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
||||
def convert_to_record(self, value: Any, record: Any): ...
|
||||
def convert_to_read(self, value: Any, record: Any, use_name_get: bool = ...): ...
|
||||
def convert_to_write(self, value: Any, record: Any): ...
|
||||
def convert_to_onchange(self, value: Any, record: Any, names: Any): ...
|
||||
def convert_to_export(self, value: Any, record: Any): ...
|
||||
def convert_to_display_name(self, value: Any, record: Any): ...
|
||||
def update_db(self, model: Any, columns: Any): ...
|
||||
def update_db_column(self, model: Any, column: Any) -> None: ...
|
||||
def update_db_notnull(self, model: Any, column: Any) -> None: ...
|
||||
def update_db_index(self, model: Any, column: Any) -> None: ...
|
||||
def read(self, records: Any): ...
|
||||
def write(self, records: Any, value: Any, create: bool = ...): ...
|
||||
# def __get__(self, record: Any, owner: Any): ...
|
||||
def __set__(self, record: Any, value: Any) -> None: ...
|
||||
def _compute_value(self, records: Any) -> None: ...
|
||||
def compute_value(self, records: Any) -> None: ...
|
||||
def determine_value(self, record: Any) -> None: ...
|
||||
def determine_draft_value(self, record: Any): ...
|
||||
def determine_inverse(self, records: Any) -> None: ...
|
||||
def determine_domain(self, records: Any, operator: Any, value: Any): ...
|
||||
def modified_draft(self, records: Any): ...
|
||||
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 = ...): ...
|
||||
def convert_to_record(self, value, record): ...
|
||||
def convert_to_read(self, value, record, use_name_get: bool = ...): ...
|
||||
def convert_to_write(self, value, record): ...
|
||||
def convert_to_onchange(self, value, record, fnames=...): ...
|
||||
def convert_to_export(self, value, record): ...
|
||||
def convert_to_display_name(self, value, record): ...
|
||||
def check_schema(self, model) -> None: ...
|
||||
def read(self, records): ...
|
||||
def write(self, records, value): ...
|
||||
# def __get__(self, record, owner): ...
|
||||
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: ...
|
||||
def determine_inverse(self, records) -> None: ...
|
||||
def determine_domain(self, records, operator, value): ...
|
||||
def modified(self, records): ...
|
||||
def modified_draft(self, records): ...
|
||||
|
||||
class Boolean(Field):
|
||||
type: str = ...
|
||||
column_type: Any = ...
|
||||
def convert_to_column(self, value: Any, record: Any, values: Optional[Any] = ...): ...
|
||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
||||
def convert_to_export(self, value: Any, record: Any): ...
|
||||
type: str
|
||||
column_type: Any
|
||||
def convert_to_column(self, value, record): ...
|
||||
def convert_to_cache(self, value, record, validate: bool = ...): ...
|
||||
def convert_to_export(self, value, record): ...
|
||||
|
||||
class Integer(Field):
|
||||
type: str = ...
|
||||
column_type: Any = ...
|
||||
_slots: Any = ...
|
||||
_description_group_operator: Any = ...
|
||||
def convert_to_column(self, value: Any, record: Any, values: Optional[Any] = ...): ...
|
||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
||||
def convert_to_read(self, value: Any, record: Any, use_name_get: bool = ...): ...
|
||||
def _update(self, records: Any, value: Any) -> None: ...
|
||||
def convert_to_export(self, value: Any, record: Any): ...
|
||||
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):
|
||||
type: str = ...
|
||||
column_cast_from: Any = ...
|
||||
_slots: Any = ...
|
||||
def __init__(self, string: Any = ..., digits: Any = ..., **kwargs: Any) -> None: ...
|
||||
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: Any, record: Any, values: Optional[Any] = ...): ...
|
||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
||||
def convert_to_export(self, value: Any, record: Any): ...
|
||||
_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): ...
|
||||
|
||||
class Monetary(Field):
|
||||
type: str = ...
|
||||
column_type: Any = ...
|
||||
column_cast_from: Any = ...
|
||||
_slots: Any = ...
|
||||
def __init__(self, string: Any = ..., currency_field: Any = ..., **kwargs: Any) -> None: ...
|
||||
_related_currency_field: Any = ...
|
||||
_description_currency_field: Any = ...
|
||||
_description_group_operator: Any = ...
|
||||
currency_field: str = ...
|
||||
def _setup_regular_full(self, model: Any) -> None: ...
|
||||
def convert_to_column(self, value: Any, record: Any, values: Optional[Any] = ...): ...
|
||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
||||
def convert_to_read(self, value: Any, record: Any, use_name_get: bool = ...): ...
|
||||
def convert_to_write(self, value: Any, record: Any): ...
|
||||
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):
|
||||
_slots: Any = ...
|
||||
def __init__(self, string: Any = ..., **kwargs: Any) -> None: ...
|
||||
prefetch: Any = ...
|
||||
def _setup_attrs(self, model: Any, name: Any) -> None: ...
|
||||
_related_translate: Any = ...
|
||||
def _description_translate(self, env: Any): ...
|
||||
def get_trans_terms(self, value: Any): ...
|
||||
def get_trans_func(self, records: Any): ...
|
||||
def check_trans_value(self, value: Any): ...
|
||||
_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 = ...
|
||||
column_cast_from: Any = ...
|
||||
_slots: Any = ...
|
||||
type: str
|
||||
_slots: Any
|
||||
@property
|
||||
def column_type(self): ...
|
||||
def update_db_column(self, model: Any, column: Any) -> None: ...
|
||||
_related_size: Any = ...
|
||||
_description_size: Any = ...
|
||||
def _setup_regular_base(self, model: Any) -> None: ...
|
||||
def convert_to_column(self, value: Any, record: Any, values: Optional[Any] = ...): ...
|
||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
||||
_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 = ...): ...
|
||||
|
||||
class Text(_String):
|
||||
type: str = ...
|
||||
column_type: Any = ...
|
||||
column_cast_from: Any = ...
|
||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
||||
type: str
|
||||
column_type: Any
|
||||
def convert_to_cache(self, value, record, validate: bool = ...): ...
|
||||
|
||||
class Html(_String):
|
||||
type: str = ...
|
||||
column_type: Any = ...
|
||||
_slots: Any = ...
|
||||
def _get_attrs(self, model: Any, name: Any): ...
|
||||
_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: Any, record: Any, values: Optional[Any] = ...): ...
|
||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
||||
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 = ...): ...
|
||||
|
||||
class Date(Field):
|
||||
type: str = ...
|
||||
column_type: Any = ...
|
||||
column_cast_from: Any = ...
|
||||
type: str
|
||||
column_type: Any
|
||||
@staticmethod
|
||||
def today(*args: Any) -> datetime.date: ...
|
||||
def today(*args) -> str: ...
|
||||
@staticmethod
|
||||
def context_today(record: Any, timestamp: Optional[Any] = ...) -> datetime.date: ...
|
||||
def context_today(record, timestamp: Any | None = ...) -> str: ...
|
||||
@staticmethod
|
||||
def from_string(value: Any) -> datetime.date: ...
|
||||
def from_string(value) -> datetime.date: ...
|
||||
@staticmethod
|
||||
def to_string(value: Any): ...
|
||||
def convert_to_column(self, value: Any, record: Any, values: Optional[Any] = ...): ...
|
||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
||||
def convert_to_export(self, value: Any, record: Any): ...
|
||||
def to_string(value) -> str: ...
|
||||
def convert_to_column(self, value, record): ...
|
||||
def convert_to_cache(self, value, record, validate: bool = ...): ...
|
||||
def convert_to_export(self, value, record): ...
|
||||
|
||||
class Datetime(Field):
|
||||
type: str = ...
|
||||
column_type: Any = ...
|
||||
column_cast_from: Any = ...
|
||||
type: str
|
||||
column_type: Any
|
||||
@staticmethod
|
||||
def now(*args: Any) -> datetime.datetime: ...
|
||||
def now(*args) -> str: ...
|
||||
@staticmethod
|
||||
def context_timestamp(record: Any, timestamp: Any) -> datetime.datetime: ...
|
||||
def context_timestamp(record, timestamp): ...
|
||||
@staticmethod
|
||||
def from_string(value: Any) -> datetime.datetime: ...
|
||||
def from_string(value) -> datetime.datetime: ...
|
||||
@staticmethod
|
||||
def to_string(value: Any) -> str: ...
|
||||
def convert_to_column(self, value: Any, record: Any, values: Optional[Any] = ...): ...
|
||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
||||
def convert_to_export(self, value: Any, record: Any): ...
|
||||
def convert_to_display_name(self, value: Any, record: Any): ...
|
||||
_BINARY = memoryview
|
||||
def to_string(value) -> str: ...
|
||||
def convert_to_column(self, value, record): ...
|
||||
def convert_to_cache(self, value, record, validate: bool = ...): ...
|
||||
def convert_to_export(self, value, record): ...
|
||||
def convert_to_display_name(self, value, record): ...
|
||||
|
||||
class Binary(Field):
|
||||
type: str = ...
|
||||
_slots: Any = ...
|
||||
type: str
|
||||
_slots: Any
|
||||
@property
|
||||
def column_type(self): ...
|
||||
def _get_attrs(self, model: Any, name: Any): ...
|
||||
_description_attachment: Any = ...
|
||||
def convert_to_column(self, value: Any, record: Any, values: Optional[Any] = ...): ...
|
||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
||||
def read(self, records: Any) -> None: ...
|
||||
def write(self, records: Any, value: Any, create: bool = ...) -> None: ...
|
||||
_description_attachment: Any
|
||||
def convert_to_column(self, value, record): ...
|
||||
def convert_to_cache(self, value, record, validate: bool = ...): ...
|
||||
def read(self, records) -> None: ...
|
||||
def write(self, records, value) -> None: ...
|
||||
|
||||
class Selection(Field):
|
||||
type: str = ...
|
||||
_slots: Any = ...
|
||||
def __init__(self, selection: Any = ..., string: Any = ..., **kwargs: Any) -> None: ...
|
||||
type: str
|
||||
_slots: Any
|
||||
def __init__(self, selection=..., string=..., **kwargs) -> None: ...
|
||||
@property
|
||||
def column_type(self): ...
|
||||
def _setup_regular_base(self, model: Any) -> None: ...
|
||||
selection: Any = ...
|
||||
def _setup_related_full(self, model: Any): ...
|
||||
def _setup_attrs(self, model: Any, name: Any) -> None: ...
|
||||
def _description_selection(self, env: Any): ...
|
||||
def get_values(self, env: Any): ...
|
||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
||||
def convert_to_export(self, value: Any, record: Any): ...
|
||||
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): ...
|
||||
def convert_to_column(self, value, record): ...
|
||||
|
||||
class Reference(Selection):
|
||||
type: str = ...
|
||||
type: str
|
||||
@property
|
||||
def column_type(self): ...
|
||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
||||
def convert_to_record(self, value: Any, record: Any): ...
|
||||
def convert_to_read(self, value: Any, record: Any, use_name_get: bool = ...): ...
|
||||
def convert_to_export(self, value: Any, record: Any): ...
|
||||
def convert_to_display_name(self, value: Any, record: Any): ...
|
||||
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 = ...): ...
|
||||
def convert_to_export(self, value, record): ...
|
||||
def convert_to_display_name(self, value, record): ...
|
||||
|
||||
class _Relational(Field):
|
||||
relational: bool = ...
|
||||
_slots: Any = ...
|
||||
comodel_name: str = ...
|
||||
def _setup_regular_base(self, model: Any) -> None: ...
|
||||
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: Any): ...
|
||||
def null(self, record: Any): ...
|
||||
_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: Any = ..., string: Any = ..., **kwargs: Any) -> None: ...
|
||||
delegate: Any = ...
|
||||
def _setup_attrs(self, model: Any, name: Any) -> None: ...
|
||||
ondelete: Any = ...
|
||||
def update_db(self, model: Any, columns: Any): ...
|
||||
def update_db_column(self, model: Any, column: Any) -> None: ...
|
||||
def update_db_foreign_key(self, model: Any, column: Any) -> None: ...
|
||||
def _update(self, records: Any, value: Any) -> None: ...
|
||||
def convert_to_column(self, value: Any, record: Any, values: Optional[Any] = ...): ...
|
||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
||||
def convert_to_record(self, value: Any, record: Any): ...
|
||||
def convert_to_read(self, value: Any, record: Any, use_name_get: bool = ...): ...
|
||||
def convert_to_write(self, value: Any, record: Any): ...
|
||||
def convert_to_export(self, value: Any, record: Any): ...
|
||||
def convert_to_display_name(self, value: Any, record: Any): ...
|
||||
def convert_to_onchange(self, value: Any, record: Any, names: Any): ...
|
||||
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): ...
|
||||
def convert_to_read(self, value, record, use_name_get: bool = ...): ...
|
||||
def convert_to_write(self, value, record): ...
|
||||
def convert_to_export(self, value, record): ...
|
||||
def convert_to_display_name(self, value, record): ...
|
||||
def convert_to_onchange(self, value, record, fnames=...): ...
|
||||
|
||||
class _RelationalMultiUpdate:
|
||||
__slots__: Any = ...
|
||||
record: Any = ...
|
||||
field: Any = ...
|
||||
value: Any = ...
|
||||
def __init__(self, record: Any, field: Any, value: Any) -> None: ...
|
||||
def __call__(self): ...
|
||||
class UnionUpdate(SpecialValue):
|
||||
args: Any
|
||||
def __init__(self, field, record, value) -> None: ...
|
||||
def get(self): ...
|
||||
|
||||
class _RelationalMulti(_Relational):
|
||||
_slots: Any = ...
|
||||
def _update(self, records: Any, value: Any) -> None: ...
|
||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
||||
def convert_to_record(self, value: Any, record: Any): ...
|
||||
def convert_to_read(self, value: Any, record: Any, use_name_get: bool = ...): ...
|
||||
def convert_to_write(self, value: Any, record: Any): ...
|
||||
def convert_to_onchange(self, value: Any, record: Any, names: Any): ...
|
||||
def convert_to_export(self, value: Any, record: Any): ...
|
||||
def convert_to_display_name(self, value: Any, record: Any) -> None: ...
|
||||
def _compute_related(self, records: Any): ...
|
||||
def _setup_regular_full(self, model: Any) -> None: ...
|
||||
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 = ...): ...
|
||||
def convert_to_write(self, value, record): ...
|
||||
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: Any = ..., inverse_name: Any = ..., string: Any = ..., **kwargs: Any) -> None: ...
|
||||
def _setup_regular_full(self, model: Any) -> None: ...
|
||||
_description_relation_field: Any = ...
|
||||
def convert_to_onchange(self, value: Any, record: Any, names: Any): ...
|
||||
def update_db(self, model: Any, columns: Any) -> None: ...
|
||||
def read(self, records: Any): ...
|
||||
def write(self, records: Any, value: Any, create: bool = ...) -> None: ...
|
||||
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: ...
|
||||
def write(self, records, value) -> None: ...
|
||||
|
||||
class Many2many(_RelationalMulti):
|
||||
type: str = ...
|
||||
_slots: Any = ...
|
||||
def __init__(self, comodel_name: Any = ..., relation: Any = ..., column1: Any = ..., column2: Any = ..., string: Any = ..., **kwargs: Any) -> None: ...
|
||||
relation: Any = ...
|
||||
column1: Any = ...
|
||||
column2: Any = ...
|
||||
def _setup_regular_base(self, model: Any) -> None: ...
|
||||
def _setup_regular_full(self, model: Any) -> None: ...
|
||||
def update_db(self, model: Any, columns: Any): ...
|
||||
def update_db_foreign_keys(self, model: Any) -> None: ...
|
||||
def read(self, records: Any) -> None: ...
|
||||
def write(self, records: Any, value: Any, create: bool = ...) -> None: ...
|
||||
type: str
|
||||
_slots: Any
|
||||
def __init__(self, comodel_name=..., relation=..., column1=..., column2=..., string=..., **kwargs) -> None: ...
|
||||
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 = ...): ...
|
||||
|
||||
class Id(Field):
|
||||
type: str = ...
|
||||
column_type: Any = ...
|
||||
_slots: Any = ...
|
||||
def update_db(self, model: Any, columns: Any) -> None: ...
|
||||
def __get__(self, record: Any, owner: Any): ...
|
||||
def __set__(self, record: Any, value: Any) -> None: ...
|
||||
type: str
|
||||
column_type: Any
|
||||
_slots: Any
|
||||
def __get__(self, record, owner): ...
|
||||
def __set__(self, record, value) -> None: ...
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import werkzeug.wsgi
|
||||
import werkzeug.contrib.sessions
|
||||
from datetime import date as date
|
||||
from odoo import fields as fields
|
||||
from typing import Any, Optional, Union
|
||||
from typing import Any, Union
|
||||
|
||||
from odoo.api import Environment
|
||||
from odoo.sql_db import Cursor
|
||||
from .api import Environment
|
||||
from .modules.registry import Registry
|
||||
from .sql_db import Cursor
|
||||
|
||||
_logger: Any
|
||||
rpc_request: Any
|
||||
@@ -14,38 +13,37 @@ STATIC_CACHE: Any
|
||||
_request_stack: Any
|
||||
request: Union[HttpRequest, JsonRequest]
|
||||
|
||||
def replace_request_password(args: Any): ...
|
||||
def replace_request_password(args): ...
|
||||
|
||||
NO_POSTMORTEM: Any
|
||||
|
||||
def dispatch_rpc(service_name: Any, method: Any, params: Any): ...
|
||||
def local_redirect(path: Any, query: Optional[Any] = ..., keep_hash: bool = ..., forward_debug: bool = ..., code: int = ...): ...
|
||||
def redirect_with_hash(url: Any, code: int = ...): ...
|
||||
def dispatch_rpc(service_name, method, params): ...
|
||||
def local_redirect(path, query: Any | None = ..., keep_hash: bool = ..., forward_debug: bool = ..., code: int = ...): ...
|
||||
def redirect_with_hash(url, code: int = ...): ...
|
||||
|
||||
class WebRequest:
|
||||
httprequest: werkzeug.wrappers.Request = ...
|
||||
httpresponse: Response = ...
|
||||
disable_db: bool = ...
|
||||
endpoint: Any = ...
|
||||
endpoint_arguments: Any = ...
|
||||
auth_method: Any = ...
|
||||
website = Environment()['website']
|
||||
_cr: Cursor = ...
|
||||
_uid: int = ...
|
||||
_context: dict = ...
|
||||
_env: Environment = ...
|
||||
_failed: Any = ...
|
||||
def __init__(self, httprequest: Any) -> None: ...
|
||||
httprequest: werkzeug.wrappers.Request
|
||||
httpresponse: Response
|
||||
disable_db: bool
|
||||
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: ...
|
||||
@property
|
||||
def uid(self) -> int: ...
|
||||
@uid.setter
|
||||
def uid(self, val: Any) -> None: ...
|
||||
def uid(self, val) -> None: ...
|
||||
@property
|
||||
def context(self) -> dict: ...
|
||||
@context.setter
|
||||
def context(self, val: Any) -> None: ...
|
||||
def context(self, val) -> None: ...
|
||||
@property
|
||||
def env(self) -> Environment: ...
|
||||
@property
|
||||
@@ -53,136 +51,137 @@ class WebRequest:
|
||||
@property
|
||||
def session(self) -> OpenERPSession: ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> None: ...
|
||||
def set_handler(self, endpoint: Any, arguments: Any, auth: Any) -> None: ...
|
||||
def _handle_exception(self, exception: Any) -> None: ...
|
||||
def _call_function(self, *args: Any, **kwargs: Any): ...
|
||||
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: ...
|
||||
@property
|
||||
def registry(self): ...
|
||||
def registry(self) -> Registry: ...
|
||||
@property
|
||||
def db(self): ...
|
||||
def csrf_token(self, time_limit: int = ...): ...
|
||||
def validate_csrf(self, csrf: Any): ...
|
||||
def redirect(self, url: str, code=302): ...
|
||||
def validate_csrf(self, csrf): ...
|
||||
|
||||
def route(route: Optional[Any] = ..., **kw: Any): ...
|
||||
def route(route: Any | None = ..., **kw): ...
|
||||
|
||||
class JsonRequest(WebRequest):
|
||||
_request_type: str = ...
|
||||
jsonp_handler: Any = ...
|
||||
params: Any = ...
|
||||
jsonp: Any = ...
|
||||
jsonrequest: Any = ...
|
||||
context: Any = ...
|
||||
def __init__(self, *args: Any): ...
|
||||
def _json_response(self, result: Optional[Any] = ..., error: Optional[Any] = ...): ...
|
||||
def _handle_exception(self, exception: Any): ...
|
||||
_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: Any): ...
|
||||
def serialize_exception(e): ...
|
||||
def to_jsonable(o): ...
|
||||
|
||||
class HttpRequest(WebRequest):
|
||||
_request_type: str = ...
|
||||
params: Any = ...
|
||||
def __init__(self, *args: Any) -> None: ...
|
||||
def _handle_exception(self, exception: Any): ...
|
||||
_request_type: str
|
||||
params: Any
|
||||
def __init__(self, *args) -> None: ...
|
||||
def _handle_exception(self, exception): ...
|
||||
def dispatch(self): ...
|
||||
def make_response(self, data: Any, headers: Optional[Any] = ..., cookies: Optional[Any] = ...): ...
|
||||
def render(self, template: Any, qcontext: Optional[Any] = ..., lazy: bool = ..., **kw: Any): ...
|
||||
def not_found(self, description: Optional[Any] = ...): ...
|
||||
def make_response(self, data, headers: Any | None = ..., cookies: Any | None = ...): ...
|
||||
def render(self, template, qcontext: Any | None = ..., lazy: bool = ..., **kw): ...
|
||||
def not_found(self, description: Any | None = ...): ...
|
||||
|
||||
addons_module: Any
|
||||
addons_manifest: Any
|
||||
controllers_per_module: Any
|
||||
|
||||
class ControllerType(type):
|
||||
def __init__(cls, name: Any, bases: Any, attrs: Any) -> None: ...
|
||||
def __init__(cls, name, bases, attrs) -> None: ...
|
||||
|
||||
Controller: Any
|
||||
class Controller:
|
||||
__metaclass__: Any
|
||||
|
||||
class EndPoint:
|
||||
method: Any = ...
|
||||
original: Any = ...
|
||||
routing: Any = ...
|
||||
arguments: Any = ...
|
||||
def __init__(self, method: Any, routing: Any) -> None: ...
|
||||
method: Any
|
||||
original: Any
|
||||
routing: Any
|
||||
arguments: Any
|
||||
def __init__(self, method, routing) -> None: ...
|
||||
@property
|
||||
def first_arg_is_req(self): ...
|
||||
def __call__(self, *args: Any, **kw: Any): ...
|
||||
def __call__(self, *args, **kw): ...
|
||||
|
||||
def routing_map(modules: Any, nodb_only: Any, converters: Optional[Any] = ...): ...
|
||||
def routing_map(modules, nodb_only, converters: Any | None = ...): ...
|
||||
|
||||
class AuthenticationError(Exception): ...
|
||||
class SessionExpiredException(Exception): ...
|
||||
|
||||
class OpenERPSession(werkzeug.contrib.sessions.Session):
|
||||
inited: bool = ...
|
||||
modified: bool = ...
|
||||
rotate: bool = ...
|
||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||
def __getattr__(self, attr: Any): ...
|
||||
def __setattr__(self, k: Any, v: Any): ...
|
||||
db: Any = ...
|
||||
uid: Any = ...
|
||||
login: Any = ...
|
||||
session_token: Any = ...
|
||||
def authenticate(self, db: Any, login: Optional[Any] = ..., password: Optional[Any] = ..., uid: Optional[Any] = ...): ...
|
||||
inited: bool
|
||||
modified: bool
|
||||
rotate: bool
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
def __getattr__(self, attr): ...
|
||||
def __setattr__(self, k, v): ...
|
||||
db: Any
|
||||
uid: Any
|
||||
login: Any
|
||||
session_token: Any
|
||||
def authenticate(self, db, login: Any | None = ..., password: Any | None = ..., uid: Any | None = ...): ...
|
||||
def check_security(self) -> None: ...
|
||||
def logout(self, keep_db: bool = ...) -> None: ...
|
||||
def _default_values(self) -> None: ...
|
||||
context: Any = ...
|
||||
context: Any
|
||||
def get_context(self): ...
|
||||
def _fix_lang(self, context: Any) -> None: ...
|
||||
def save_action(self, action: Any): ...
|
||||
def get_action(self, key: Any): ...
|
||||
def _fix_lang(self, context) -> None: ...
|
||||
def save_action(self, action): ...
|
||||
def get_action(self, key): ...
|
||||
def save_request_data(self) -> None: ...
|
||||
def load_request_data(self) -> None: ...
|
||||
|
||||
def session_gc(session_store: Any) -> None: ...
|
||||
def session_gc(session_store) -> None: ...
|
||||
|
||||
class Response(werkzeug.wrappers.Response):
|
||||
default_mimetype: str = ...
|
||||
def __init__(self, *args: Any, **kw: Any) -> None: ...
|
||||
template: Any = ...
|
||||
qcontext: Any = ...
|
||||
uid: Any = ...
|
||||
def set_default(self, template: Optional[Any] = ..., qcontext: Optional[Any] = ..., uid: Optional[Any] = ...) -> None: ...
|
||||
default_mimetype: str
|
||||
def __init__(self, *args, **kw) -> None: ...
|
||||
template: Any
|
||||
qcontext: Any
|
||||
uid: Any
|
||||
def set_default(self, template: Any | None = ..., qcontext: Any | None = ..., uid: Any | None = ...) -> None: ...
|
||||
@property
|
||||
def is_qweb(self): ...
|
||||
def render(self): ...
|
||||
def flatten(self) -> None: ...
|
||||
|
||||
class DisableCacheMiddleware:
|
||||
app: Any = ...
|
||||
def __init__(self, app: Any) -> None: ...
|
||||
def __call__(self, environ: Any, start_response: Any): ...
|
||||
app: Any
|
||||
def __init__(self, app) -> None: ...
|
||||
def __call__(self, environ, start_response): ...
|
||||
|
||||
class Root:
|
||||
_loaded: bool = ...
|
||||
_loaded: bool
|
||||
def __init__(self) -> None: ...
|
||||
def session_store(self): ...
|
||||
def nodb_routing_map(self): ...
|
||||
def __call__(self, environ: Any, start_response: Any): ...
|
||||
def __call__(self, environ, start_response): ...
|
||||
def load_addons(self) -> None: ...
|
||||
def setup_session(self, httprequest: Any): ...
|
||||
def setup_db(self, httprequest: Any) -> None: ...
|
||||
def setup_lang(self, httprequest: Any) -> None: ...
|
||||
def get_request(self, httprequest: Any): ...
|
||||
def get_response(self, httprequest: Any, result: Any, explicit_session: Any): ...
|
||||
def dispatch(self, environ: Any, start_response: Any): ...
|
||||
def get_db_router(self, db: Any): ...
|
||||
def setup_session(self, httprequest): ...
|
||||
def setup_db(self, httprequest) -> None: ...
|
||||
def setup_lang(self, httprequest) -> None: ...
|
||||
def get_request(self, httprequest): ...
|
||||
def get_response(self, httprequest, result, explicit_session): ...
|
||||
def dispatch(self, environ, start_response): ...
|
||||
def get_db_router(self, db): ...
|
||||
|
||||
def db_list(force: bool = ..., httprequest: Optional[Any] = ...): ...
|
||||
def db_filter(dbs: Any, httprequest: Optional[Any] = ...): ...
|
||||
def db_monodb(httprequest: Optional[Any] = ...): ...
|
||||
def send_file(filepath_or_fp: Any, mimetype: Optional[Any] = ..., as_attachment: bool = ..., filename: Optional[Any] = ..., mtime: Optional[Any] = ..., add_etags: bool = ..., cache_timeout: Any = ..., conditional: bool = ...): ...
|
||||
def content_disposition(filename: Any): ...
|
||||
def db_list(force: bool = ..., httprequest: Any | None = ...): ...
|
||||
def db_filter(dbs, httprequest: Any | None = ...): ...
|
||||
def db_monodb(httprequest: Any | None = ...): ...
|
||||
def send_file(filepath_or_fp, mimetype: Any | None = ..., as_attachment: bool = ..., filename: Any | None = ..., mtime: Any | None = ..., add_etags: bool = ..., cache_timeout=..., conditional: bool = ...): ...
|
||||
def content_disposition(filename): ...
|
||||
|
||||
class CommonController(Controller):
|
||||
def jsonrpc(self, service: Any, method: Any, args: Any): ...
|
||||
def jsonrpc(self, service, method, args): ...
|
||||
def gen_session_id(self): ...
|
||||
|
||||
root: Any
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
from typing import Any
|
||||
|
||||
LOG_NOTSET: str
|
||||
LOG_DEBUG: str
|
||||
LOG_INFO: str
|
||||
@@ -8,8 +6,5 @@ LOG_ERROR: str
|
||||
LOG_CRITICAL: str
|
||||
|
||||
def get_encodings(hint_encoding: str = ...) -> None: ...
|
||||
|
||||
text_type: Any
|
||||
|
||||
def ustr(value: Any, hint_encoding: str = ..., errors: str = ...): ...
|
||||
def exception_to_unicode(e: Any): ...
|
||||
def ustr(value, hint_encoding: str = ..., errors: str = ...): ...
|
||||
def exception_to_unicode(e): ...
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
from collections import MutableMapping
|
||||
from typing import Any, Generator, List
|
||||
from . import api, fields
|
||||
from .api import Environment
|
||||
from .modules.registry import Registry
|
||||
from .sql_db import Cursor
|
||||
from .tools.safe_eval import safe_eval as safe_eval
|
||||
from collections import MutableMapping
|
||||
from typing import Any, Optional, List, Dict, Generator
|
||||
|
||||
_logger: Any
|
||||
_schema: Any
|
||||
@@ -15,63 +14,63 @@ regex_pg_name: Any
|
||||
onchange_v7: Any
|
||||
AUTOINIT_RECALCULATE_STORED_FIELDS: int
|
||||
|
||||
def check_object_name(name: Any): ...
|
||||
def raise_on_invalid_object_name(name: Any) -> None: ...
|
||||
def check_pg_name(name: Any) -> None: ...
|
||||
def check_object_name(name): ...
|
||||
def raise_on_invalid_object_name(name) -> None: ...
|
||||
def check_pg_name(name) -> None: ...
|
||||
|
||||
regex_private: Any
|
||||
|
||||
def check_method_name(name: Any) -> None: ...
|
||||
def same_name(f: Any, g: Any): ...
|
||||
def fix_import_export_id_paths(fieldname: Any): ...
|
||||
def check_method_name(name) -> None: ...
|
||||
|
||||
POSTGRES_CONFDELTYPES: Any
|
||||
|
||||
def intersect(la, lb): ...
|
||||
def same_name(f, g): ...
|
||||
def fix_import_export_id_paths(fieldname): ...
|
||||
|
||||
class MetaModel(api.Meta):
|
||||
module_to_models: Any = ...
|
||||
_register: bool = ...
|
||||
_module: Any = ...
|
||||
def __init__(self, name: Any, bases: Any, attrs: Any) -> None: ...
|
||||
def _get_addon_name(self, full_name: Any): ...
|
||||
module_to_models: Any
|
||||
_register: bool
|
||||
_module: Any
|
||||
def __init__(self, name, bases, attrs) -> None: ...
|
||||
def _get_addon_name(self, full_name): ...
|
||||
|
||||
class NewId:
|
||||
__slots__: Any = ...
|
||||
ref: Any = ...
|
||||
def __init__(self, ref: Optional[Any] = ...) -> None: ...
|
||||
def __bool__(self): ...
|
||||
__nonzero__: Any = ...
|
||||
def __nonzero__(self): ...
|
||||
|
||||
IdType: Any
|
||||
PREFETCH_MAX: int
|
||||
LOG_ACCESS_COLUMNS: Any
|
||||
MAGIC_COLUMNS: Any
|
||||
|
||||
class BaseModel(MetaModel('DummyModel', (object,), {'_register': False})):
|
||||
_auto: bool = ...
|
||||
_register: bool = ...
|
||||
_abstract: bool = ...
|
||||
_transient: bool = ...
|
||||
_name: str
|
||||
_description: str
|
||||
_custom: bool = ...
|
||||
class BaseModel:
|
||||
__metaclass__: MetaModel
|
||||
_auto: bool
|
||||
_register: bool
|
||||
_abstract: bool
|
||||
_transient: bool
|
||||
_name: Any
|
||||
_description: Any
|
||||
_custom: bool
|
||||
_inherit: Any
|
||||
_inherits: Dict[str, str]
|
||||
_constraints: Any = ...
|
||||
_table: str = ...
|
||||
_sequence: Any = ...
|
||||
_sql_constraints: list
|
||||
_rec_name: str
|
||||
_inherits: Any
|
||||
_constraints: Any
|
||||
_table: Any
|
||||
_sequence: Any
|
||||
_sql_constraints: Any
|
||||
_rec_name: Any
|
||||
_order: str
|
||||
_parent_name: str = ...
|
||||
_parent_store: bool = ...
|
||||
_parent_order: bool = ...
|
||||
_date_name: str = ...
|
||||
_fold_name: str = ...
|
||||
_needaction: bool = ...
|
||||
_translate: bool = ...
|
||||
_depends: Any = ...
|
||||
_transient_check_count: int = ...
|
||||
_transient_max_count: Any = ...
|
||||
_transient_max_hours: Any = ...
|
||||
_fields: Dict[str, fields.Field]
|
||||
_parent_name: str
|
||||
_parent_store: bool
|
||||
_parent_order: bool
|
||||
_date_name: str
|
||||
_fold_name: str
|
||||
_needaction: bool
|
||||
_translate: bool
|
||||
_depends: Any
|
||||
_transient_check_count: int
|
||||
_transient_max_count: Any
|
||||
_transient_max_hours: Any
|
||||
env: Environment = ...
|
||||
pool: Registry
|
||||
id = fields.Id()
|
||||
@@ -80,45 +79,46 @@ class BaseModel(MetaModel('DummyModel', (object,), {'_register': False})):
|
||||
create_date = fields.Datetime()
|
||||
write_uid = fields.Many2one('res.users')
|
||||
write_date = fields.Datetime()
|
||||
CONCURRENCY_CHECK_FIELD: str = ...
|
||||
def view_init(self, fields_list: Any) -> None: ...
|
||||
def _reflect(self) -> None: ...
|
||||
def _add_field(self, name: Any, field: Any) -> None: ...
|
||||
def _pop_field(self, name: Any): ...
|
||||
CONCURRENCY_CHECK_FIELD: str
|
||||
def view_init(self, fields_list) -> None: ...
|
||||
def _field_create(self): ...
|
||||
def _add_field(self, name, field) -> None: ...
|
||||
def _pop_field(self, name): ...
|
||||
def _add_magic_fields(self) -> None: ...
|
||||
def compute_concurrency_field(self) -> None: ...
|
||||
def compute_concurrency_field_with_access(self) -> None: ...
|
||||
@classmethod
|
||||
def _build_model(cls, pool: Any, cr: Any): ...
|
||||
def _build_model(cls, pool, cr): ...
|
||||
@classmethod
|
||||
def _build_model_check_base(model_class: Any, cls: Any) -> None: ...
|
||||
def _build_model_check_base(model_class, cls) -> None: ...
|
||||
@classmethod
|
||||
def _build_model_check_parent(model_class: Any, cls: Any, parent_class: Any) -> None: ...
|
||||
def _build_model_check_parent(model_class, cls, parent_class) -> None: ...
|
||||
@classmethod
|
||||
def _build_model_attributes(cls, pool: Any) -> None: ...
|
||||
def _build_model_attributes(cls, pool) -> None: ...
|
||||
def _add_manual_fields(self, partial) -> None: ...
|
||||
@classmethod
|
||||
def _init_constraints_onchanges(cls) -> None: ...
|
||||
@property
|
||||
def _constraint_methods(self): ...
|
||||
@property
|
||||
def _onchange_methods(self): ...
|
||||
def __new__(cls) -> BaseModel: ...
|
||||
def __init__(self, pool: Any, cr: Any) -> None: ...
|
||||
def __new__(cls) -> None: ...
|
||||
def __init__(self, pool, cr) -> None: ...
|
||||
def _is_an_ordinary_table(self): ...
|
||||
def __ensure_xml_id(self, skip: bool = ...): ...
|
||||
def _export_rows(self, fields, batch_invalidate: bool = ...): ...
|
||||
__export_rows: Any = ...
|
||||
def export_data(self, fields_to_export: Any, raw_data: bool = ...): ...
|
||||
def load(self, fields: Any, data: Any): ...
|
||||
def _add_fake_fields(self, fields: Any): ...
|
||||
def _extract_records(self, fields_: Any, data: Any, log: Any = ...): ...
|
||||
def _convert_records(self, records: Any, log: Any = ...) -> None: ...
|
||||
def _validate_fields(self, field_names: Any) -> None: ...
|
||||
def default_get(self, fields_list: Any): ...
|
||||
def __export_xml_id(self): ...
|
||||
def _export_rows(self, fields): ...
|
||||
__export_rows: Any
|
||||
def export_data(self, fields_to_export, raw_data: bool = ...): ...
|
||||
def load(self, fields, data): ...
|
||||
def _add_fake_fields(self, fields): ...
|
||||
def _extract_records(self, fields_, data, log=...): ...
|
||||
def _convert_records(self, records, log=...) -> None: ...
|
||||
def _validate_fields(self, field_names) -> None: ...
|
||||
def default_get(self, fields_list): ...
|
||||
def fields_get_keys(self): ...
|
||||
def _rec_name_fallback(self): ...
|
||||
def view_header_get(self, view_id: Optional[Any] = ..., view_type: str = ...): ...
|
||||
def user_has_groups(self, groups: Any): ...
|
||||
def view_header_get(self, view_id: Any | None = ..., view_type: str = ...): ...
|
||||
def user_has_groups(self, groups): ...
|
||||
def _get_default_form_view(self): ...
|
||||
def _get_default_search_view(self): ...
|
||||
def _get_default_tree_view(self): ...
|
||||
@@ -126,192 +126,204 @@ class BaseModel(MetaModel('DummyModel', (object,), {'_register': False})):
|
||||
def _get_default_kanban_view(self): ...
|
||||
def _get_default_graph_view(self): ...
|
||||
def _get_default_calendar_view(self): ...
|
||||
def load_views(self, views: Any, options: Optional[Any] = ...): ...
|
||||
def _fields_view_get(self, view_id: Optional[Any] = ..., view_type: str = ..., toolbar: bool = ..., submenu: bool = ...): ...
|
||||
def fields_view_get(self, view_id: Optional[Any] = ..., view_type: str = ..., toolbar: bool = ..., submenu: bool = ...): ...
|
||||
def get_formview_id(self, access_uid: Optional[Any] = ...): ...
|
||||
def get_formview_action(self, access_uid: Optional[Any] = ...): ...
|
||||
def get_access_action(self, access_uid: Optional[Any] = ...): ...
|
||||
def search_count(self, args: Any) -> int: ...
|
||||
def search(self, args: Any, offset: int = ..., limit: Optional[Any] = ..., order: Optional[Any] = ..., count: bool = ...) -> BaseModel: ...
|
||||
def load_views(self, views, options: Any | None = ...): ...
|
||||
def fields_view_get(self, view_id: Any | None = ..., view_type: str = ..., toolbar: bool = ..., submenu: bool = ...): ...
|
||||
def get_formview_id(self): ...
|
||||
def get_formview_action(self): ...
|
||||
def get_access_action(self): ...
|
||||
def search_count(self, args) -> int: ...
|
||||
def search(self, args, offset: int = ..., limit: Any | None = ..., order: Any | None = ..., count: bool = ...) -> BaseModel: ...
|
||||
def _compute_display_name(self) -> None: ...
|
||||
def name_get(self): ...
|
||||
def name_create(self, name: Any): ...
|
||||
def name_search(self, name: str = ..., args: Optional[Any] = ..., operator: str = ..., limit: int = ...): ...
|
||||
def _name_search(self, name: str = ..., args: Optional[Any] = ..., operator: str = ..., limit: int = ..., name_get_uid: Optional[Any] = ...): ...
|
||||
def _add_missing_default_values(self, values: Any): ...
|
||||
def name_create(self, name): ...
|
||||
def name_search(self, name: str = ..., args: Any | None = ..., operator: str = ..., limit: int = ...): ...
|
||||
def _name_search(self, name: str = ..., args: Any | None = ..., operator: str = ..., limit: int = ..., name_get_uid: Any | None = ...): ...
|
||||
def _add_missing_default_values(self, values): ...
|
||||
@classmethod
|
||||
def clear_caches(cls) -> None: ...
|
||||
def _read_group_fill_results(self, domain: Any, groupby: Any, remaining_groupbys: Any, aggregated_fields: Any, count_field: Any, read_group_result: Any, read_group_order: Optional[Any] = ...): ...
|
||||
def _read_group_fill_temporal(self, data: Any, groupby: Any, aggregated_fields: Any, annotated_groupbys: Any, interval: Any = ...): ...
|
||||
def _read_group_prepare(self, orderby: Any, aggregated_fields: Any, annotated_groupbys: Any, query: Any): ...
|
||||
def _read_group_process_groupby(self, gb: Any, query: Any): ...
|
||||
def _read_group_prepare_data(self, key: Any, value: Any, groupby_dict: Any): ...
|
||||
def _read_group_format_result(self, data: Any, annotated_groupbys: Any, groupby: Any, domain: Any): ...
|
||||
def read_group(self, domain: Any, fields: Any, groupby: Any, offset: int = ..., limit: Optional[Any] = ..., orderby: bool = ..., lazy: bool = ...): ...
|
||||
def _read_group_raw(self, domain: Any, fields: Any, groupby: Any, offset: int = ..., limit: Optional[Any] = ..., orderby: bool = ..., lazy: bool = ...): ...
|
||||
def _read_group_resolve_many2one_fields(self, data: Any, fields: Any) -> None: ...
|
||||
def _inherits_join_add(self, current_model: Any, parent_model_name: Any, query: Any): ...
|
||||
def _inherits_join_calc(self, alias: Any, fname: Any, query: Any, implicit: bool = ..., outer: bool = ...): ...
|
||||
def _read_group_fill_results(self, domain, groupby, remaining_groupbys, aggregated_fields, count_field, read_group_result, read_group_order: Any | None = ...): ...
|
||||
def _read_group_prepare(self, orderby, aggregated_fields, annotated_groupbys, query): ...
|
||||
def _read_group_process_groupby(self, gb, query): ...
|
||||
def _read_group_prepare_data(self, key, value, groupby_dict): ...
|
||||
def _read_group_format_result(self, data, annotated_groupbys, groupby, domain): ...
|
||||
def read_group(self, domain, fields, groupby, offset: int = ..., limit: Any | None = ..., orderby: bool = ..., lazy: bool = ...): ...
|
||||
def _read_group_raw(self, domain, fields, groupby, offset: int = ..., limit: Any | None = ..., orderby: bool = ..., lazy: bool = ...): ...
|
||||
def _inherits_join_add(self, current_model, parent_model_name, query): ...
|
||||
def _inherits_join_calc(self, alias, fname, query, implicit: bool = ..., outer: bool = ...): ...
|
||||
def _parent_store_compute(self): ...
|
||||
def _check_selection_field_value(self, field, value) -> None: ...
|
||||
def _check_removed_columns(self, log: bool = ...) -> None: ...
|
||||
def _init_column(self, column_name: Any) -> None: ...
|
||||
def _table_has_rows(self): ...
|
||||
def _save_constraint(self, constraint_name, type, definition, module) -> None: ...
|
||||
def _drop_constraint(self, source_table, constraint_name) -> None: ...
|
||||
def _save_relation_table(self, relation_table, module) -> None: ...
|
||||
def _m2o_add_foreign_key_checked(self, source_field, dest_model, ondelete) -> None: ...
|
||||
def _m2o_add_foreign_key_unchecked(self, source_table, source_field, dest_model, ondelete, module) -> None: ...
|
||||
def _m2o_fix_foreign_key(self, source_table, source_field, dest_model, ondelete) -> None: ...
|
||||
def _init_column(self, column_name) -> None: ...
|
||||
def _auto_init(self) -> None: ...
|
||||
def _auto_end(self) -> None: ...
|
||||
def init(self) -> None: ...
|
||||
def _table_exist(self): ...
|
||||
def _create_table(self) -> None: ...
|
||||
def _parent_columns_exist(self): ...
|
||||
def _create_parent_columns(self) -> None: ...
|
||||
def _add_sql_constraints(self) -> None: ...
|
||||
def _select_column_data(self): ...
|
||||
def _add_sql_constraints(self): ...
|
||||
def _execute_sql(self) -> None: ...
|
||||
def _add_inherited_fields(self) -> None: ...
|
||||
def _inherits_check(self) -> None: ...
|
||||
def _prepare_setup(self) -> None: ...
|
||||
def _setup_base(self): ...
|
||||
def _setup_fields(self) -> None: ...
|
||||
def _setup_base(self, partial) -> None: ...
|
||||
def _setup_fields(self, partial) -> None: ...
|
||||
def _setup_complete(self) -> None: ...
|
||||
def fields_get(self, allfields: Optional[Any] = ..., attributes: Optional[Any] = ...): ...
|
||||
def get_empty_list_help(self, help: Any): ...
|
||||
def check_field_access_rights(self, operation: Any, fields: Any): ...
|
||||
def read(self, fields: Optional[Any] = ..., load: str = ...): ...
|
||||
def _prefetch_field(self, field: Any) -> None: ...
|
||||
def _read_from_database(self, field_names: Any, inherited_field_names: Any = ...): ...
|
||||
def fields_get(self, allfields: Any | None = ..., attributes: Any | None = ...): ...
|
||||
def get_empty_list_help(self, help): ...
|
||||
def check_field_access_rights(self, operation, fields): ...
|
||||
def read(self, fields: Any | None = ..., load: str = ...): ...
|
||||
def _prefetch_field(self, field) -> None: ...
|
||||
def _read_from_database(self, field_names, inherited_field_names=...): ...
|
||||
def get_metadata(self): ...
|
||||
def _check_concurrency(self) -> None: ...
|
||||
def _check_record_rules_result_count(self, result_ids, operation) -> None: ...
|
||||
def check_access_rights(self, operation: Any, raise_exception: bool = ...): ...
|
||||
def check_access_rule(self, operation: Any) -> None: ...
|
||||
def check_access_rights(self, operation, raise_exception: bool = ...): ...
|
||||
def check_access_rule(self, operation) -> None: ...
|
||||
def create_workflow(self): ...
|
||||
def delete_workflow(self): ...
|
||||
def step_workflow(self): ...
|
||||
def signal_workflow(self, signal): ...
|
||||
def redirect_workflow(self, old_new_ids): ...
|
||||
def unlink(self): ...
|
||||
def write(self, vals: Any): ...
|
||||
def _write(self, vals: Any): ...
|
||||
def create(self, vals_list: Any) -> BaseModel: ...
|
||||
def _create(self, data_list: Any): ...
|
||||
def _where_calc(self, domain: Any, active_test: bool = ...): ...
|
||||
def _check_qorder(self, word: Any): ...
|
||||
def _apply_ir_rules(self, query: Any, mode: str = ...) -> None: ...
|
||||
def _generate_translated_field(self, table_alias: Any, field: Any, query: Any): ...
|
||||
def _generate_m2o_order_by(self, alias: Any, order_field: Any, query: Any, reverse_direction: Any, seen: Any): ...
|
||||
def _generate_order_by_inner(self, alias: Any, order_spec: Any, query: Any, reverse_direction: bool = ..., seen: Optional[Any] = ...): ...
|
||||
def _generate_order_by(self, order_spec: Any, query: Any): ...
|
||||
def _search(self, args: Any, offset: int = ..., limit: Optional[Any] = ..., order: Optional[Any] = ..., count: bool = ..., access_rights_uid: Optional[Any] = ...): ...
|
||||
def copy_data(self, default: Optional[Any] = ...): ...
|
||||
def copy_translations(old: Any, new: Any, excluded: Any = ...): ...
|
||||
def copy(self, default: Optional[Any] = ...) -> BaseModel: ...
|
||||
def write(self, vals): ...
|
||||
def _write(self, vals): ...
|
||||
def create(self, vals) -> BaseModel: ...
|
||||
def _create(self, vals): ...
|
||||
def _where_calc(self, domain, active_test: bool = ...): ...
|
||||
def _check_qorder(self, word): ...
|
||||
def _apply_ir_rules(self, query, mode: str = ...) -> None: ...
|
||||
def _generate_translated_field(self, table_alias, field, query): ...
|
||||
def _generate_m2o_order_by(self, alias, order_field, query, reverse_direction, seen): ...
|
||||
def _generate_order_by_inner(self, alias, order_spec, query, reverse_direction: bool = ..., seen: Any | None = ...): ...
|
||||
def _generate_order_by(self, order_spec, query): ...
|
||||
def _search(self, args, offset: int = ..., limit: Any | None = ..., order: Any | None = ..., count: bool = ..., access_rights_uid: Any | None = ...): ...
|
||||
def copy_data(self, default: Any | None = ...): ...
|
||||
def copy_translations(old, new): ...
|
||||
def copy(self, default: Any | None = ...) -> BaseModel: ...
|
||||
def exists(self) -> BaseModel: ...
|
||||
def _check_recursion(self, parent: Optional[Any] = ...): ...
|
||||
def _check_m2m_recursion(self, field_name: Any): ...
|
||||
def _check_recursion(self, parent: Any | None = ...): ...
|
||||
def _check_m2m_recursion(self, field_name): ...
|
||||
def _get_external_ids(self): ...
|
||||
def get_external_id(self): ...
|
||||
get_xml_id: Any = ...
|
||||
_get_xml_ids: Any = ...
|
||||
get_xml_id: Any
|
||||
_get_xml_ids: Any
|
||||
def print_report(self, name, data): ...
|
||||
@classmethod
|
||||
def is_transient(cls): ...
|
||||
def _transient_clean_rows_older_than(self, seconds: Any) -> None: ...
|
||||
def _transient_clean_old_rows(self, max_count: Any) -> None: ...
|
||||
def _transient_clean_rows_older_than(self, seconds) -> None: ...
|
||||
def _transient_clean_old_rows(self, max_count) -> None: ...
|
||||
def _transient_vacuum(self, force: bool = ...): ...
|
||||
def resolve_2many_commands(self, field_name: Any, commands: Any, fields: Optional[Any] = ...): ...
|
||||
resolve_o2m_commands_to_record_dicts: Any = ...
|
||||
def search_read(self, domain: Optional[Any] = ..., fields: Optional[Any] = ..., offset: int = ..., limit: Optional[Any] = ..., order: Optional[Any] = ...): ...
|
||||
def resolve_2many_commands(self, field_name, commands, fields: Any | None = ...): ...
|
||||
resolve_o2m_commands_to_record_dicts: Any
|
||||
def search_read(self, domain: Any | None = ..., fields: Any | None = ..., offset: int = ..., limit: Any | None = ..., order: Any | None = ...): ...
|
||||
def toggle_active(self) -> None: ...
|
||||
def _register_hook(self) -> None: ...
|
||||
@classmethod
|
||||
def _patch_method(cls, name: Any, method: Any) -> None: ...
|
||||
def _patch_method(cls, name, method) -> None: ...
|
||||
@classmethod
|
||||
def _revert_method(cls, name: Any) -> None: ...
|
||||
def _revert_method(cls, name) -> None: ...
|
||||
@classmethod
|
||||
def _browse(cls, ids: Any, env: Any, prefetch: Optional[Any] = ..., add_prefetch: bool = ...): ...
|
||||
def browse(self, arg: Optional[Any] = ..., prefetch: Optional[Any] = ...) -> BaseModel: ...
|
||||
def _browse(cls, ids, env, prefetch: Any | None = ...) -> BaseModel: ...
|
||||
def browse(self, arg: Any | None = ..., prefetch: Any | None = ...) -> BaseModel: ...
|
||||
@property
|
||||
def ids(self) -> List[int]: ...
|
||||
def ids(self) -> List[str]: ...
|
||||
_cr: Cursor
|
||||
_uid: int
|
||||
_context: dict
|
||||
def ensure_one(self): ...
|
||||
def with_env(self, env: Any) -> BaseModel: ...
|
||||
def sudo(self, user: Any = ...) -> BaseModel: ...
|
||||
def with_context(self, *args: Any, **kwargs: Any) -> BaseModel: ...
|
||||
def with_prefetch(self, prefetch: Optional[Any] = ...) -> BaseModel: ...
|
||||
def _convert_to_cache(self, values: Any, update: bool = ..., validate: bool = ...): ...
|
||||
def _convert_to_record(self, values: Any): ...
|
||||
def _convert_to_write(self, values: Any): ...
|
||||
def _mapped_func(self, func: Any): ...
|
||||
def mapped(self, func: Any): ...
|
||||
def _mapped_cache(self, name_seq: Any): ...
|
||||
def filtered(self, func: Any) -> BaseModel: ...
|
||||
def sorted(self, key: Optional[Any] = ..., reverse: bool = ...) -> BaseModel: ...
|
||||
def update(self, values: Any) -> None: ...
|
||||
def new(self, values: Any = ..., ref: Optional[Any] = ...) -> BaseModel: ...
|
||||
def ensure_one(self) -> BaseModel: ...
|
||||
def with_env(self, env) -> BaseModel: ...
|
||||
def sudo(self, user=...) -> BaseModel: ...
|
||||
def with_context(self, *args, **kwargs) -> BaseModel: ...
|
||||
def with_prefetch(self, prefetch: Any | None = ...) -> BaseModel: ...
|
||||
def _convert_to_cache(self, values, update: bool = ..., validate: bool = ...): ...
|
||||
def _convert_to_record(self, values): ...
|
||||
def _convert_to_write(self, values): ...
|
||||
def _mapped_func(self, func): ...
|
||||
def mapped(self, func): ...
|
||||
def _mapped_cache(self, name_seq): ...
|
||||
def filtered(self, func) -> BaseModel: ...
|
||||
def sorted(self, key: Any | None = ..., reverse: bool = ...) -> BaseModel: ...
|
||||
def update(self, values) -> None: ...
|
||||
def new(self, values=...) -> BaseModel: ...
|
||||
def _is_dirty(self): ...
|
||||
def _get_dirty(self): ...
|
||||
def _set_dirty(self, field_name: Any) -> None: ...
|
||||
def __bool__(self) -> bool: ...
|
||||
__nonzero__: Any = ...
|
||||
def _set_dirty(self, field_name) -> None: ...
|
||||
def __nonzero__(self): ...
|
||||
def __len__(self) -> int: ...
|
||||
def __iter__(self) -> Generator[BaseModel]: ...
|
||||
def __contains__(self, item: Any) -> bool: ...
|
||||
def __add__(self, other: Any) -> BaseModel: ...
|
||||
def concat(self, *args: Any) -> BaseModel: ...
|
||||
def __sub__(self, other: Any) -> BaseModel: ...
|
||||
def __and__(self, other: Any) -> BaseModel: ...
|
||||
def __or__(self, other: Any) -> BaseModel: ...
|
||||
def union(self, *args: Any) -> BaseModel: ...
|
||||
def __eq__(self, other: Any) -> bool: ...
|
||||
def __ne__(self, other): ...
|
||||
def __lt__(self, other: Any) -> bool: ...
|
||||
def __le__(self, other: Any) -> bool: ...
|
||||
def __gt__(self, other: Any) -> bool: ...
|
||||
def __ge__(self, other: Any) -> bool: ...
|
||||
def __contains__(self, item) -> bool: ...
|
||||
def __add__(self, other) -> BaseModel: ...
|
||||
def concat(self, *args) -> BaseModel: ...
|
||||
def __sub__(self, other) -> BaseModel: ...
|
||||
def __and__(self, other) -> BaseModel: ...
|
||||
def __or__(self, other) -> BaseModel: ...
|
||||
def union(self, *args) -> BaseModel: ...
|
||||
def __eq__(self, other) -> bool: ...
|
||||
def __ne__(self, other) -> bool: ...
|
||||
def __lt__(self, other) -> bool: ...
|
||||
def __le__(self, other) -> bool: ...
|
||||
def __gt__(self, other) -> bool: ...
|
||||
def __ge__(self, other) -> bool: ...
|
||||
def __int__(self): ...
|
||||
def __str__(self): ...
|
||||
def __repr__(self): ...
|
||||
def __hash__(self) -> Any: ...
|
||||
def __getitem__(self, key: Any): ...
|
||||
def __setitem__(self, key: Any, value: Any): ...
|
||||
def __unicode__(self): ...
|
||||
__repr__: Any
|
||||
def __hash__(self) -> int: ...
|
||||
def __getitem__(self, key): ...
|
||||
def __setitem__(self, key, value): ...
|
||||
def _cache(self): ...
|
||||
def _in_cache_without(self, field: Any, limit: Any = ...): ...
|
||||
def _in_cache_without(self, field, limit=...): ...
|
||||
def refresh(self) -> None: ...
|
||||
def invalidate_cache(self, fnames: Optional[Any] = ..., ids: Optional[Any] = ...): ...
|
||||
def modified(self, fnames: Any) -> None: ...
|
||||
def _recompute_check(self, field: Any): ...
|
||||
def _recompute_todo(self, field: Any) -> None: ...
|
||||
def _recompute_done(self, field: Any) -> None: ...
|
||||
def invalidate_cache(self, fnames: Any | None = ..., ids: Any | None = ...): ...
|
||||
def modified(self, fnames) -> None: ...
|
||||
def _recompute_check(self, field): ...
|
||||
def _recompute_todo(self, field) -> None: ...
|
||||
def _recompute_done(self, field) -> None: ...
|
||||
def recompute(self) -> None: ...
|
||||
def _has_onchange(self, field: Any, other_fields: Any): ...
|
||||
def _onchange_spec(self, view_info: Optional[Any] = ...): ...
|
||||
def _onchange_eval(self, field_name: Any, onchange: Any, result: Any) -> None: ...
|
||||
def onchange(self, values: Any, field_name: Any, field_onchange: Any): ...
|
||||
def _has_onchange(self, field, other_fields): ...
|
||||
def _onchange_spec(self, view_info: Any | None = ...): ...
|
||||
_record: Any
|
||||
def _onchange_eval(self, field_name, onchange, result): ...
|
||||
def onchange(self, values, field_name, field_onchange): ...
|
||||
|
||||
class RecordCache(MutableMapping):
|
||||
_record: Any = ...
|
||||
def __init__(self, record: Any) -> None: ...
|
||||
def __contains__(self, name: Any): ...
|
||||
def __getitem__(self, name: Any): ...
|
||||
def __setitem__(self, name: Any, value: Any) -> None: ...
|
||||
def __delitem__(self, name: Any) -> None: ...
|
||||
def __iter__(self) -> Any: ...
|
||||
_recs: Any
|
||||
def __init__(self, records) -> None: ...
|
||||
def contains(self, field): ...
|
||||
def __contains__(self, field): ...
|
||||
def get(self, field, default: Any | None = ...): ...
|
||||
def __getitem__(self, field): ...
|
||||
def __setitem__(self, field, value) -> None: ...
|
||||
def update(self, *args, **kwargs): ...
|
||||
def __delitem__(self, field) -> None: ...
|
||||
def __iter__(self): ...
|
||||
def __len__(self): ...
|
||||
def has_value(self, name: Any): ...
|
||||
def get_value(self, name: Any, default: Optional[Any] = ...): ...
|
||||
def set_special(self, name: Any, getter: Any) -> None: ...
|
||||
def set_failed(self, names: Any, exception: Any) -> None: ...
|
||||
AbstractModel = BaseModel
|
||||
|
||||
class Model(AbstractModel):
|
||||
_auto: bool = ...
|
||||
_register: bool = ...
|
||||
_abstract: bool = ...
|
||||
_transient: bool = ...
|
||||
_auto: bool
|
||||
_register: bool
|
||||
_abstract: bool
|
||||
_transient: bool
|
||||
|
||||
class TransientModel(Model):
|
||||
_auto: bool = ...
|
||||
_register: bool = ...
|
||||
_abstract: bool = ...
|
||||
_transient: bool = ...
|
||||
_auto: bool
|
||||
_register: bool
|
||||
_abstract: bool
|
||||
_transient: bool
|
||||
|
||||
def itemgetter_tuple(items: Any): ...
|
||||
def convert_pgerror_not_null(model: Any, fields: Any, info: Any, e: Any): ...
|
||||
def convert_pgerror_unique(model: Any, fields: Any, info: Any, e: Any): ...
|
||||
def _get_translated_field_name(model: Any, field_name: Any): ...
|
||||
def itemgetter_tuple(items): ...
|
||||
def convert_pgerror_23502(model, fields, info, e): ...
|
||||
def convert_pgerror_23505(model, fields, info, e): ...
|
||||
|
||||
PGERROR_TO_OE: Any
|
||||
|
||||
def _normalize_ids(arg: Any, atoms: Any = ...): ...
|
||||
def _normalize_ids(arg, atoms=...): ...
|
||||
|
||||
@@ -2,7 +2,7 @@ from typing import Any
|
||||
|
||||
_logger: Any
|
||||
|
||||
def is_initialized(cr: Any): ...
|
||||
def initialize(cr: Any) -> None: ...
|
||||
def create_categories(cr: Any, categories: Any): ...
|
||||
def has_unaccent(cr: Any): ...
|
||||
def is_initialized(cr): ...
|
||||
def initialize(cr) -> None: ...
|
||||
def create_categories(cr, categories): ...
|
||||
def has_unaccent(cr): ...
|
||||
|
||||
@@ -1,27 +1,30 @@
|
||||
from typing import Any, Optional
|
||||
from cStringIO import StringIO as StringIO
|
||||
from odoo.tools.translate import _ as _
|
||||
from typing import Any
|
||||
from zipfile import PyZipFile as PyZipFile, ZIP_DEFLATED as ZIP_DEFLATED
|
||||
|
||||
_logger: Any
|
||||
|
||||
class Graph(dict):
|
||||
def add_node(self, name: Any, info: Any): ...
|
||||
def update_from_db(self, cr: Any) -> None: ...
|
||||
def add_module(self, cr: Any, module: Any, force: Optional[Any] = ...) -> None: ...
|
||||
def add_modules(self, cr: Any, module_list: Any, force: Optional[Any] = ...): ...
|
||||
def __iter__(self) -> Any: ...
|
||||
def add_node(self, name, info): ...
|
||||
def update_from_db(self, cr) -> None: ...
|
||||
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: Any, graph: Any, info: Any): ...
|
||||
name: Any = ...
|
||||
graph: Any = ...
|
||||
info: Any = ...
|
||||
children: Any = ...
|
||||
depth: int = ...
|
||||
def __init__(self, name: Any, graph: Any, info: Any) -> None: ...
|
||||
def __new__(cls, name, graph, info): ...
|
||||
name: Any
|
||||
graph: Any
|
||||
info: Any
|
||||
children: Any
|
||||
depth: int
|
||||
def __init__(self, name, graph, info) -> None: ...
|
||||
@property
|
||||
def data(self): ...
|
||||
def add_child(self, name: Any, info: Any): ...
|
||||
def __setattr__(self, name: Any, value: Any) -> None: ...
|
||||
def __iter__(self) -> Any: ...
|
||||
def add_child(self, name, info): ...
|
||||
def __setattr__(self, name, value) -> None: ...
|
||||
def __iter__(self): ...
|
||||
def __str__(self): ...
|
||||
def _pprint(self, depth: int = ...): ...
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
_logger: Any
|
||||
_test_logger: Any
|
||||
|
||||
def load_module_graph(cr: Any, graph: Any, status: Optional[Any] = ..., perform_checks: bool = ..., skip_modules: Optional[Any] = ..., report: Optional[Any] = ..., models_to_check: Optional[Any] = ...): ...
|
||||
def _check_module_names(cr: Any, module_names: Any) -> None: ...
|
||||
def load_marked_modules(cr: Any, graph: Any, states: Any, force: Any, progressdict: Any, report: Any, loaded_modules: Any, perform_checks: Any, models_to_check: Optional[Any] = ...): ...
|
||||
def load_modules(db: Any, force_demo: bool = ..., status: Optional[Any] = ..., update_module: bool = ...): ...
|
||||
def reset_modules_state(db_name: Any) -> None: ...
|
||||
def load_module_graph(cr, graph, status: Any | None = ..., perform_checks: bool = ..., skip_modules: Any | None = ..., report: Any | None = ..., models_to_check: Any | None = ...): ...
|
||||
def _check_module_names(cr, module_names) -> None: ...
|
||||
def load_marked_modules(cr, graph, states, force, progressdict, report, loaded_modules, perform_checks, models_to_check: Any | None = ...): ...
|
||||
def load_modules(db, force_demo: bool = ..., status: Any | None = ..., update_module: bool = ...): ...
|
||||
def reset_modules_state(db_name) -> None: ...
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
from typing import Any
|
||||
|
||||
def load_script(path: Any, module_name: Any): ...
|
||||
|
||||
_logger: Any
|
||||
|
||||
class MigrationManager:
|
||||
cr: Any = ...
|
||||
graph: Any = ...
|
||||
migrations: Any = ...
|
||||
def __init__(self, cr: Any, graph: Any) -> None: ...
|
||||
cr: Any
|
||||
graph: Any
|
||||
migrations: Any
|
||||
def __init__(self, cr, graph) -> None: ...
|
||||
def _get_files(self): ...
|
||||
def migrate_module(self, pkg: Any, stage: Any): ...
|
||||
def migrate_module(self, pkg, stage): ...
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from odoo import SUPERUSER_ID as SUPERUSER_ID, api as api
|
||||
from operator import itemgetter as itemgetter
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
MANIFEST_NAMES: Any
|
||||
README: Any
|
||||
@@ -10,43 +10,43 @@ hooked: bool
|
||||
loaded: Any
|
||||
|
||||
class AddonsHook:
|
||||
def find_module(self, name: Any, path: Optional[Any] = ...): ...
|
||||
def load_module(self, name: Any): ...
|
||||
def find_module(self, name, path: Any | None = ...): ...
|
||||
def load_module(self, name): ...
|
||||
|
||||
class OdooHook:
|
||||
def find_module(self, name: Any, path: Optional[Any] = ...): ...
|
||||
def load_module(self, name: Any): ...
|
||||
def find_module(self, name, path: Any | None = ...): ...
|
||||
def load_module(self, name): ...
|
||||
|
||||
def initialize_sys_path() -> None: ...
|
||||
def get_module_path(module: Any, downloaded: bool = ..., display_warning: bool = ...): ...
|
||||
def get_module_filetree(module: Any, dir: str = ...): ...
|
||||
def get_resource_path(module: Any, *args: Any): ...
|
||||
def get_module_path(module, downloaded: bool = ..., display_warning: bool = ...): ...
|
||||
def get_module_filetree(module, dir: str = ...): ...
|
||||
def get_resource_path(module, *args): ...
|
||||
get_module_resource = get_resource_path
|
||||
|
||||
def get_resource_from_path(path: Any): ...
|
||||
def get_module_icon(module: Any): ...
|
||||
def module_manifest(path: Any): ...
|
||||
def get_module_root(path: Any): ...
|
||||
def load_information_from_description_file(module: Any, mod_path: Optional[Any] = ...): ...
|
||||
def load_openerp_module(module_name: Any) -> None: ...
|
||||
def get_resource_from_path(path): ...
|
||||
def get_module_icon(module): ...
|
||||
def module_manifest(path): ...
|
||||
def get_module_root(path): ...
|
||||
def load_information_from_description_file(module, mod_path: Any | None = ...): ...
|
||||
def load_openerp_module(module_name) -> None: ...
|
||||
def get_modules(): ...
|
||||
def get_modules_with_version(): ...
|
||||
def adapt_version(version: Any): ...
|
||||
def get_test_modules(module: Any): ...
|
||||
def adapt_version(version): ...
|
||||
def get_test_modules(module): ...
|
||||
|
||||
class TestStream:
|
||||
logger: Any = ...
|
||||
r: Any = ...
|
||||
logger: Any
|
||||
r: Any
|
||||
def __init__(self, logger_name: str = ...) -> None: ...
|
||||
def flush(self) -> None: ...
|
||||
def write(self, s: Any) -> None: ...
|
||||
def write(self, s) -> None: ...
|
||||
|
||||
current_test: Any
|
||||
|
||||
def runs_at(test: Any, hook: Any, default: Any): ...
|
||||
def runs_at(test, hook, default): ...
|
||||
|
||||
runs_at_install: Any
|
||||
runs_post_install: Any
|
||||
|
||||
def run_unit_tests(module_name: Any, dbname: Any, position: Any = ...): ...
|
||||
def unwrap_suite(test: Any) -> None: ...
|
||||
def run_unit_tests(module_name, dbname, position=...): ...
|
||||
def unwrap_suite(test) -> None: ...
|
||||
|
||||
@@ -1,64 +1,56 @@
|
||||
from collections import Mapping, defaultdict as defaultdict
|
||||
from odoo.tools import table_exists as table_exists
|
||||
from typing import Any, Optional
|
||||
from collections import Mapping
|
||||
from typing import Any
|
||||
|
||||
_logger: Any
|
||||
|
||||
class Registry(Mapping):
|
||||
_lock: Any = ...
|
||||
_saved_lock: Any = ...
|
||||
model_cache: Any = ...
|
||||
_lock: Any
|
||||
_saved_lock: Any
|
||||
model_cache: Any
|
||||
def registries(cls): ...
|
||||
def __new__(cls, db_name: Any): ...
|
||||
def __new__(cls, db_name): ...
|
||||
@classmethod
|
||||
def new(cls, db_name: Any, force_demo: bool = ..., status: Optional[Any] = ..., update_module: bool = ...): ...
|
||||
models: Any = ...
|
||||
_sql_error: Any = ...
|
||||
_init: bool = ...
|
||||
_init_parent: Any = ...
|
||||
_assertion_report: Any = ...
|
||||
_fields_by_model: Any = ...
|
||||
_post_init_queue: Any = ...
|
||||
_notnull_errors: Any = ...
|
||||
_init_modules: Any = ...
|
||||
updated_modules: Any = ...
|
||||
db_name: Any = ...
|
||||
_db: Any = ...
|
||||
test_cr: Any = ...
|
||||
loaded: bool = ...
|
||||
ready: bool = ...
|
||||
registry_sequence: Any = ...
|
||||
cache_sequence: Any = ...
|
||||
registry_invalidated: bool = ...
|
||||
cache_invalidated: bool = ...
|
||||
has_unaccent: Any = ...
|
||||
def init(self, db_name: Any) -> None: ...
|
||||
def new(cls, db_name, force_demo: bool = ..., status: Any | None = ..., 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
|
||||
cache_sequence: Any
|
||||
cache: Any
|
||||
cache_cleared: bool
|
||||
has_unaccent: Any
|
||||
def init(self, db_name) -> None: ...
|
||||
@classmethod
|
||||
def delete(cls, db_name: Any) -> None: ...
|
||||
def delete(cls, db_name) -> None: ...
|
||||
@classmethod
|
||||
def delete_all(cls) -> None: ...
|
||||
def __len__(self): ...
|
||||
def __iter__(self) -> Any: ...
|
||||
def __getitem__(self, model_name: Any): ...
|
||||
def __call__(self, model_name: Any): ...
|
||||
def __setitem__(self, model_name: Any, model: Any) -> None: ...
|
||||
def __iter__(self): ...
|
||||
def __getitem__(self, model_name): ...
|
||||
def __call__(self, model_name): ...
|
||||
def __setitem__(self, model_name, model) -> None: ...
|
||||
def field_sequence(self): ...
|
||||
def do_parent_store(self, cr: Any) -> None: ...
|
||||
def descendants(self, model_names: Any, *kinds: Any): ...
|
||||
def load(self, cr: Any, module: Any): ...
|
||||
_m2m: Any = ...
|
||||
def setup_models(self, cr: Any) -> None: ...
|
||||
def post_init(self, func: Any, *args: Any, **kwargs: Any) -> None: ...
|
||||
def init_models(self, cr: Any, model_names: Any, context: Any) -> None: ...
|
||||
def check_tables_exist(self, cr: Any) -> None: ...
|
||||
def cache(self): ...
|
||||
def _clear_cache(self) -> None: ...
|
||||
def clear_manual_fields(self) -> None: ...
|
||||
def get_manual_fields(self, cr, model_name): ...
|
||||
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: ...
|
||||
def setup_signaling(self) -> None: ...
|
||||
def check_signaling(self): ...
|
||||
def signal_changes(self) -> None: ...
|
||||
def reset_changes(self) -> None: ...
|
||||
def manage_changes(self) -> None: ...
|
||||
def signal_registry_change(self) -> None: ...
|
||||
def signal_caches_change(self) -> None: ...
|
||||
def in_test_mode(self): ...
|
||||
def enter_test_mode(self) -> None: ...
|
||||
def leave_test_mode(self) -> None: ...
|
||||
@@ -68,4 +60,22 @@ class DummyRLock:
|
||||
def acquire(self) -> None: ...
|
||||
def release(self) -> None: ...
|
||||
def __enter__(self) -> None: ...
|
||||
def __exit__(self, type: Any, value: Any, traceback: Any) -> None: ...
|
||||
def __exit__(self, type, value, traceback) -> None: ...
|
||||
|
||||
class RegistryManager:
|
||||
@classmethod
|
||||
def get(cls, db_name, force_demo: bool = ..., status: Any | None = ..., update_module: bool = ...): ...
|
||||
@classmethod
|
||||
def new(cls, db_name, force_demo: bool = ..., status: Any | None = ..., update_module: bool = ...): ...
|
||||
@classmethod
|
||||
def delete(cls, db_name): ...
|
||||
@classmethod
|
||||
def delete_all(cls): ...
|
||||
@classmethod
|
||||
def clear_caches(cls, db_name): ...
|
||||
@classmethod
|
||||
def check_registry_signaling(cls, db_name): ...
|
||||
@classmethod
|
||||
def signal_caches_change(cls, db_name): ...
|
||||
@classmethod
|
||||
def signal_registry_change(cls, db_name): ...
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
import logging.handlers
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
_logger: Any
|
||||
|
||||
def log(logger: Any, level: Any, prefix: Any, msg: Any, depth: Optional[Any] = ...) -> None: ...
|
||||
def log(logger, level, prefix, msg, depth: Any | None = ...) -> None: ...
|
||||
def LocalService(name): ...
|
||||
|
||||
path_prefix: Any
|
||||
|
||||
class PostgreSQLHandler(logging.Handler):
|
||||
def emit(self, record: Any) -> None: ...
|
||||
def emit(self, record) -> None: ...
|
||||
|
||||
BLACK: Any
|
||||
RED: Any
|
||||
@@ -25,10 +28,10 @@ COLOR_PATTERN: Any
|
||||
LEVEL_COLOR_MAPPING: Any
|
||||
|
||||
class DBFormatter(logging.Formatter):
|
||||
def format(self, record: Any): ...
|
||||
def format(self, record): ...
|
||||
|
||||
class ColoredFormatter(DBFormatter):
|
||||
def format(self, record: Any): ...
|
||||
def format(self, record): ...
|
||||
|
||||
_logger_init: bool
|
||||
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
from . import osv as osv
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
from ..models import MAGIC_COLUMNS as MAGIC_COLUMNS
|
||||
from functools import partial as partial
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
NOT_OPERATOR: str
|
||||
OR_OPERATOR: str
|
||||
@@ -16,31 +14,30 @@ TRUE_DOMAIN: Any
|
||||
FALSE_DOMAIN: Any
|
||||
_logger: Any
|
||||
|
||||
def normalize_domain(domain: Any): ...
|
||||
def is_false(model: Any, domain: Any): ...
|
||||
def combine(operator: Any, unit: Any, zero: Any, domains: Any): ...
|
||||
def AND(domains: Any): ...
|
||||
def OR(domains: Any): ...
|
||||
def distribute_not(domain: Any): ...
|
||||
def _quote(to_quote: Any): ...
|
||||
def generate_table_alias(src_table_alias: Any, joined_tables: Any = ...): ...
|
||||
def get_alias_from_query(from_query: Any): ...
|
||||
def normalize_leaf(element: Any): ...
|
||||
def is_operator(element: Any): ...
|
||||
def is_leaf(element: Any, internal: bool = ...): ...
|
||||
def select_from_where(cr: Any, select_field: Any, from_table: Any, where_field: Any, where_ids: Any, where_operator: Any): ...
|
||||
def select_distinct_from_where_not_null(cr: Any, select_field: Any, from_table: Any): ...
|
||||
def get_unaccent_wrapper(cr: 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): ...
|
||||
def is_operator(element): ...
|
||||
def is_leaf(element, internal: bool = ...): ...
|
||||
def select_from_where(cr, select_field, from_table, where_field, where_ids, where_operator): ...
|
||||
def select_distinct_from_where_not_null(cr, select_field, from_table): ...
|
||||
def get_unaccent_wrapper(cr): ...
|
||||
|
||||
class ExtendedLeaf:
|
||||
join_context: Any = ...
|
||||
leaf: Any = ...
|
||||
model: Any = ...
|
||||
_models: Any = ...
|
||||
def __init__(self, leaf: Any, model: Any, join_context: Optional[Any] = ..., internal: bool = ...) -> None: ...
|
||||
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: Any, lhs_col: Any, table_col: Any, link: Any) -> None: ...
|
||||
def add_join_context(self, model, lhs_col, table_col, link) -> None: ...
|
||||
def get_join_conditions(self): ...
|
||||
def get_tables(self): ...
|
||||
def _get_context_debug(self): ...
|
||||
@@ -51,17 +48,17 @@ class ExtendedLeaf:
|
||||
def is_leaf(self, internal: bool = ...): ...
|
||||
def normalize_leaf(self): ...
|
||||
|
||||
def create_substitution_leaf(leaf: Any, new_elements: Any, new_model: Optional[Any] = ..., internal: bool = ...): ...
|
||||
def create_substitution_leaf(leaf, new_elements, new_model: Any | None = ..., internal: bool = ...): ...
|
||||
|
||||
class expression:
|
||||
_unaccent: Any = ...
|
||||
joins: Any = ...
|
||||
root_model: Any = ...
|
||||
expression: Any = ...
|
||||
def __init__(self, domain: Any, model: Any) -> None: ...
|
||||
_unaccent: Any
|
||||
joins: Any
|
||||
root_model: Any
|
||||
expression: Any
|
||||
def __init__(self, domain, model) -> None: ...
|
||||
def get_tables(self): ...
|
||||
result: Any = ...
|
||||
stack: Any = ...
|
||||
result: Any
|
||||
stack: Any
|
||||
def parse(self): ...
|
||||
def __leaf_to_sql(self, eleaf: Any): ...
|
||||
def __leaf_to_sql(self, eleaf): ...
|
||||
def to_sql(self): ...
|
||||
|
||||
@@ -1,23 +1,21 @@
|
||||
from ..exceptions import except_orm as except_orm
|
||||
from ..models import AbstractModel as AbstractModel, BaseModel, LOG_ACCESS_COLUMNS as LOG_ACCESS_COLUMNS, MAGIC_COLUMNS as MAGIC_COLUMNS, MetaModel as MetaModel, Model as Model, TransientModel as TransientModel
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
browse_record_list = BaseModel
|
||||
|
||||
class BRM(type):
|
||||
def __instancecheck__(self, inst: Any): ...
|
||||
class browse_record:
|
||||
class __metaclass__(type):
|
||||
def __instancecheck__(self, inst): ...
|
||||
|
||||
browse_record: Any
|
||||
class browse_null:
|
||||
class __metaclass__(type):
|
||||
def __instancecheck__(self, inst): ...
|
||||
|
||||
class NBM(type):
|
||||
def __instancecheck__(self, inst: Any): ...
|
||||
|
||||
browse_null: Any
|
||||
|
||||
def transfer_field_to_modifiers(field: Any, modifiers: Any) -> None: ...
|
||||
def transfer_node_to_modifiers(node: Any, modifiers: Any, context: Optional[Any] = ..., in_tree_view: bool = ...) -> None: ...
|
||||
def simplify_modifiers(modifiers: Any) -> None: ...
|
||||
def transfer_modifiers_to_node(modifiers: Any, node: Any) -> None: ...
|
||||
def setup_modifiers(node: Any, field: Optional[Any] = ..., context: Optional[Any] = ..., in_tree_view: bool = ...) -> None: ...
|
||||
def test_modifiers(what: Any, expected: Any) -> None: ...
|
||||
def transfer_field_to_modifiers(field, modifiers) -> None: ...
|
||||
def transfer_node_to_modifiers(node, modifiers, context: Any | None = ..., in_tree_view: bool = ...) -> None: ...
|
||||
def simplify_modifiers(modifiers) -> None: ...
|
||||
def transfer_modifiers_to_node(modifiers, node) -> None: ...
|
||||
def setup_modifiers(node, field: Any | None = ..., context: Any | None = ..., in_tree_view: bool = ...) -> None: ...
|
||||
def test_modifiers(what, expected) -> None: ...
|
||||
def modifiers_tests() -> None: ...
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
def _quote(to_quote: Any): ...
|
||||
def _quote(to_quote): ...
|
||||
|
||||
class Query:
|
||||
tables: Any = ...
|
||||
where_clause: Any = ...
|
||||
where_clause_params: Any = ...
|
||||
joins: Any = ...
|
||||
extras: Any = ...
|
||||
def __init__(self, tables: Optional[Any] = ..., where_clause: Optional[Any] = ..., where_clause_params: Optional[Any] = ..., joins: Optional[Any] = ..., extras: Optional[Any] = ...) -> None: ...
|
||||
tables: Any
|
||||
where_clause: Any
|
||||
where_clause_params: Any
|
||||
joins: Any
|
||||
extras: Any
|
||||
def __init__(self, tables: Any | None = ..., where_clause: Any | None = ..., where_clause_params: Any | None = ..., joins: Any | None = ..., extras: Any | None = ...) -> None: ...
|
||||
def _get_table_aliases(self): ...
|
||||
def _get_alias_mapping(self): ...
|
||||
def add_join(self, connection: Any, implicit: bool = ..., outer: bool = ..., extra: Optional[Any] = ..., extra_params: Any = ...): ...
|
||||
def add_join(self, connection, implicit: bool = ..., outer: bool = ..., extra: Any | None = ..., extra_params=...): ...
|
||||
def get_sql(self): ...
|
||||
def __str__(self): ...
|
||||
|
||||
4
odoo-stubs/report/__init__.pyi
Normal file
4
odoo-stubs/report/__init__.pyi
Normal file
@@ -0,0 +1,4 @@
|
||||
from . import custom as custom, int_to_text as int_to_text, interface as interface, print_fnc as print_fnc, print_xml as print_xml, printscreen as printscreen, render as render, report_sxw as report_sxw
|
||||
from typing import Any
|
||||
|
||||
def render_report(cr, uid, ids, name, data, context: Any | None = ...): ...
|
||||
5
odoo-stubs/report/common.pyi
Normal file
5
odoo-stubs/report/common.pyi
Normal file
@@ -0,0 +1,5 @@
|
||||
from typing import Any
|
||||
|
||||
pageSize: Any
|
||||
odt_namespace: Any
|
||||
sxw_namespace: Any
|
||||
20
odoo-stubs/report/custom.pyi
Normal file
20
odoo-stubs/report/custom.pyi
Normal file
@@ -0,0 +1,20 @@
|
||||
from . import render
|
||||
from .interface import report_int
|
||||
from typing import Any
|
||||
|
||||
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): ...
|
||||
11
odoo-stubs/report/int_to_text.pyi
Normal file
11
odoo-stubs/report/int_to_text.pyi
Normal file
@@ -0,0 +1,11 @@
|
||||
from typing import Any
|
||||
|
||||
unites: Any
|
||||
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): ...
|
||||
36
odoo-stubs/report/interface.pyi
Normal file
36
odoo-stubs/report/interface.pyi
Normal file
@@ -0,0 +1,36 @@
|
||||
from typing import Any
|
||||
|
||||
def toxml(value): ...
|
||||
|
||||
class report_int:
|
||||
_reports: Any
|
||||
__name: Any
|
||||
name: Any
|
||||
id: int
|
||||
name2: Any
|
||||
title: Any
|
||||
def __init__(self, name, register: bool = ...) -> None: ...
|
||||
def create(self, cr, uid, ids, datas, context: Any | None = ...): ...
|
||||
|
||||
class report_rml(report_int):
|
||||
table: Any
|
||||
internal_header: bool
|
||||
tmpl: Any
|
||||
xsl: Any
|
||||
bin_datas: Any
|
||||
generators: Any
|
||||
def __init__(self, name, table, tmpl, xsl, register: bool = ...) -> None: ...
|
||||
title: Any
|
||||
def create(self, cr, uid, ids, datas, context: Any | None = ...): ...
|
||||
def create_xml(self, cr, uid, ids, datas, context: Any | None = ...): ...
|
||||
def post_process_xml_data(self, cr, uid, xml, context: Any | None = ...): ...
|
||||
def create_rml(self, cr, xml, uid, context: Any | None = ...): ...
|
||||
def create_pdf(self, rml, localcontext: Any | None = ..., logo: Any | None = ..., title: Any | None = ...): ...
|
||||
def create_html(self, rml, localcontext: Any | None = ..., logo: Any | None = ..., title: Any | None = ...): ...
|
||||
def create_txt(self, rml, localcontext, logo: Any | None = ..., title: Any | None = ...): ...
|
||||
def create_html2html(self, rml, localcontext: Any | None = ..., logo: Any | None = ..., title: Any | None = ...): ...
|
||||
def create_raw(self, rml, localcontext: Any | None = ..., logo: Any | None = ..., title: Any | None = ...): ...
|
||||
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): ...
|
||||
5
odoo-stubs/report/misc.pyi
Normal file
5
odoo-stubs/report/misc.pyi
Normal file
@@ -0,0 +1,5 @@
|
||||
from typing import Any
|
||||
|
||||
colorline: Any
|
||||
|
||||
def choice_colors(n): ...
|
||||
9
odoo-stubs/report/preprocess.pyi
Normal file
9
odoo-stubs/report/preprocess.pyi
Normal file
@@ -0,0 +1,9 @@
|
||||
from typing import Any
|
||||
|
||||
rml_parents: Any
|
||||
html_parents: Any
|
||||
sxw_parents: Any
|
||||
odt_parents: Any
|
||||
|
||||
class report:
|
||||
def preprocess_rml(self, root_node, type: str = ...): ...
|
||||
5
odoo-stubs/report/print_fnc.pyi
Normal file
5
odoo-stubs/report/print_fnc.pyi
Normal file
@@ -0,0 +1,5 @@
|
||||
from typing import Any
|
||||
|
||||
functions: Any
|
||||
|
||||
def print_fnc(fnc, arg): ...
|
||||
28
odoo-stubs/report/print_xml.pyi
Normal file
28
odoo-stubs/report/print_xml.pyi
Normal file
@@ -0,0 +1,28 @@
|
||||
from typing import Any
|
||||
|
||||
class InheritDict(dict):
|
||||
parent: Any
|
||||
def __init__(self, parent: Any | None = ...) -> None: ...
|
||||
def __getitem__(self, name): ...
|
||||
|
||||
def tounicode(val): ...
|
||||
|
||||
class document:
|
||||
cr: Any
|
||||
uid: Any
|
||||
datas: Any
|
||||
func: Any
|
||||
bin_datas: Any
|
||||
def __init__(self, cr, uid, datas, func: bool = ...) -> None: ...
|
||||
def node_attrs_get(self, node): ...
|
||||
def get_value(self, browser, field_path): ...
|
||||
def get_value2(self, browser, field_path): ...
|
||||
def eval(self, record, expr): ...
|
||||
def parse_node(self, node, parent, browser, datas: Any | None = ...) -> None: ...
|
||||
def xml_get(self): ...
|
||||
def parse_tree(self, ids, model, context: Any | None = ...) -> None: ...
|
||||
dom: Any
|
||||
def parse_string(self, xml, ids, model, context: Any | None = ...) -> None: ...
|
||||
doc: Any
|
||||
def parse(self, filename, ids, model, context: Any | None = ...) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
1
odoo-stubs/report/printscreen/__init__.pyi
Normal file
1
odoo-stubs/report/printscreen/__init__.pyi
Normal file
@@ -0,0 +1 @@
|
||||
from . import ps_form as ps_form, ps_list as ps_list
|
||||
10
odoo-stubs/report/printscreen/ps_form.pyi
Normal file
10
odoo-stubs/report/printscreen/ps_form.pyi
Normal file
@@ -0,0 +1,10 @@
|
||||
from odoo.report.interface import report_int
|
||||
from typing import Any
|
||||
|
||||
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 = ...): ...
|
||||
15
odoo-stubs/report/printscreen/ps_list.pyi
Normal file
15
odoo-stubs/report/printscreen/ps_list.pyi
Normal file
@@ -0,0 +1,15 @@
|
||||
from odoo.report.interface import report_int
|
||||
from typing import Any
|
||||
|
||||
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 = ...): ...
|
||||
7
odoo-stubs/report/render/__init__.pyi
Normal file
7
odoo-stubs/report/render/__init__.pyi
Normal file
@@ -0,0 +1,7 @@
|
||||
from .render import render as render
|
||||
from .rml import html2html as html2html, makohtml2html as makohtml2html, odt2odt as odt2odt, rml as rml, rml2html as rml2html, rml2txt as rml2txt
|
||||
from .simple import simple as simple
|
||||
from PIL import Image as Image
|
||||
from typing import Any
|
||||
|
||||
_logger: Any
|
||||
1
odoo-stubs/report/render/html2html/__init__.pyi
Normal file
1
odoo-stubs/report/render/html2html/__init__.pyi
Normal file
@@ -0,0 +1 @@
|
||||
from .html2html import parseString as parseString
|
||||
13
odoo-stubs/report/render/html2html/html2html.pyi
Normal file
13
odoo-stubs/report/render/html2html/html2html.pyi
Normal file
@@ -0,0 +1,13 @@
|
||||
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): ...
|
||||
|
||||
def parseString(node, localcontext=...): ...
|
||||
1
odoo-stubs/report/render/makohtml2html/__init__.pyi
Normal file
1
odoo-stubs/report/render/makohtml2html/__init__.pyi
Normal file
@@ -0,0 +1 @@
|
||||
from .makohtml2html import parseNode as parseNode
|
||||
14
odoo-stubs/report/render/makohtml2html/makohtml2html.pyi
Normal file
14
odoo-stubs/report/render/makohtml2html/makohtml2html.pyi
Normal file
@@ -0,0 +1,14 @@
|
||||
from typing import Any
|
||||
|
||||
_logger: Any
|
||||
|
||||
class makohtml2html:
|
||||
localcontext: Any
|
||||
html: Any
|
||||
def __init__(self, html, localcontext) -> None: ...
|
||||
def format_header(self, html): ...
|
||||
def format_footer(self, footer): ...
|
||||
def format_body(self, html): ...
|
||||
def render(self): ...
|
||||
|
||||
def parseNode(html, localcontext=...): ...
|
||||
1
odoo-stubs/report/render/odt2odt/__init__.pyi
Normal file
1
odoo-stubs/report/render/odt2odt/__init__.pyi
Normal file
@@ -0,0 +1 @@
|
||||
from .odt2odt import parseNode as parseNode
|
||||
10
odoo-stubs/report/render/odt2odt/odt2odt.pyi
Normal file
10
odoo-stubs/report/render/odt2odt/odt2odt.pyi
Normal file
@@ -0,0 +1,10 @@
|
||||
from typing import Any
|
||||
|
||||
class odt2odt:
|
||||
localcontext: Any
|
||||
etree: Any
|
||||
_node: Any
|
||||
def __init__(self, odt, localcontext) -> None: ...
|
||||
def render(self): ...
|
||||
|
||||
def parseNode(node, localcontext=...): ...
|
||||
12
odoo-stubs/report/render/render.pyi
Normal file
12
odoo-stubs/report/render/render.pyi
Normal file
@@ -0,0 +1,12 @@
|
||||
from typing import Any
|
||||
|
||||
class render:
|
||||
done: bool
|
||||
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): ...
|
||||
45
odoo-stubs/report/render/rml.pyi
Normal file
45
odoo-stubs/report/render/rml.pyi
Normal file
@@ -0,0 +1,45 @@
|
||||
from . import render
|
||||
from typing import Any
|
||||
|
||||
class rml(render.render):
|
||||
localcontext: Any
|
||||
rml: Any
|
||||
output_type: str
|
||||
title: Any
|
||||
def __init__(self, rml, localcontext: Any | None = ..., datas: Any | None = ..., path: str = ..., title: Any | None = ...) -> None: ...
|
||||
def _render(self): ...
|
||||
|
||||
class rml2html(render.render):
|
||||
rml: Any
|
||||
localcontext: Any
|
||||
output_type: str
|
||||
def __init__(self, rml, localcontext: Any | None = ..., datas: Any | None = ...) -> None: ...
|
||||
def _render(self): ...
|
||||
|
||||
class rml2txt(render.render):
|
||||
rml: Any
|
||||
localcontext: Any
|
||||
output_type: str
|
||||
def __init__(self, rml, localcontext: Any | None = ..., datas: Any | None = ...) -> None: ...
|
||||
def _render(self): ...
|
||||
|
||||
class odt2odt(render.render):
|
||||
rml_dom: Any
|
||||
localcontext: Any
|
||||
output_type: str
|
||||
def __init__(self, rml, localcontext: Any | None = ..., datas: Any | None = ...) -> None: ...
|
||||
def _render(self): ...
|
||||
|
||||
class html2html(render.render):
|
||||
rml_dom: Any
|
||||
localcontext: Any
|
||||
output_type: str
|
||||
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): ...
|
||||
1
odoo-stubs/report/render/rml2html/__init__.pyi
Normal file
1
odoo-stubs/report/render/rml2html/__init__.pyi
Normal file
@@ -0,0 +1 @@
|
||||
from .rml2html import parseString as parseString
|
||||
102
odoo-stubs/report/render/rml2html/rml2html.pyi
Normal file
102
odoo-stubs/report/render/rml2html/rml2html.pyi
Normal file
@@ -0,0 +1,102 @@
|
||||
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: ...
|
||||
8
odoo-stubs/report/render/rml2html/utils.pyi
Normal file
8
odoo-stubs/report/render/rml2html/utils.pyi
Normal file
@@ -0,0 +1,8 @@
|
||||
from typing import Any
|
||||
|
||||
units: Any
|
||||
|
||||
def unit_get(size): ...
|
||||
def tuple_int_get(node, attr_name, default: Any | None = ...): ...
|
||||
def bool_get(value): ...
|
||||
def attr_get(node, attrs, dict: Any | None = ...): ...
|
||||
1
odoo-stubs/report/render/rml2pdf/__init__.pyi
Normal file
1
odoo-stubs/report/render/rml2pdf/__init__.pyi
Normal file
@@ -0,0 +1 @@
|
||||
from .trml2pdf import parseNode as parseNode, parseString as parseString
|
||||
7
odoo-stubs/report/render/rml2pdf/color.pyi
Normal file
7
odoo-stubs/report/render/rml2pdf/color.pyi
Normal file
@@ -0,0 +1,7 @@
|
||||
from typing import Any
|
||||
|
||||
allcols: Any
|
||||
regex_t: Any
|
||||
regex_h: Any
|
||||
|
||||
def get(col_str): ...
|
||||
8
odoo-stubs/report/render/rml2pdf/customfonts.pyi
Normal file
8
odoo-stubs/report/render/rml2pdf/customfonts.pyi
Normal file
@@ -0,0 +1,8 @@
|
||||
from typing import Any
|
||||
|
||||
_logger: Any
|
||||
CustomTTFonts: Any
|
||||
TTFSearchPath: Any
|
||||
|
||||
def list_all_sysfonts(): ...
|
||||
def SetCustomFonts(rmldoc): ...
|
||||
153
odoo-stubs/report/render/rml2pdf/trml2pdf.pyi
Normal file
153
odoo-stubs/report/render/rml2pdf/trml2pdf.pyi
Normal file
@@ -0,0 +1,153 @@
|
||||
from reportlab import platypus
|
||||
from reportlab.pdfgen import canvas
|
||||
from reportlab.platypus.doctemplate import ActionFlowable
|
||||
from typing import Any
|
||||
|
||||
_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: ...
|
||||
def draw_page_number(self) -> None: ...
|
||||
|
||||
class PageCount(platypus.Flowable):
|
||||
story_count: Any
|
||||
def __init__(self, story_count: int = ...) -> None: ...
|
||||
def draw(self) -> None: ...
|
||||
|
||||
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 = ..., fout: Any | None = ..., images: Any | None = ..., path: str = ..., title: Any | None = ...): ...
|
||||
def parseString(rml, localcontext: Any | None = ..., fout: Any | None = ..., images: Any | None = ..., path: str = ..., title: Any | None = ...): ...
|
||||
def trml2pdf_help() -> None: ...
|
||||
17
odoo-stubs/report/render/rml2pdf/utils.pyi
Normal file
17
odoo-stubs/report/render/rml2pdf/utils.pyi
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
|
||||
def unit_get(size): ...
|
||||
def tuple_int_get(node, attr_name, default: Any | None = ...): ...
|
||||
def bool_get(value): ...
|
||||
def attr_get(node, attrs, dict: Any | None = ...): ...
|
||||
1
odoo-stubs/report/render/rml2txt/__init__.pyi
Normal file
1
odoo-stubs/report/render/rml2txt/__init__.pyi
Normal file
@@ -0,0 +1 @@
|
||||
from .rml2txt import parseNode as parseNode, parseString as parseString
|
||||
123
odoo-stubs/report/render/rml2txt/rml2txt.pyi
Normal file
123
odoo-stubs/report/render/rml2txt/rml2txt.pyi
Normal file
@@ -0,0 +1,123 @@
|
||||
from typing import Any
|
||||
|
||||
Font_size: float
|
||||
|
||||
def verbose(text) -> None: ...
|
||||
|
||||
class textbox:
|
||||
posx: Any
|
||||
posy: Any
|
||||
lines: Any
|
||||
curline: str
|
||||
endspace: bool
|
||||
def __init__(self, x: int = ..., y: int = ...) -> None: ...
|
||||
def newline(self) -> None: ...
|
||||
def fline(self) -> None: ...
|
||||
def appendtxt(self, txt) -> None: ...
|
||||
def rendertxt(self, xoffset: int = ...): ...
|
||||
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 = ..., fout: Any | None = ..., images: Any | None = ..., path: str = ..., title: Any | None = ...): ...
|
||||
def parseString(rml, localcontext: Any | None = ..., fout: Any | None = ..., images: Any | None = ..., path: str = ..., title: Any | None = ...): ...
|
||||
def trml2pdf_help() -> None: ...
|
||||
14
odoo-stubs/report/render/rml2txt/utils.pyi
Normal file
14
odoo-stubs/report/render/rml2txt/utils.pyi
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
|
||||
def unit_get(size): ...
|
||||
def tuple_int_get(node, attr_name, default: Any | None = ...): ...
|
||||
def bool_get(value): ...
|
||||
def attr_get(node, attrs, dict: Any | None = ...): ...
|
||||
6
odoo-stubs/report/render/simple.pyi
Normal file
6
odoo-stubs/report/render/simple.pyi
Normal file
@@ -0,0 +1,6 @@
|
||||
from . import render
|
||||
from typing import Any
|
||||
|
||||
class simple(render.render):
|
||||
result: Any
|
||||
def _render(self): ...
|
||||
70
odoo-stubs/report/report_sxw.pyi
Normal file
70
odoo-stubs/report/report_sxw.pyi
Normal file
@@ -0,0 +1,70 @@
|
||||
from . import preprocess
|
||||
from .interface import report_rml
|
||||
from typing import Any
|
||||
|
||||
_logger: Any
|
||||
rml_parents: Any
|
||||
rml_tag: str
|
||||
sxw_parents: Any
|
||||
html_parents: Any
|
||||
sxw_tag: str
|
||||
rml2sxw: Any
|
||||
|
||||
def get_date_length(date_format=...): ...
|
||||
|
||||
class rml_parse:
|
||||
cr: Any
|
||||
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(self, id, model: Any | None = ..., field: Any | None = ..., context: Any | None = ...): ...
|
||||
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 = ...): ...
|
||||
def get_digits(self, obj: Any | None = ..., f: Any | None = ..., dp: Any | None = ...): ...
|
||||
def formatLang(self, value, digits: Any | None = ..., date: bool = ..., date_time: bool = ..., grouping: bool = ..., monetary: bool = ..., dp: bool = ..., currency_obj: bool = ...): ...
|
||||
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(self, objects, data, ids, report_type: Any | None = ...) -> None: ...
|
||||
|
||||
class report_sxw(report_rml, preprocess.report):
|
||||
name: Any
|
||||
parser: Any
|
||||
header: Any
|
||||
store: Any
|
||||
internal_header: bool
|
||||
def __init__(self, name, table, rml: bool = ..., parser=..., header: str = ..., store: bool = ..., register: bool = ...) -> None: ...
|
||||
def getObjects(self, cr, uid, ids, context): ...
|
||||
def create(self, cr, uid, ids, data, context: Any | None = ...): ...
|
||||
def create_source_odt(self, cr, uid, ids, data, report_xml, context: Any | None = ...): ...
|
||||
def create_source_html2html(self, cr, uid, ids, data, report_xml, context: Any | None = ...): ...
|
||||
def create_source_mako2html(self, cr, uid, ids, data, report_xml, context: Any | None = ...): ...
|
||||
def create_source_pdf(self, cr, uid, ids, data, report_xml, context: Any | None = ...): ...
|
||||
def create_single_pdf(self, cr, uid, ids, data, report_xml, context: Any | None = ...): ...
|
||||
def create_single_odt(self, cr, uid, ids, data, report_xml, context: Any | None = ...): ...
|
||||
def create_single_html2html(self, cr, uid, ids, data, report_xml, context: Any | None = ...): ...
|
||||
def create_single_mako2html(self, cr, uid, ids, data, report_xml, context: Any | None = ...): ...
|
||||
@@ -1 +0,0 @@
|
||||
from . import common as common, db as db, model as model, server as server, wsgi_server as wsgi_server
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
_logger: Any
|
||||
RPC_VERSION_1: Any
|
||||
|
||||
def exp_login(db: Any, login: Any, password: Any): ...
|
||||
def exp_authenticate(db: Any, login: Any, password: Any, user_agent_env: Any): ...
|
||||
def exp_login(db, login, password): ...
|
||||
def exp_authenticate(db, login, password, user_agent_env): ...
|
||||
def exp_version(): ...
|
||||
def exp_about(extended: bool = ...): ...
|
||||
def exp_set_loglevel(loglevel: Any, logger: Optional[Any] = ...): ...
|
||||
def dispatch(method: Any, params: Any): ...
|
||||
def exp_set_loglevel(loglevel, logger: Any | None = ...): ...
|
||||
def dispatch(method, params): ...
|
||||
|
||||
@@ -1,31 +1,30 @@
|
||||
from functools import wraps as wraps
|
||||
from typing import Any, Optional
|
||||
from odoo.exceptions import UserError as UserError
|
||||
from typing import Any
|
||||
|
||||
_logger: Any
|
||||
|
||||
class DatabaseExists(Warning): ...
|
||||
|
||||
def check_db_management_enabled(method: Any): ...
|
||||
def check_super(passwd: Any): ...
|
||||
def _initialize_db(id: Any, db_name: Any, demo: Any, lang: Any, user_password: Any, login: str = ..., country_code: Optional[Any] = ...) -> None: ...
|
||||
def _create_empty_database(name: Any) -> None: ...
|
||||
def exp_create_database(db_name: Any, demo: Any, lang: Any, user_password: str = ..., login: str = ..., country_code: Optional[Any] = ...): ...
|
||||
def exp_duplicate_database(db_original_name: Any, db_name: Any): ...
|
||||
def _drop_conn(cr: Any, db_name: Any) -> None: ...
|
||||
def exp_drop(db_name: Any): ...
|
||||
def exp_dump(db_name: Any, format: Any): ...
|
||||
def dump_db_manifest(cr: Any): ...
|
||||
def dump_db(db_name: Any, stream: Any, backup_format: str = ...): ...
|
||||
def exp_restore(db_name: Any, data: Any, copy: bool = ...): ...
|
||||
def restore_db(db: Any, dump_file: Any, copy: bool = ...) -> None: ...
|
||||
def exp_rename(old_name: Any, new_name: Any): ...
|
||||
def exp_change_admin_password(new_password: Any): ...
|
||||
def exp_migrate_databases(databases: Any): ...
|
||||
def exp_db_exist(db_name: Any): ...
|
||||
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, lang, user_password: str = ..., login: str = ..., 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): ...
|
||||
def dump_db(db_name, stream, backup_format: str = ...): ...
|
||||
def exp_restore(db_name, data, copy: bool = ...): ...
|
||||
def restore_db(db, dump_file, copy: bool = ...) -> None: ...
|
||||
def exp_rename(old_name, new_name): ...
|
||||
def exp_change_admin_password(new_password): ...
|
||||
def exp_migrate_databases(databases): ...
|
||||
def exp_db_exist(db_name): ...
|
||||
def list_dbs(force: bool = ...): ...
|
||||
def list_db_incompatible(databases: Any): ...
|
||||
def exp_list(document: bool = ...): ...
|
||||
def exp_list_lang(): ...
|
||||
def exp_list_countries(): ...
|
||||
def exp_server_version(): ...
|
||||
def dispatch(method: Any, params: Any): ...
|
||||
def dispatch(method, params): ...
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
_logger: Any
|
||||
PG_CONCURRENCY_ERRORS_TO_RETRY: Any
|
||||
MAX_TRIES_ON_CONCURRENCY_FAILURE: int
|
||||
|
||||
def dispatch(method: Any, params: Any): ...
|
||||
def check(f: Any): ...
|
||||
def execute_cr(cr: Any, uid: Any, obj: Any, method: Any, *args: Any, **kw: Any): ...
|
||||
def execute_kw(db: Any, uid: Any, obj: Any, method: Any, args: Any, kw: Optional[Any] = ...): ...
|
||||
def execute(db: Any, uid: Any, obj: Any, method: Any, *args: Any, **kw: Any): ...
|
||||
def dispatch(method, params): ...
|
||||
def check(f): ...
|
||||
def execute_cr(cr, uid, obj, method, *args, **kw): ...
|
||||
def execute_kw(db, uid, obj, method, args, kw: Any | None = ...): ...
|
||||
def execute(db, uid, obj, method, *args, **kw): ...
|
||||
def exec_workflow_cr(cr, uid, obj, signal, *args): ...
|
||||
def exec_workflow(db, uid, obj, signal, *args): ...
|
||||
|
||||
12
odoo-stubs/service/report.pyi
Normal file
12
odoo-stubs/service/report.pyi
Normal file
@@ -0,0 +1,12 @@
|
||||
from typing import Any
|
||||
|
||||
_logger: Any
|
||||
self_reports: Any
|
||||
self_id: int
|
||||
self_id_protect: Any
|
||||
|
||||
def dispatch(method, params): ...
|
||||
def exp_render_report(db, uid, object, ids, datas: Any | None = ..., context: Any | None = ...): ...
|
||||
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): ...
|
||||
@@ -1,6 +1,4 @@
|
||||
from typing import Any
|
||||
|
||||
def login(db: Any, login: Any, password: Any): ...
|
||||
def check(db: Any, uid: Any, passwd: Any): ...
|
||||
def compute_session_token(session: Any, env: Any): ...
|
||||
def check_session(session: Any, env: Any): ...
|
||||
def login(db, login, password): ...
|
||||
def check(db, uid, passwd): ...
|
||||
def compute_session_token(session, env): ...
|
||||
def check_session(session, env): ...
|
||||
|
||||
@@ -1,157 +1,147 @@
|
||||
import werkzeug.serving
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
INOTIFY_LISTEN_EVENTS: Any
|
||||
_logger: Any
|
||||
SLEEP_INTERVAL: int
|
||||
|
||||
def memory_info(process: Any): ...
|
||||
def empty_pipe(fd: Any) -> None: ...
|
||||
def memory_info(process): ...
|
||||
|
||||
class LoggingBaseWSGIServerMixIn:
|
||||
def handle_error(self, request: Any, client_address: Any) -> None: ...
|
||||
def handle_error(self, request, client_address) -> None: ...
|
||||
|
||||
class BaseWSGIServerNoBind(LoggingBaseWSGIServerMixIn, werkzeug.serving.BaseWSGIServer):
|
||||
def __init__(self, app: Any) -> None: ...
|
||||
def __init__(self, app) -> None: ...
|
||||
def server_activate(self) -> None: ...
|
||||
|
||||
class RequestHandler(werkzeug.serving.WSGIRequestHandler):
|
||||
def setup(self) -> None: ...
|
||||
|
||||
class ThreadedWSGIServerReloadable(LoggingBaseWSGIServerMixIn, werkzeug.serving.ThreadedWSGIServer):
|
||||
max_http_threads: Any = ...
|
||||
http_threads_sem: Any = ...
|
||||
def __init__(self, host: Any, port: Any, app: Any) -> None: ...
|
||||
reload_socket: bool = ...
|
||||
socket: Any = ...
|
||||
def __init__(self, host, port, app) -> None: ...
|
||||
reload_socket: bool
|
||||
socket: Any
|
||||
def server_bind(self) -> None: ...
|
||||
def server_activate(self) -> None: ...
|
||||
def _handle_request_noblock(self) -> None: ...
|
||||
def shutdown_request(self, request: Any) -> None: ...
|
||||
|
||||
class FSWatcherBase:
|
||||
def handle_file(self, path: Any): ...
|
||||
def handle_file(self, path): ...
|
||||
|
||||
class FSWatcherWatchdog(FSWatcherBase):
|
||||
observer: Any = ...
|
||||
observer: Any
|
||||
def __init__(self) -> None: ...
|
||||
def dispatch(self, event: Any) -> None: ...
|
||||
def dispatch(self, event) -> None: ...
|
||||
def start(self) -> None: ...
|
||||
def stop(self) -> None: ...
|
||||
|
||||
class FSWatcherInotify(FSWatcherBase):
|
||||
started: bool = ...
|
||||
watcher: Any = ...
|
||||
started: bool
|
||||
watcher: Any
|
||||
def __init__(self) -> None: ...
|
||||
def run(self) -> None: ...
|
||||
thread: Any = ...
|
||||
thread: Any
|
||||
def start(self) -> None: ...
|
||||
def stop(self) -> None: ...
|
||||
|
||||
class CommonServer:
|
||||
app: Any = ...
|
||||
interface: Any = ...
|
||||
port: Any = ...
|
||||
pid: Any = ...
|
||||
def __init__(self, app: Any) -> None: ...
|
||||
def close_socket(self, sock: Any) -> None: ...
|
||||
app: Any
|
||||
interface: Any
|
||||
port: Any
|
||||
pid: Any
|
||||
def __init__(self, app) -> None: ...
|
||||
def close_socket(self, sock) -> None: ...
|
||||
|
||||
class ThreadedServer(CommonServer):
|
||||
main_thread_id: Any = ...
|
||||
quit_signals_received: int = ...
|
||||
httpd: Any = ...
|
||||
def __init__(self, app: Any) -> None: ...
|
||||
def signal_handler(self, sig: Any, frame: Any) -> None: ...
|
||||
def cron_thread(self, number: Any) -> None: ...
|
||||
main_thread_id: Any
|
||||
quit_signals_received: int
|
||||
httpd: Any
|
||||
def __init__(self, app) -> None: ...
|
||||
def signal_handler(self, sig, frame) -> None: ...
|
||||
def cron_thread(self, number) -> None: ...
|
||||
def cron_spawn(self) -> None: ...
|
||||
def http_thread(self): ...
|
||||
def http_spawn(self) -> None: ...
|
||||
def start(self, stop: bool = ...): ...
|
||||
def stop(self) -> None: ...
|
||||
def run(self, preload: Optional[Any] = ..., stop: bool = ...): ...
|
||||
def run(self, preload: Any | None = ..., stop: bool = ...): ...
|
||||
def reload(self) -> None: ...
|
||||
|
||||
class GeventServer(CommonServer):
|
||||
port: Any = ...
|
||||
httpd: Any = ...
|
||||
def __init__(self, app: Any) -> None: ...
|
||||
port: Any
|
||||
httpd: Any
|
||||
def __init__(self, app) -> None: ...
|
||||
def process_limits(self) -> None: ...
|
||||
ppid: Any = ...
|
||||
ppid: Any
|
||||
def watchdog(self, beat: int = ...) -> None: ...
|
||||
def start(self) -> None: ...
|
||||
def stop(self) -> None: ...
|
||||
def run(self, preload: Any, stop: Any) -> None: ...
|
||||
def run(self, preload, stop) -> None: ...
|
||||
|
||||
class PreforkServer(CommonServer):
|
||||
address: Any = ...
|
||||
population: Any = ...
|
||||
timeout: Any = ...
|
||||
limit_request: Any = ...
|
||||
cron_timeout: Any = ...
|
||||
beat: int = ...
|
||||
app: Any = ...
|
||||
pid: Any = ...
|
||||
socket: Any = ...
|
||||
workers_http: Any = ...
|
||||
workers_cron: Any = ...
|
||||
workers: Any = ...
|
||||
generation: int = ...
|
||||
queue: Any = ...
|
||||
long_polling_pid: Any = ...
|
||||
def __init__(self, app: Any) -> None: ...
|
||||
address: Any
|
||||
population: Any
|
||||
timeout: Any
|
||||
limit_request: Any
|
||||
cron_timeout: Any
|
||||
beat: int
|
||||
app: Any
|
||||
pid: Any
|
||||
socket: Any
|
||||
workers_http: Any
|
||||
workers_cron: Any
|
||||
workers: Any
|
||||
generation: int
|
||||
queue: Any
|
||||
long_polling_pid: Any
|
||||
def __init__(self, app) -> None: ...
|
||||
def pipe_new(self): ...
|
||||
def pipe_ping(self, pipe: Any) -> None: ...
|
||||
def signal_handler(self, sig: Any, frame: Any) -> None: ...
|
||||
def worker_spawn(self, klass: Any, workers_registry: Any): ...
|
||||
def pipe_ping(self, pipe) -> None: ...
|
||||
def signal_handler(self, sig, frame) -> None: ...
|
||||
def worker_spawn(self, klass, workers_registry): ...
|
||||
def long_polling_spawn(self) -> None: ...
|
||||
def worker_pop(self, pid: Any) -> None: ...
|
||||
def worker_kill(self, pid: Any, sig: Any) -> None: ...
|
||||
def worker_pop(self, pid) -> None: ...
|
||||
def worker_kill(self, pid, sig) -> None: ...
|
||||
def process_signals(self) -> None: ...
|
||||
def process_zombie(self) -> None: ...
|
||||
def process_timeout(self) -> None: ...
|
||||
def process_spawn(self) -> None: ...
|
||||
def sleep(self) -> None: ...
|
||||
pipe: Any = ...
|
||||
pipe: Any
|
||||
def start(self) -> None: ...
|
||||
def stop(self, graceful: bool = ...) -> None: ...
|
||||
def run(self, preload: Any, stop: Any): ...
|
||||
def run(self, preload, stop): ...
|
||||
|
||||
class Worker:
|
||||
multi: Any = ...
|
||||
watchdog_time: Any = ...
|
||||
watchdog_pipe: Any = ...
|
||||
eintr_pipe: Any = ...
|
||||
watchdog_timeout: Any = ...
|
||||
ppid: Any = ...
|
||||
pid: Any = ...
|
||||
alive: bool = ...
|
||||
request_max: Any = ...
|
||||
request_count: int = ...
|
||||
def __init__(self, multi: Any) -> None: ...
|
||||
multi: Any
|
||||
watchdog_time: Any
|
||||
watchdog_pipe: Any
|
||||
watchdog_timeout: Any
|
||||
ppid: Any
|
||||
pid: Any
|
||||
alive: bool
|
||||
request_max: Any
|
||||
request_count: int
|
||||
def __init__(self, multi) -> None: ...
|
||||
def setproctitle(self, title: str = ...) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def signal_handler(self, sig: Any, frame: Any) -> None: ...
|
||||
def signal_time_expired_handler(self, n: Any, stack: Any) -> None: ...
|
||||
def signal_handler(self, sig, frame) -> None: ...
|
||||
def sleep(self) -> None: ...
|
||||
def check_limits(self) -> None: ...
|
||||
def process_limit(self) -> None: ...
|
||||
def process_work(self) -> None: ...
|
||||
def start(self) -> None: ...
|
||||
def stop(self) -> None: ...
|
||||
def run(self) -> None: ...
|
||||
def _runloop(self) -> None: ...
|
||||
|
||||
class WorkerHTTP(Worker):
|
||||
sock_timeout: Any = ...
|
||||
def __init__(self, multi: Any) -> None: ...
|
||||
def process_request(self, client: Any, addr: Any) -> None: ...
|
||||
def process_request(self, client, addr) -> None: ...
|
||||
def process_work(self) -> None: ...
|
||||
server: Any = ...
|
||||
server: Any
|
||||
def start(self) -> None: ...
|
||||
|
||||
class WorkerCron(Worker):
|
||||
db_index: int = ...
|
||||
watchdog_timeout: Any = ...
|
||||
def __init__(self, multi: Any) -> None: ...
|
||||
db_index: int
|
||||
watchdog_timeout: Any
|
||||
def __init__(self, multi) -> None: ...
|
||||
def sleep(self) -> None: ...
|
||||
def _db_list(self): ...
|
||||
def process_work(self) -> None: ...
|
||||
@@ -160,9 +150,9 @@ class WorkerCron(Worker):
|
||||
server: Any
|
||||
|
||||
def load_server_wide_modules() -> None: ...
|
||||
def _reexec(updated_modules: Optional[Any] = ...) -> None: ...
|
||||
def load_test_file_yml(registry: Any, test_file: Any) -> None: ...
|
||||
def load_test_file_py(registry: Any, test_file: Any) -> None: ...
|
||||
def preload_registries(dbnames: Any): ...
|
||||
def start(preload: Optional[Any] = ..., stop: bool = ...): ...
|
||||
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): ...
|
||||
def start(preload: Any | None = ..., stop: bool = ...): ...
|
||||
def restart() -> None: ...
|
||||
|
||||
@@ -7,12 +7,9 @@ RPC_FAULT_CODE_WARNING: int
|
||||
RPC_FAULT_CODE_ACCESS_DENIED: int
|
||||
RPC_FAULT_CODE_ACCESS_ERROR: int
|
||||
|
||||
def xmlrpc_handle_exception_int(e: Any): ...
|
||||
def xmlrpc_handle_exception_string(e: Any): ...
|
||||
def _patch_xmlrpc_marshaller() -> None: ...
|
||||
def wsgi_xmlrpc(environ: Any, start_response: Any): ...
|
||||
def application_unproxied(environ: Any, start_response: Any): ...
|
||||
|
||||
ProxyFix: Any
|
||||
|
||||
def application(environ: Any, start_response: Any): ...
|
||||
def xmlrpc_return(start_response, service, method, params, string_faultcode: bool = ...): ...
|
||||
def xmlrpc_handle_exception_int(e): ...
|
||||
def xmlrpc_handle_exception_string(e): ...
|
||||
def wsgi_xmlrpc(environ, start_response): ...
|
||||
def application_unproxied(environ, start_response): ...
|
||||
def application(environ, start_response): ...
|
||||
|
||||
@@ -1,55 +1,55 @@
|
||||
import psycopg2.extensions
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
_logger: Any
|
||||
types_mapping: Any
|
||||
|
||||
def unbuffer(symb: Any, cr: Any): ...
|
||||
def undecimalize(symb: Any, cr: Any): ...
|
||||
def adapt_string(adapted: Any): ...
|
||||
def unbuffer(symb, cr): ...
|
||||
def undecimalize(symb, cr): ...
|
||||
def adapt_string(adapted): ...
|
||||
|
||||
re_from: Any
|
||||
re_into: Any
|
||||
sql_counter: int
|
||||
|
||||
class Cursor:
|
||||
IN_MAX: int = ...
|
||||
def check(f: Any): ...
|
||||
sql_from_log: Any = ...
|
||||
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: Any, dbname: Any, dsn: Any, serialized: bool = ...) -> None: ...
|
||||
def __build_dict(self, row: Any): ...
|
||||
IN_MAX: int
|
||||
def check(f): ...
|
||||
sql_from_log: Any
|
||||
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: Any): ...
|
||||
def dictfetchmany(self, size): ...
|
||||
def dictfetchall(self): ...
|
||||
def __del__(self) -> None: ...
|
||||
def execute(self, query: Any, params: Optional[Any] = ..., log_exceptions: Optional[Any] = ...): ...
|
||||
def split_for_in_conditions(self, ids: Any, size: Optional[Any] = ...): ...
|
||||
def execute(self, query, params: Any | None = ..., log_exceptions: Any | None = ...): ...
|
||||
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: Any) -> None: ...
|
||||
def after(self, event: Any, func: Any) -> 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): ...
|
||||
def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> None: ...
|
||||
def __exit__(self, exc_type, exc_value, traceback) -> None: ...
|
||||
def savepoint(self) -> None: ...
|
||||
def __getattr__(self, name: Any): ...
|
||||
def __getattr__(self, name): ...
|
||||
@property
|
||||
def closed(self): ...
|
||||
|
||||
@@ -60,50 +60,49 @@ class TestCursor(Cursor):
|
||||
def release(self) -> None: ...
|
||||
def force_close(self) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def autocommit(self, on: Any) -> None: ...
|
||||
def autocommit(self, on) -> None: ...
|
||||
def commit(self) -> None: ...
|
||||
def rollback(self) -> None: ...
|
||||
|
||||
class LazyCursor:
|
||||
_dbname: Any = ...
|
||||
_cursor: Any = ...
|
||||
_depth: int = ...
|
||||
def __init__(self, dbname: Optional[Any] = ...) -> None: ...
|
||||
_dbname: Any
|
||||
_cursor: Any
|
||||
_depth: int
|
||||
def __init__(self, dbname: Any | None = ...) -> None: ...
|
||||
@property
|
||||
def dbname(self): ...
|
||||
def __getattr__(self, name: Any): ...
|
||||
def __getattr__(self, name): ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> None: ...
|
||||
def __exit__(self, exc_type, exc_value, traceback) -> None: ...
|
||||
|
||||
class PsycoConnection(psycopg2.extensions.connection): ...
|
||||
|
||||
class ConnectionPool:
|
||||
def locked(fun: Any): ...
|
||||
_connections: Any = ...
|
||||
_maxconn: Any = ...
|
||||
_lock: Any = ...
|
||||
def locked(fun): ...
|
||||
_connections: Any
|
||||
_maxconn: Any
|
||||
_lock: Any
|
||||
def __init__(self, maxconn: int = ...) -> None: ...
|
||||
def __repr__(self): ...
|
||||
def _debug(self, msg: Any, *args: Any) -> None: ...
|
||||
def borrow(self, connection_info: Any): ...
|
||||
def give_back(self, connection: Any, keep_in_pool: bool = ...) -> None: ...
|
||||
def close_all(self, dsn: Optional[Any] = ...) -> None: ...
|
||||
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: ...
|
||||
|
||||
class Connection:
|
||||
dbname: Any = ...
|
||||
dsn: Any = ...
|
||||
__pool: Any = ...
|
||||
def __init__(self, pool: Any, dbname: Any, dsn: Any) -> None: ...
|
||||
dbname: Any
|
||||
dsn: Any
|
||||
__pool: Any
|
||||
def __init__(self, pool, dbname, dsn) -> None: ...
|
||||
def cursor(self, serialized: bool = ...): ...
|
||||
def test_cursor(self, serialized: bool = ...): ...
|
||||
serialized_cursor: Any = ...
|
||||
def __bool__(self) -> None: ...
|
||||
__nonzero__: Any = ...
|
||||
serialized_cursor: Any
|
||||
def __nonzero__(self): ...
|
||||
|
||||
def connection_info_for(db_or_uri: Any): ...
|
||||
def connection_info_for(db_or_uri): ...
|
||||
|
||||
_Pool: Any
|
||||
|
||||
def db_connect(to: Any, allow_uri: bool = ...): ...
|
||||
def close_db(db_name: Any) -> None: ...
|
||||
def db_connect(to, allow_uri: bool = ...): ...
|
||||
def close_db(db_name) -> None: ...
|
||||
def close_all() -> None: ...
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
from .common import *
|
||||
from . import common as common
|
||||
from common import *
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import unittest
|
||||
from typing import Any, Optional
|
||||
import urllib2
|
||||
from typing import Any
|
||||
|
||||
from odoo.api import Environment
|
||||
from odoo.modules.registry import Registry
|
||||
@@ -15,34 +16,28 @@ def get_db_name(): ...
|
||||
|
||||
DB: Any
|
||||
|
||||
def at_install(flag: Any): ...
|
||||
def post_install(flag: Any): ...
|
||||
def at_install(flag): ...
|
||||
def post_install(flag): ...
|
||||
|
||||
class TreeCase(unittest.TestCase):
|
||||
def __init__(self, methodName: str = ...) -> None: ...
|
||||
def assertTreesEqual(self, n1: Any, n2: Any, msg: Optional[Any] = ...) -> None: ...
|
||||
|
||||
class BaseCase(TreeCase):
|
||||
longMessage: bool = ...
|
||||
registry: Registry = ...
|
||||
cr: Cursor = ...
|
||||
env: Environment = ...
|
||||
def cursor(self): ...
|
||||
@property
|
||||
def uid(self): ...
|
||||
@uid.setter
|
||||
def uid(self, user: Any) -> None: ...
|
||||
def ref(self, xid: Any): ...
|
||||
def browse_ref(self, xid: Any): ...
|
||||
def _assertRaises(self, exception: Any) -> None: ...
|
||||
def assertRaises(self, exception: Any, func: Optional[Any] = ..., *args: Any, **kwargs: Any): ...
|
||||
class BaseCase(unittest.TestCase):
|
||||
longMessage: bool
|
||||
env: Environment
|
||||
registry: Registry
|
||||
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): ...
|
||||
def assertItemsEqual(self, a: Any, b: Any, msg: Optional[Any] = ...) -> None: ...
|
||||
|
||||
class TransactionCase(BaseCase):
|
||||
registry: Registry
|
||||
cr: Cursor
|
||||
uid: int
|
||||
env: Environment
|
||||
def setUp(self): ...
|
||||
def patch(self, obj: Any, key: Any, val: Any) -> None: ...
|
||||
def patch_order(self, model: Any, order: Any) -> None: ...
|
||||
def patch(self, obj, key, val) -> None: ...
|
||||
def patch_order(self, model, order) -> None: ...
|
||||
|
||||
class SingleTransactionCase(BaseCase):
|
||||
@classmethod
|
||||
@@ -53,26 +48,30 @@ class SingleTransactionCase(BaseCase):
|
||||
savepoint_seq: Any
|
||||
|
||||
class SavepointCase(SingleTransactionCase):
|
||||
_savepoint_id: Any = ...
|
||||
_savepoint_id: Any
|
||||
def setUp(self) -> None: ...
|
||||
def tearDown(self) -> None: ...
|
||||
|
||||
class HttpCase(TransactionCase):
|
||||
registry_test_mode: bool = ...
|
||||
xmlrpc_url: Any = ...
|
||||
xmlrpc_common: Any = ...
|
||||
xmlrpc_db: Any = ...
|
||||
xmlrpc_object: Any = ...
|
||||
def __init__(self, methodName: str = ...) -> None: ...
|
||||
session: Any = ...
|
||||
session_id: Any = ...
|
||||
opener: Any = ...
|
||||
def setUp(self) -> None: ...
|
||||
def url_open(self, url: Any, data: Optional[Any] = ..., timeout: int = ...): ...
|
||||
def authenticate(self, user: Any, password: Any) -> None: ...
|
||||
def phantom_poll(self, phantom: Any, timeout: Any): ...
|
||||
def phantom_run(self, cmd: Any, timeout: Any) -> None: ...
|
||||
def _wait_remaining_requests(self) -> None: ...
|
||||
def phantom_js(self, url_path: Any, code: Any, ready: str = ..., login: Optional[Any] = ..., timeout: int = ..., **kw: Any) -> None: ...
|
||||
class RedirectHandler(urllib2.HTTPRedirectHandler):
|
||||
def http_response(self, request, response): ...
|
||||
https_response: Any
|
||||
|
||||
def can_import(module: Any): ...
|
||||
class HttpCase(TransactionCase):
|
||||
xmlrpc_url: Any
|
||||
xmlrpc_common: Any
|
||||
xmlrpc_db: Any
|
||||
xmlrpc_object: Any
|
||||
def __init__(self, methodName: str = ...) -> None: ...
|
||||
session: Any
|
||||
session_id: Any
|
||||
opener: Any
|
||||
def setUp(self) -> None: ...
|
||||
def tearDown(self) -> None: ...
|
||||
def url_open(self, url, data: Any | None = ..., timeout: int = ...): ...
|
||||
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, code, ready: str = ..., login: Any | None = ..., timeout: int = ..., **kw) -> None: ...
|
||||
|
||||
def can_import(module): ...
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
from .misc import *
|
||||
from .convert import *
|
||||
from .translate import *
|
||||
from .image import *
|
||||
from .yaml_import import *
|
||||
from .sql import *
|
||||
from .float_utils import *
|
||||
from .mail import *
|
||||
from .func import *
|
||||
from .debugger import *
|
||||
from .xml_utils import *
|
||||
from . import appdirs as appdirs, pdf as pdf, pycompat as pycompat, win32 as win32
|
||||
from .config import config as config
|
||||
from .graph import graph as graph
|
||||
from misc import *
|
||||
from convert import *
|
||||
from translate import *
|
||||
from image import *
|
||||
from amount_to_text import *
|
||||
from amount_to_text_en import *
|
||||
from pdf_utils import *
|
||||
from yaml_import import *
|
||||
from sql import *
|
||||
from float_utils import *
|
||||
from mail import *
|
||||
from func import *
|
||||
from debugger import *
|
||||
from config import config as config
|
||||
from graph import graph as graph
|
||||
|
||||
24
odoo-stubs/tools/amount_to_text.pyi
Normal file
24
odoo-stubs/tools/amount_to_text.pyi
Normal file
@@ -0,0 +1,24 @@
|
||||
from typing import Any
|
||||
|
||||
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): ...
|
||||
|
||||
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 = ...): ...
|
||||
13
odoo-stubs/tools/amount_to_text_en.pyi
Normal file
13
odoo-stubs/tools/amount_to_text_en.pyi
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
@@ -1,22 +1,24 @@
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
__version_info__: Any
|
||||
__version__: Any
|
||||
PY3: Any
|
||||
unicode = str
|
||||
|
||||
def user_data_dir(appname: Optional[Any] = ..., appauthor: Optional[Any] = ..., version: Optional[Any] = ..., roaming: bool = ...): ...
|
||||
def site_data_dir(appname: Optional[Any] = ..., appauthor: Optional[Any] = ..., version: Optional[Any] = ..., multipath: bool = ...): ...
|
||||
def user_config_dir(appname: Optional[Any] = ..., appauthor: Optional[Any] = ..., version: Optional[Any] = ..., roaming: bool = ...): ...
|
||||
def site_config_dir(appname: Optional[Any] = ..., appauthor: Optional[Any] = ..., version: Optional[Any] = ..., multipath: bool = ...): ...
|
||||
def user_cache_dir(appname: Optional[Any] = ..., appauthor: Optional[Any] = ..., version: Optional[Any] = ..., opinion: bool = ...): ...
|
||||
def user_log_dir(appname: Optional[Any] = ..., appauthor: Optional[Any] = ..., version: Optional[Any] = ..., opinion: bool = ...): ...
|
||||
def user_data_dir(appname: Any | None = ..., appauthor: Any | None = ..., version: Any | None = ..., roaming: bool = ...): ...
|
||||
def site_data_dir(appname: Any | None = ..., appauthor: Any | None = ..., version: Any | None = ..., multipath: bool = ...): ...
|
||||
def user_config_dir(appname: Any | None = ..., appauthor: Any | None = ..., version: Any | None = ..., roaming: bool = ...): ...
|
||||
def site_config_dir(appname: Any | None = ..., appauthor: Any | None = ..., version: Any | None = ..., multipath: bool = ...): ...
|
||||
def user_cache_dir(appname: Any | None = ..., appauthor: Any | None = ..., version: Any | None = ..., opinion: bool = ...): ...
|
||||
def user_log_dir(appname: Any | None = ..., appauthor: Any | None = ..., version: Any | None = ..., opinion: bool = ...): ...
|
||||
|
||||
class AppDirs:
|
||||
appname: Any = ...
|
||||
appauthor: Any = ...
|
||||
version: Any = ...
|
||||
roaming: Any = ...
|
||||
multipath: Any = ...
|
||||
def __init__(self, appname: Any, appauthor: Optional[Any] = ..., version: Optional[Any] = ..., roaming: bool = ..., multipath: bool = ...) -> None: ...
|
||||
appname: Any
|
||||
appauthor: Any
|
||||
version: Any
|
||||
roaming: Any
|
||||
multipath: Any
|
||||
def __init__(self, appname, appauthor: Any | None = ..., version: Any | None = ..., roaming: bool = ..., multipath: bool = ...) -> None: ...
|
||||
@property
|
||||
def user_data_dir(self): ...
|
||||
@property
|
||||
@@ -30,6 +32,9 @@ class AppDirs:
|
||||
@property
|
||||
def user_log_dir(self): ...
|
||||
|
||||
def _get_win_folder_from_registry(csidl_name: Any): ...
|
||||
def _get_win_folder_with_pywin32(csidl_name: Any): ...
|
||||
def _get_win_folder_with_ctypes(csidl_name: Any): ...
|
||||
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
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
from typing import Any
|
||||
|
||||
class assertion_report:
|
||||
successes: int = ...
|
||||
failures: int = ...
|
||||
successes: int
|
||||
failures: int
|
||||
def __init__(self) -> None: ...
|
||||
def record_success(self) -> None: ...
|
||||
def record_failure(self) -> None: ...
|
||||
def record_result(self, result: Any) -> None: ...
|
||||
def record_result(self, result) -> None: ...
|
||||
def __str__(self): ...
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
unsafe_eval = eval
|
||||
_logger: Any
|
||||
|
||||
class ormcache_counter:
|
||||
__slots__: Any = ...
|
||||
hit: int = ...
|
||||
miss: int = ...
|
||||
err: int = ...
|
||||
__slots__: Any
|
||||
hit: int
|
||||
miss: int
|
||||
err: int
|
||||
def __init__(self) -> None: ...
|
||||
@property
|
||||
def ratio(self): ...
|
||||
@@ -15,36 +15,36 @@ class ormcache_counter:
|
||||
STAT: Any
|
||||
|
||||
class ormcache:
|
||||
args: Any = ...
|
||||
skiparg: Any = ...
|
||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||
method: Any = ...
|
||||
def __call__(self, method: Any): ...
|
||||
key: Any = ...
|
||||
args: Any
|
||||
skiparg: Any
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
method: Any
|
||||
def __call__(self, method): ...
|
||||
key: Any
|
||||
def determine_key(self): ...
|
||||
def lru(self, model: Any): ...
|
||||
def lookup(self, method: Any, *args: Any, **kwargs: Any): ...
|
||||
def clear(self, model: Any, *args: Any) -> None: ...
|
||||
def lru(self, model): ...
|
||||
def lookup(self, method, *args, **kwargs): ...
|
||||
def clear(self, model, *args) -> None: ...
|
||||
|
||||
class ormcache_context(ormcache):
|
||||
keys: Any = ...
|
||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||
key: Any = ...
|
||||
keys: Any
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
key: Any
|
||||
def determine_key(self) -> None: ...
|
||||
|
||||
class ormcache_multi(ormcache):
|
||||
multi: Any = ...
|
||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||
key_multi: Any = ...
|
||||
multi_pos: Any = ...
|
||||
multi: Any
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
key_multi: Any
|
||||
multi_pos: Any
|
||||
def determine_key(self) -> None: ...
|
||||
def lookup(self, method: Any, *args: Any, **kwargs: Any): ...
|
||||
def lookup(self, method, *args, **kwargs): ...
|
||||
|
||||
class dummy_cache:
|
||||
def __init__(self, *l: Any, **kw: Any) -> None: ...
|
||||
def __call__(self, fn: Any): ...
|
||||
def clear(self, *l: Any, **kw: Any) -> None: ...
|
||||
def __init__(self, *l, **kw) -> None: ...
|
||||
def __call__(self, fn): ...
|
||||
def clear(self, *l, **kw) -> None: ...
|
||||
|
||||
def log_ormcache_stats(sig: Optional[Any] = ..., frame: Optional[Any] = ...): ...
|
||||
def get_cache_key_counter(bound_method: Any, *args: Any, **kwargs: Any): ...
|
||||
def log_ormcache_stats(sig: Any | None = ..., frame: Any | None = ...) -> None: ...
|
||||
def get_cache_key_counter(bound_method, *args, **kwargs): ...
|
||||
cache = ormcache
|
||||
|
||||
@@ -1,44 +1,40 @@
|
||||
import optparse
|
||||
from typing import Any, Optional
|
||||
|
||||
crypt_context: Any
|
||||
from typing import Any
|
||||
|
||||
class MyOption(optparse.Option):
|
||||
my_default: Any = ...
|
||||
def __init__(self, *opts: Any, **attrs: Any) -> None: ...
|
||||
my_default: Any
|
||||
def __init__(self, *opts, **attrs) -> None: ...
|
||||
|
||||
DEFAULT_LOG_HANDLER: str
|
||||
|
||||
def _get_default_datadir(): ...
|
||||
def _deduplicate_loggers(loggers: Any): ...
|
||||
def _deduplicate_loggers(loggers): ...
|
||||
|
||||
class configmanager:
|
||||
options: Any = ...
|
||||
blacklist_for_save: Any = ...
|
||||
casts: Any = ...
|
||||
misc: Any = ...
|
||||
config_file: Any = ...
|
||||
_LOGLEVELS: Any = ...
|
||||
parser: Any = ...
|
||||
def __init__(self, fname: Optional[Any] = ...) -> None: ...
|
||||
def parse_config(self, args: Optional[Any] = ...) -> None: ...
|
||||
rcfile: Any = ...
|
||||
def _parse_config(self, args: Optional[Any] = ...) -> None: ...
|
||||
def _is_addons_path(self, path: Any): ...
|
||||
def _check_addons_path(self, option: Any, opt: Any, value: Any, parser: Any) -> None: ...
|
||||
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: Any, default: Optional[Any] = ...): ...
|
||||
def pop(self, key: Any, default: Optional[Any] = ...): ...
|
||||
def get_misc(self, sect: Any, key: Any, default: Optional[Any] = ...): ...
|
||||
def __setitem__(self, key: Any, value: Any) -> None: ...
|
||||
def __getitem__(self, key: Any): ...
|
||||
def get(self, key, default: Any | None = ...): ...
|
||||
def pop(self, key, default: Any | None = ...): ...
|
||||
def get_misc(self, sect, key, default: Any | None = ...): ...
|
||||
def __setitem__(self, key, value) -> None: ...
|
||||
def __getitem__(self, key): ...
|
||||
@property
|
||||
def addons_data_dir(self): ...
|
||||
@property
|
||||
def session_dir(self): ...
|
||||
def filestore(self, dbname: Any): ...
|
||||
def set_admin_password(self, new_password: Any) -> None: ...
|
||||
def verify_admin_password(self, password: Any): ...
|
||||
def filestore(self, dbname): ...
|
||||
|
||||
config: Any
|
||||
|
||||
@@ -1,58 +1,61 @@
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
_logger: Any
|
||||
safe_eval: Any
|
||||
|
||||
class ParseError(Exception):
|
||||
msg: Any = ...
|
||||
text: Any = ...
|
||||
filename: Any = ...
|
||||
lineno: Any = ...
|
||||
def __init__(self, msg: Any, text: Any, filename: Any, lineno: Any) -> None: ...
|
||||
msg: Any
|
||||
text: Any
|
||||
filename: Any
|
||||
lineno: Any
|
||||
def __init__(self, msg, text, filename, lineno) -> None: ...
|
||||
def __str__(self): ...
|
||||
|
||||
class RecordDictWrapper(dict):
|
||||
record: Any = ...
|
||||
def __init__(self, record: Any) -> None: ...
|
||||
def __getitem__(self, key: Any): ...
|
||||
record: Any
|
||||
def __init__(self, record) -> None: ...
|
||||
def __getitem__(self, key): ...
|
||||
|
||||
def _get_idref(self, env: Any, model_str: Any, idref: Any): ...
|
||||
def _fix_multiple_roots(node: Any) -> None: ...
|
||||
def _eval_xml(self, node: Any, env: Any): ...
|
||||
def str2bool(value: Any): ...
|
||||
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:
|
||||
@staticmethod
|
||||
def nodeattr2bool(node: Any, attr: Any, default: bool = ...): ...
|
||||
def isnoupdate(self, data_node: Optional[Any] = ...): ...
|
||||
def get_context(self, data_node: Any, node: Any, eval_dict: Any): ...
|
||||
def get_uid(self, data_node: Any, node: Any): ...
|
||||
def _test_xml_id(self, xml_id: Any) -> None: ...
|
||||
def _tag_delete(self, rec: Any, data_node: Optional[Any] = ..., mode: Optional[Any] = ...) -> None: ...
|
||||
def _tag_report(self, rec: Any, data_node: Optional[Any] = ..., mode: Optional[Any] = ...): ...
|
||||
def _tag_function(self, rec: Any, data_node: Optional[Any] = ..., mode: Optional[Any] = ...) -> None: ...
|
||||
def _tag_act_window(self, rec: Any, data_node: Optional[Any] = ..., mode: Optional[Any] = ...) -> None: ...
|
||||
def _tag_menuitem(self, rec: Any, data_node: Optional[Any] = ..., mode: Optional[Any] = ...): ...
|
||||
def _assert_equals(self, f1: Any, f2: Any, prec: int = ...): ...
|
||||
def _tag_assert(self, rec: Any, data_node: Optional[Any] = ..., mode: Optional[Any] = ...) -> None: ...
|
||||
def _tag_record(self, rec: Any, data_node: Optional[Any] = ..., mode: Optional[Any] = ...): ...
|
||||
def _tag_template(self, el: Any, data_node: Optional[Any] = ..., mode: Optional[Any] = ...): ...
|
||||
def id_get(self, id_str: Any, raise_if_not_found: bool = ...): ...
|
||||
def model_id_get(self, id_str: Any, raise_if_not_found: bool = ...): ...
|
||||
def parse(self, de: Any, mode: Optional[Any] = ...): ...
|
||||
mode: Any = ...
|
||||
module: Any = ...
|
||||
env: Any = ...
|
||||
cr: Any = ...
|
||||
uid: Any = ...
|
||||
idref: Any = ...
|
||||
assertion_report: Any = ...
|
||||
noupdate: Any = ...
|
||||
xml_filename: Any = ...
|
||||
_tags: Any = ...
|
||||
def __init__(self, cr: Any, module: Any, idref: Any, mode: Any, report: Optional[Any] = ..., noupdate: bool = ..., xml_filename: Optional[Any] = ...) -> None: ...
|
||||
def nodeattr2bool(node, attr, default: bool = ...): ...
|
||||
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 = ...): ...
|
||||
mode: Any
|
||||
module: Any
|
||||
env: Any
|
||||
cr: Any
|
||||
uid: Any
|
||||
idref: Any
|
||||
assertion_report: Any
|
||||
noupdate: Any
|
||||
xml_filename: Any
|
||||
_tags: Any
|
||||
def __init__(self, cr, module, idref, mode, report: Any | None = ..., noupdate: bool = ..., xml_filename: Any | None = ...) -> None: ...
|
||||
|
||||
def convert_file(cr: Any, module: Any, filename: Any, idref: Any, mode: str = ..., noupdate: bool = ..., kind: Optional[Any] = ..., report: Optional[Any] = ..., pathname: Optional[Any] = ...) -> None: ...
|
||||
def convert_sql_import(cr: Any, fp: Any) -> None: ...
|
||||
def convert_csv_import(cr: Any, module: Any, fname: Any, csvcontent: Any, idref: Optional[Any] = ..., mode: str = ..., noupdate: bool = ...) -> None: ...
|
||||
def convert_xml_import(cr: Any, module: Any, xmlfile: Any, idref: Optional[Any] = ..., mode: str = ..., noupdate: bool = ..., report: Optional[Any] = ...): ...
|
||||
def convert_file(cr, module, filename, idref, mode: str = ..., noupdate: bool = ..., kind: Any | None = ..., report: Any | None = ..., pathname: Any | None = ...) -> None: ...
|
||||
def convert_sql_import(cr, fp) -> None: ...
|
||||
def convert_csv_import(cr, module, fname, csvcontent, idref: Any | None = ..., mode: str = ..., noupdate: bool = ...) -> None: ...
|
||||
def convert_xml_import(cr, module, xmlfile, idref: Any | None = ..., mode: str = ..., noupdate: bool = ..., report: Any | None = ...): ...
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
from typing import Any
|
||||
|
||||
def get_month(date: Any): ...
|
||||
def get_quarter_number(date: Any): ...
|
||||
def get_quarter(date: Any): ...
|
||||
def get_fiscal_year(date: Any, day: int = ..., month: int = ...): ...
|
||||
def start_of(value: Any, granularity: Any): ...
|
||||
def end_of(value: Any, granularity: Any): ...
|
||||
def add(value: Any, *args: Any, **kwargs: Any): ...
|
||||
def subtract(value: Any, *args: Any, **kwargs: Any): ...
|
||||
def json_default(obj: Any): ...
|
||||
def date_range(start: Any, end: Any, step: Any = ...): ...
|
||||
@@ -3,4 +3,4 @@ from typing import Any
|
||||
_logger: Any
|
||||
SUPPORTED_DEBUGGER: Any
|
||||
|
||||
def post_mortem(config: Any, info: Any) -> None: ...
|
||||
def post_mortem(config, info) -> None: ...
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
def round(f: Any): ...
|
||||
def _float_check_precision(precision_digits: Optional[Any] = ..., precision_rounding: Optional[Any] = ...): ...
|
||||
def float_round(value: Any, precision_digits: Optional[Any] = ..., precision_rounding: Optional[Any] = ..., rounding_method: str = ...): ...
|
||||
def float_is_zero(value: Any, precision_digits: Optional[Any] = ..., precision_rounding: Optional[Any] = ...): ...
|
||||
def float_compare(value1: Any, value2: Any, precision_digits: Optional[Any] = ..., precision_rounding: Optional[Any] = ...): ...
|
||||
def float_repr(value: Any, precision_digits: Any): ...
|
||||
def _float_check_precision(precision_digits: Any | None = ..., precision_rounding: Any | None = ...): ...
|
||||
def float_round(value, precision_digits: Any | None = ..., precision_rounding: Any | None = ..., rounding_method: str = ...): ...
|
||||
def float_is_zero(value, precision_digits: Any | None = ..., precision_rounding: Any | None = ...): ...
|
||||
def float_compare(value1, value2, precision_digits: Any | None = ..., precision_rounding: Any | None = ...): ...
|
||||
def float_repr(value, precision_digits): ...
|
||||
_float_repr = float_repr
|
||||
|
||||
def float_split_str(value: Any, precision_digits: Any): ...
|
||||
def float_split(value: Any, precision_digits: Any): ...
|
||||
class float_precision(float):
|
||||
__slots__: Any
|
||||
def __new__(cls, value, precision_digits): ...
|
||||
def float_repr(self): ...
|
||||
|
||||
@@ -1,21 +1,25 @@
|
||||
from typing import Any
|
||||
|
||||
__all__: Any
|
||||
|
||||
class lazy_property:
|
||||
fget: Any = ...
|
||||
def __init__(self, fget: Any) -> None: ...
|
||||
def __get__(self, obj: Any, cls: Any): ...
|
||||
fget: Any
|
||||
def __init__(self, fget) -> None: ...
|
||||
def __get__(self, obj, cls): ...
|
||||
@property
|
||||
def __doc__(self): ...
|
||||
@staticmethod
|
||||
def reset_all(obj: Any) -> None: ...
|
||||
def reset_all(obj) -> None: ...
|
||||
|
||||
class lazy_classproperty(lazy_property):
|
||||
def __get__(self, obj: Any, cls: Any): ...
|
||||
def __get__(self, obj, cls): ...
|
||||
|
||||
def conditional(condition: Any, decorator: Any): ...
|
||||
def conditional(condition, decorator): ...
|
||||
def synchronized(lock_attr: str = ...): ...
|
||||
def frame_codeinfo(fframe, back: int = ...): ...
|
||||
def compose(a, b): ...
|
||||
|
||||
class _ClassProperty(property):
|
||||
def __get__(self, cls: Any, owner: Any): ...
|
||||
def __get__(self, cls, owner): ...
|
||||
|
||||
def classproperty(func: Any): ...
|
||||
def classproperty(func): ...
|
||||
|
||||
@@ -1,54 +1,54 @@
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
class graph:
|
||||
nodes: Any = ...
|
||||
edges: Any = ...
|
||||
no_ancester: Any = ...
|
||||
transitions: Any = ...
|
||||
result: Any = ...
|
||||
def __init__(self, nodes: Any, transitions: Any, no_ancester: Optional[Any] = ...) -> None: ...
|
||||
edge_wt: Any = ...
|
||||
nodes: Any
|
||||
edges: Any
|
||||
no_ancester: Any
|
||||
transitions: Any
|
||||
result: Any
|
||||
def __init__(self, nodes, transitions, no_ancester: Any | None = ...) -> None: ...
|
||||
edge_wt: Any
|
||||
def init_rank(self) -> None: ...
|
||||
reachable_nodes: Any = ...
|
||||
tree_edges: Any = ...
|
||||
reachable_nodes: Any
|
||||
tree_edges: Any
|
||||
def tight_tree(self): ...
|
||||
def reachable_node(self, node: Any) -> None: ...
|
||||
cut_edges: Any = ...
|
||||
head_nodes: Any = ...
|
||||
def reachable_node(self, node) -> None: ...
|
||||
cut_edges: Any
|
||||
head_nodes: Any
|
||||
def init_cutvalues(self) -> None: ...
|
||||
def head_component(self, node: Any, rest_edges: Any) -> None: ...
|
||||
def process_ranking(self, node: Any, level: int = ...) -> None: ...
|
||||
def make_acyclic(self, parent: Any, node: Any, level: Any, tree: Any): ...
|
||||
def rev_edges(self, tree: Any): ...
|
||||
def exchange(self, e: Any, f: Any) -> None: ...
|
||||
def enter_edge(self, edge: Any): ...
|
||||
def head_component(self, node, rest_edges) -> None: ...
|
||||
def process_ranking(self, node, level: int = ...) -> None: ...
|
||||
def make_acyclic(self, parent, node, level, tree): ...
|
||||
def rev_edges(self, tree): ...
|
||||
def exchange(self, e, f) -> None: ...
|
||||
def enter_edge(self, edge): ...
|
||||
def leave_edge(self): ...
|
||||
def finalize_rank(self, node: Any, level: Any) -> None: ...
|
||||
def normalize(self) -> None: ...
|
||||
def finalize_rank(self, node, level) -> None: ...
|
||||
def normalize(self): ...
|
||||
def make_chain(self) -> None: ...
|
||||
def init_order(self, node: Any, level: Any) -> None: ...
|
||||
def init_order(self, node, level) -> None: ...
|
||||
def order_heuristic(self) -> None: ...
|
||||
def wmedian(self) -> None: ...
|
||||
def median_value(self, node: Any, adj_rank: Any): ...
|
||||
def adj_position(self, node: Any, adj_rank: Any): ...
|
||||
levels: Any = ...
|
||||
def median_value(self, node, adj_rank): ...
|
||||
def adj_position(self, node, adj_rank): ...
|
||||
levels: Any
|
||||
def preprocess_order(self) -> None: ...
|
||||
def graph_order(self) -> None: ...
|
||||
def tree_order(self, node: Any, last: int = ...): ...
|
||||
max_order: Any = ...
|
||||
def process_order(self) -> None: ...
|
||||
partial_order: Any = ...
|
||||
def graph_order(self): ...
|
||||
def tree_order(self, node, last: int = ...): ...
|
||||
max_order: Any
|
||||
def process_order(self): ...
|
||||
partial_order: Any
|
||||
def find_starts(self) -> None: ...
|
||||
critical_edges: Any = ...
|
||||
links: Any = ...
|
||||
Is_Cyclic: bool = ...
|
||||
critical_edges: Any
|
||||
links: Any
|
||||
Is_Cyclic: bool
|
||||
def rank(self) -> None: ...
|
||||
order: Any = ...
|
||||
order: Any
|
||||
def order_in_rank(self): ...
|
||||
start_nodes: Any = ...
|
||||
tree_list: Any = ...
|
||||
start: Any = ...
|
||||
def process(self, starting_node: Any) -> None: ...
|
||||
start_nodes: Any
|
||||
tree_list: Any
|
||||
start: Any
|
||||
def process(self, starting_node) -> None: ...
|
||||
def __str__(self): ...
|
||||
def scale(self, maxx: Any, maxy: Any, nwidth: int = ..., nheight: int = ..., margin: int = ...) -> None: ...
|
||||
def scale(self, maxx, maxy, nwidth: int = ..., nheight: int = ..., margin: int = ...) -> None: ...
|
||||
def result_get(self): ...
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
def image_resize_image(base64_source: Any, size: Any = ..., encoding: str = ..., filetype: Optional[Any] = ..., avoid_if_small: bool = ...): ...
|
||||
def image_resize_and_sharpen(image: Any, size: Any, preserve_aspect_ratio: bool = ..., factor: float = ...): ...
|
||||
def image_save_for_web(image: Any, fp: Optional[Any] = ..., format: Optional[Any] = ...): ...
|
||||
def image_resize_image_big(base64_source: Any, size: Any = ..., encoding: str = ..., filetype: Optional[Any] = ..., avoid_if_small: bool = ...): ...
|
||||
def image_resize_image_medium(base64_source: Any, size: Any = ..., encoding: str = ..., filetype: Optional[Any] = ..., avoid_if_small: bool = ...): ...
|
||||
def image_resize_image_small(base64_source: Any, size: Any = ..., encoding: str = ..., filetype: Optional[Any] = ..., avoid_if_small: bool = ...): ...
|
||||
def crop_image(data: Any, type: str = ..., ratio: bool = ..., size: Optional[Any] = ..., image_format: Optional[Any] = ...): ...
|
||||
def image_colorize(original: Any, randomize: bool = ..., color: Any = ...): ...
|
||||
def image_get_resized_images(base64_source: Any, return_big: bool = ..., return_medium: bool = ..., return_small: bool = ..., big_name: str = ..., medium_name: str = ..., small_name: str = ..., avoid_resize_big: bool = ..., avoid_resize_medium: bool = ..., avoid_resize_small: bool = ...): ...
|
||||
def image_resize_images(vals: Any, big_name: str = ..., medium_name: str = ..., small_name: str = ...) -> None: ...
|
||||
def image_resize_image(base64_source, size=..., encoding: str = ..., filetype: Any | None = ..., avoid_if_small: bool = ...): ...
|
||||
def image_resize_and_sharpen(image, size, preserve_aspect_ratio: bool = ..., factor: float = ...): ...
|
||||
def image_save_for_web(image, fp: Any | None = ..., format: Any | None = ...): ...
|
||||
def image_resize_image_big(base64_source, size=..., encoding: str = ..., filetype: Any | None = ..., avoid_if_small: bool = ...): ...
|
||||
def image_resize_image_medium(base64_source, size=..., encoding: str = ..., filetype: Any | None = ..., avoid_if_small: bool = ...): ...
|
||||
def image_resize_image_small(base64_source, size=..., encoding: str = ..., filetype: Any | None = ..., avoid_if_small: bool = ...): ...
|
||||
def crop_image(data, type: str = ..., ratio: bool = ..., thumbnail_ratio: Any | None = ..., image_format: str = ...): ...
|
||||
def image_colorize(original, randomize: bool = ..., color=...): ...
|
||||
def image_get_resized_images(base64_source, return_big: bool = ..., return_medium: bool = ..., return_small: bool = ..., big_name: str = ..., medium_name: str = ..., small_name: str = ..., avoid_resize_big: bool = ..., avoid_resize_medium: bool = ..., avoid_resize_small: bool = ...): ...
|
||||
def image_resize_images(vals, big_name: str = ..., medium_name: str = ..., small_name: str = ...) -> None: ...
|
||||
|
||||
31
odoo-stubs/tools/import_email.pyi
Normal file
31
odoo-stubs/tools/import_email.pyi
Normal file
@@ -0,0 +1,31 @@
|
||||
from typing import Any
|
||||
|
||||
warn_msg: Any
|
||||
|
||||
class EmailParser:
|
||||
headers: Any
|
||||
dispatcher: Any
|
||||
def __init__(self, headers, dispatcher) -> None: ...
|
||||
def parse(self, msg) -> None: ...
|
||||
|
||||
class CommandDispatcher:
|
||||
receiver: Any
|
||||
def __init__(self, receiver) -> None: ...
|
||||
def __call__(self, request): ...
|
||||
|
||||
class RPCProxy:
|
||||
rpc: Any
|
||||
user_id: Any
|
||||
passwd: Any
|
||||
def __init__(self, uid, passwd, host: str = ..., port: int = ..., path: str = ...) -> None: ...
|
||||
def __call__(self, request): ...
|
||||
|
||||
class ReceiverEmail2Event:
|
||||
email_re: Any
|
||||
project_re: Any
|
||||
rpc: Any
|
||||
def __init__(self, rpc) -> None: ...
|
||||
def get_addresses(self, headers, msg): ...
|
||||
def get_partners(self, headers, msg): ...
|
||||
def __call__(self, request) -> None: ...
|
||||
def save_mail(self, msg, subject, partners) -> None: ...
|
||||
@@ -1,30 +1,31 @@
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
__all__: Any
|
||||
|
||||
class LRUNode:
|
||||
__slots__: Any = ...
|
||||
prev: Any = ...
|
||||
me: Any = ...
|
||||
next: Any = ...
|
||||
def __init__(self, prev: Any, me: Any) -> None: ...
|
||||
__slots__: Any
|
||||
prev: Any
|
||||
me: Any
|
||||
next: Any
|
||||
def __init__(self, prev, me) -> None: ...
|
||||
|
||||
class LRU:
|
||||
_lock: Any = ...
|
||||
count: Any = ...
|
||||
d: Any = ...
|
||||
first: Any = ...
|
||||
last: Any = ...
|
||||
def __init__(self, count: Any, pairs: Any = ...) -> None: ...
|
||||
def __contains__(self, obj: Any): ...
|
||||
def get(self, obj: Any, val: Optional[Any] = ...): ...
|
||||
def __getitem__(self, obj: Any): ...
|
||||
def __setitem__(self, obj: Any, val: Any) -> None: ...
|
||||
def __delitem__(self, obj: Any) -> None: ...
|
||||
def __iter__(self) -> Any: ...
|
||||
_lock: Any
|
||||
count: Any
|
||||
d: Any
|
||||
first: Any
|
||||
last: Any
|
||||
def __init__(self, count, pairs=...) -> None: ...
|
||||
def __contains__(self, obj): ...
|
||||
def get(self, obj, val: Any | None = ...): ...
|
||||
def __getitem__(self, obj): ...
|
||||
def __setitem__(self, obj, val) -> None: ...
|
||||
def __delitem__(self, obj) -> None: ...
|
||||
def __iter__(self): ...
|
||||
def __len__(self): ...
|
||||
def iteritems(self) -> None: ...
|
||||
items: Any = ...
|
||||
def iterkeys(self): ...
|
||||
def itervalues(self): ...
|
||||
def itervalues(self) -> None: ...
|
||||
def keys(self): ...
|
||||
def pop(self, key: Any): ...
|
||||
def pop(self, key): ...
|
||||
def clear(self) -> None: ...
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from lxml.html import clean
|
||||
from typing import Any, Optional
|
||||
import lxml.html.clean as clean
|
||||
from typing import Any
|
||||
|
||||
_logger: Any
|
||||
tags_to_kill: Any
|
||||
@@ -8,20 +8,21 @@ 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: Any) -> None: ...
|
||||
def tag_quote(self, el: Any): ...
|
||||
def strip_class(self, el: Any) -> None: ...
|
||||
def parse_style(self, el: Any) -> None: ...
|
||||
_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: Any, silent: bool = ..., sanitize_tags: bool = ..., sanitize_attributes: bool = ..., sanitize_style: bool = ..., strip_style: bool = ..., strip_classes: bool = ...): ...
|
||||
def html_keep_url(text: Any): ...
|
||||
def html2plaintext(html: Any, body_id: Optional[Any] = ..., encoding: str = ...): ...
|
||||
def plaintext2html(text: Any, container_tag: bool = ...): ...
|
||||
def append_content_to_html(html: Any, content: Any, plaintext: bool = ..., preserve: bool = ..., container_tag: bool = ...): ...
|
||||
def html_sanitize(src, silent: bool = ..., sanitize_tags: bool = ..., sanitize_attributes: bool = ..., sanitize_style: bool = ..., strip_style: bool = ..., strip_classes: bool = ...): ...
|
||||
def html_keep_url(text): ...
|
||||
def html2plaintext(html, body_id: Any | None = ..., encoding: str = ...): ...
|
||||
def plaintext2html(text, container_tag: bool = ...): ...
|
||||
def append_content_to_html(html, content, plaintext: bool = ..., preserve: bool = ..., container_tag: bool = ...): ...
|
||||
|
||||
email_re: Any
|
||||
single_email_re: Any
|
||||
@@ -29,13 +30,11 @@ command_re: Any
|
||||
reference_re: Any
|
||||
discussion_re: Any
|
||||
mail_header_msgid_re: Any
|
||||
email_addr_escapes_re: Any
|
||||
|
||||
def generate_tracking_message_id(res_id: Any): ...
|
||||
def email_send(email_from: Any, email_to: Any, subject: Any, body: Any, email_cc: Optional[Any] = ..., email_bcc: Optional[Any] = ..., reply_to: bool = ..., attachments: Optional[Any] = ..., message_id: Optional[Any] = ..., references: Optional[Any] = ..., openobject_id: bool = ..., debug: bool = ..., subtype: str = ..., headers: Optional[Any] = ..., smtp_server: Optional[Any] = ..., smtp_port: Optional[Any] = ..., ssl: bool = ..., smtp_user: Optional[Any] = ..., smtp_password: Optional[Any] = ..., cr: Optional[Any] = ..., uid: Optional[Any] = ...): ...
|
||||
def email_split(text: Any): ...
|
||||
def email_split_and_format(text: Any): ...
|
||||
def email_references(references: Any): ...
|
||||
def decode_smtp_header(smtp_header: Any): ...
|
||||
def decode_message_header(message: Any, header: Any, separator: str = ...): ...
|
||||
def formataddr(pair: Any, charset: str = ...): ...
|
||||
def generate_tracking_message_id(res_id): ...
|
||||
def email_send(email_from, email_to, subject, body, email_cc: Any | None = ..., email_bcc: Any | None = ..., reply_to: bool = ..., attachments: Any | None = ..., message_id: Any | None = ..., references: Any | None = ..., openobject_id: bool = ..., debug: bool = ..., subtype: str = ..., headers: Any | None = ..., smtp_server: Any | None = ..., smtp_port: Any | None = ..., ssl: bool = ..., smtp_user: Any | None = ..., smtp_password: Any | None = ..., cr: Any | None = ..., uid: Any | None = ...): ...
|
||||
def email_split(text): ...
|
||||
def email_split_and_format(text): ...
|
||||
def email_references(references): ...
|
||||
def decode_smtp_header(smtp_header): ...
|
||||
def decode_message_header(message, header, separator: str = ...): ...
|
||||
|
||||
@@ -1,8 +1,27 @@
|
||||
from collections import namedtuple
|
||||
from typing import Any
|
||||
from typing import Any, NamedTuple
|
||||
|
||||
_Entry = namedtuple('_Entry', ['mimetype', 'signatures', 'discriminants'])
|
||||
__all__: Any
|
||||
_logger: Any
|
||||
_ooxml_dirs: Any
|
||||
|
||||
def guess_mimetype(bin_data: Any, default: str = ...): ...
|
||||
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
|
||||
|
||||
@@ -1,171 +1,197 @@
|
||||
from .cache import *
|
||||
import pickle as pickle_
|
||||
from cache import *
|
||||
import threading
|
||||
import xlsxwriter
|
||||
import xlwt
|
||||
from collections import Mapping, MutableMapping, MutableSet, defaultdict
|
||||
from collections import Mapping, MutableSet, defaultdict
|
||||
from itertools import repeat as repeat
|
||||
from odoo.loglevels import exception_to_unicode as exception_to_unicode, get_encodings as get_encodings
|
||||
from typing import Any, Optional
|
||||
from threading import local
|
||||
from typing import Any
|
||||
|
||||
_logger: Any
|
||||
SKIPPED_ELEMENT_TYPES: Any
|
||||
|
||||
def find_in_path(name: Any): ...
|
||||
def _exec_pipe(prog: Any, args: Any, env: Optional[Any] = ...): ...
|
||||
def exec_command_pipe(name: Any, *args: Any): ...
|
||||
def find_pg_tool(name: 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: Any, *args: Any) -> None: ...
|
||||
def exec_pg_command_pipe(name: Any, *args: Any): ...
|
||||
def file_open(name: Any, mode: str = ..., subdir: str = ..., pathinfo: bool = ...): ...
|
||||
def _fileopen(path: Any, mode: Any, basedir: Any, pathinfo: Any, basename: Optional[Any] = ...): ...
|
||||
def flatten(list: Any): ...
|
||||
def reverse_enumerate(l: Any): ...
|
||||
def partition(pred: Any, elems: Any): ...
|
||||
def topological_sort(elems: Any): ...
|
||||
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): ...
|
||||
def topological_sort(elems): ...
|
||||
|
||||
class PatchedWorkbook(xlwt.Workbook):
|
||||
def add_sheet(self, name: Any, cell_overwrite_ok: bool = ...): ...
|
||||
def add_sheet(self, name, cell_overwrite_ok: bool = ...): ...
|
||||
|
||||
class PatchedXlsxWorkbook(xlsxwriter.Workbook):
|
||||
def add_worksheet(self, name: Optional[Any] = ..., **kw: Any): ...
|
||||
def add_worksheet(self, name: Any | None = ..., **kw): ...
|
||||
|
||||
def to_xml(s: Any): ...
|
||||
def get_iso_codes(lang: Any): ...
|
||||
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: ...
|
||||
def __getitem__(self, i): ...
|
||||
def copy(self): ...
|
||||
def iteritems(self): ...
|
||||
def iterkeys(self): ...
|
||||
def itervalues(self): ...
|
||||
def pop(self, k, d: Any | None = ...): ...
|
||||
def popitem(self): ...
|
||||
def setdefault(self, k, d: Any | None = ...): ...
|
||||
def update(self, E, **F): ...
|
||||
def values(self): ...
|
||||
def get(self, k, d: Any | None = ...): ...
|
||||
def has_key(self, k): ...
|
||||
def items(self): ...
|
||||
def __cmp__(self, y): ...
|
||||
def __contains__(self, k): ...
|
||||
def __delitem__(self, y): ...
|
||||
def __eq__(self, y): ...
|
||||
def __ge__(self, y): ...
|
||||
def __gt__(self, y): ...
|
||||
def __hash__(self): ...
|
||||
def __iter__(self): ...
|
||||
def __le__(self, y): ...
|
||||
def __len__(self): ...
|
||||
def __lt__(self, y): ...
|
||||
def __ne__(self, y): ...
|
||||
|
||||
def to_xml(s): ...
|
||||
def get_iso_codes(lang): ...
|
||||
def scan_languages(): ...
|
||||
def get_user_companies(cr: Any, user: Any): ...
|
||||
def mod10r(number: Any): ...
|
||||
def str2bool(s: Any, default: Optional[Any] = ...): ...
|
||||
def human_size(sz: Any): ...
|
||||
def logged(f: Any): ...
|
||||
def get_user_companies(cr, user): ...
|
||||
def mod10r(number): ...
|
||||
def str2bool(s, default: Any | None = ...): ...
|
||||
def human_size(sz): ...
|
||||
def logged(f): ...
|
||||
|
||||
class profile:
|
||||
fname: Any = ...
|
||||
def __init__(self, fname: Optional[Any] = ...) -> None: ...
|
||||
def __call__(self, f: Any): ...
|
||||
fname: Any
|
||||
def __init__(self, fname: Any | None = ...) -> None: ...
|
||||
def __call__(self, f): ...
|
||||
|
||||
def detect_ip_addr(): ...
|
||||
|
||||
DEFAULT_SERVER_DATE_FORMAT: str
|
||||
DEFAULT_SERVER_TIME_FORMAT: str
|
||||
DEFAULT_SERVER_DATETIME_FORMAT: Any
|
||||
DATE_LENGTH: Any
|
||||
DATETIME_FORMATS_MAP: Any
|
||||
POSIX_TO_LDML: Any
|
||||
|
||||
def posix_to_ldml(fmt: Any, locale: Any): ...
|
||||
def split_every(n: Any, iterable: Any, piece_maker: Any = ...) -> None: ...
|
||||
def get_and_group_by_field(cr: Any, uid: Any, obj: Any, ids: Any, field: Any, context: Optional[Any] = ...): ...
|
||||
def get_and_group_by_company(cr: Any, uid: Any, obj: Any, ids: Any, context: Optional[Any] = ...): ...
|
||||
def resolve_attr(obj: Any, attr: Any): ...
|
||||
def attrgetter(*items: Any): ...
|
||||
def posix_to_ldml(fmt, locale): ...
|
||||
def split_every(n, iterable, piece_maker=...) -> None: ...
|
||||
|
||||
class upload_data_thread(threading.Thread):
|
||||
args: Any
|
||||
def __init__(self, email, data, type) -> None: ...
|
||||
def run(self) -> None: ...
|
||||
|
||||
def upload_data(email, data, type: str = ...): ...
|
||||
def get_and_group_by_field(cr, uid, obj, ids, field, context: Any | None = ...): ...
|
||||
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 UnquoteEvalContext(defaultdict):
|
||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||
def __missing__(self, key: Any): ...
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
def __missing__(self, key): ...
|
||||
|
||||
class mute_logger:
|
||||
loggers: Any = ...
|
||||
def __init__(self, *loggers: Any) -> None: ...
|
||||
def filter(self, record: Any): ...
|
||||
loggers: Any
|
||||
def __init__(self, *loggers) -> None: ...
|
||||
def filter(self, record): ...
|
||||
def __enter__(self) -> None: ...
|
||||
def __exit__(self, exc_type: Optional[Any] = ..., exc_val: Optional[Any] = ..., exc_tb: Optional[Any] = ...) -> None: ...
|
||||
def __call__(self, func: Any): ...
|
||||
def __exit__(self, exc_type: Any | None = ..., exc_val: Any | None = ..., exc_tb: Any | None = ...) -> None: ...
|
||||
def __call__(self, func): ...
|
||||
|
||||
_ph: Any
|
||||
|
||||
class CountingStream:
|
||||
stream: Any = ...
|
||||
index: Any = ...
|
||||
stopped: bool = ...
|
||||
def __init__(self, stream: Any, start: int = ...) -> None: ...
|
||||
def __iter__(self) -> Any: ...
|
||||
stream: Any
|
||||
index: Any
|
||||
stopped: bool
|
||||
def __init__(self, stream, start: int = ...) -> None: ...
|
||||
def __iter__(self): ...
|
||||
def next(self): ...
|
||||
__next__: Any = ...
|
||||
|
||||
def stripped_sys_argv(*strip_args: Any): ...
|
||||
def stripped_sys_argv(*strip_args): ...
|
||||
|
||||
class ConstantMapping(Mapping):
|
||||
__slots__: Any = ...
|
||||
_value: Any = ...
|
||||
def __init__(self, val: Any) -> None: ...
|
||||
__slots__: Any
|
||||
_value: Any
|
||||
def __init__(self, val) -> None: ...
|
||||
def __len__(self): ...
|
||||
def __iter__(self) -> Any: ...
|
||||
def __getitem__(self, item: Any): ...
|
||||
def __iter__(self): ...
|
||||
def __getitem__(self, item): ...
|
||||
|
||||
def dumpstacks(sig: Optional[Any] = ..., frame: Optional[Any] = ...) -> None: ...
|
||||
def freehash(arg: Any): ...
|
||||
def dumpstacks(sig: Any | None = ..., frame: Any | None = ...) -> None: ...
|
||||
def freehash(arg): ...
|
||||
|
||||
class frozendict(dict):
|
||||
def __delitem__(self, key: Any) -> None: ...
|
||||
def __setitem__(self, key: Any, val: Any) -> None: ...
|
||||
def __delitem__(self, key) -> None: ...
|
||||
def __setitem__(self, key, val) -> None: ...
|
||||
def clear(self) -> None: ...
|
||||
def pop(self, key: Any, default: Optional[Any] = ...) -> None: ...
|
||||
def pop(self, key, default: Any | None = ...) -> None: ...
|
||||
def popitem(self) -> None: ...
|
||||
def setdefault(self, key: Any, default: Optional[Any] = ...) -> None: ...
|
||||
def update(self, *args: Any, **kwargs: Any) -> None: ...
|
||||
def __hash__(self) -> Any: ...
|
||||
def setdefault(self, key, default: Any | None = ...) -> None: ...
|
||||
def update(self, *args, **kwargs) -> None: ...
|
||||
def __hash__(self): ...
|
||||
|
||||
class Collector(Mapping):
|
||||
__slots__: Any = ...
|
||||
_map: Any = ...
|
||||
__slots__: Any
|
||||
_map: Any
|
||||
def __init__(self) -> None: ...
|
||||
def add(self, key: Any, val: Any) -> None: ...
|
||||
def __getitem__(self, key: Any): ...
|
||||
def __iter__(self) -> Any: ...
|
||||
def add(self, key, val) -> None: ...
|
||||
def __getitem__(self, key): ...
|
||||
def __iter__(self): ...
|
||||
def __len__(self): ...
|
||||
|
||||
class OrderedSet(MutableSet):
|
||||
__slots__: Any = ...
|
||||
_map: Any = ...
|
||||
def __init__(self, elems: Any = ...) -> None: ...
|
||||
def __contains__(self, elem: Any): ...
|
||||
def __iter__(self) -> Any: ...
|
||||
__slots__: Any
|
||||
_map: Any
|
||||
def __init__(self, elems=...) -> None: ...
|
||||
def __contains__(self, elem): ...
|
||||
def __iter__(self): ...
|
||||
def __len__(self): ...
|
||||
def add(self, elem: Any) -> None: ...
|
||||
def discard(self, elem: Any) -> None: ...
|
||||
def add(self, elem) -> None: ...
|
||||
def discard(self, elem) -> None: ...
|
||||
|
||||
class LastOrderedSet(OrderedSet):
|
||||
def add(self, elem: Any) -> None: ...
|
||||
def add(self, elem) -> None: ...
|
||||
|
||||
def unique(it: Any) -> None: ...
|
||||
|
||||
class Reverse:
|
||||
__slots__: Any = ...
|
||||
val: Any = ...
|
||||
def __init__(self, val: Any) -> None: ...
|
||||
def __eq__(self, other: Any) -> Any: ...
|
||||
def __ne__(self, other: Any) -> Any: ...
|
||||
def __ge__(self, other: Any) -> Any: ...
|
||||
def __gt__(self, other: Any) -> Any: ...
|
||||
def __le__(self, other: Any) -> Any: ...
|
||||
def __lt__(self, other: Any) -> Any: ...
|
||||
|
||||
def ignore(*exc: Any) -> None: ...
|
||||
def html_escape(text: Any): ...
|
||||
def formatLang(env: Any, value: Any, digits: Optional[Any] = ..., grouping: bool = ..., monetary: bool = ..., dp: bool = ..., currency_obj: bool = ...): ...
|
||||
def format_date(env: Any, value: Any, lang_code: bool = ..., date_format: bool = ...): ...
|
||||
def _consteq(str1: Any, str2: Any): ...
|
||||
def ignore(*exc) -> None: ...
|
||||
def html_escape(text): ...
|
||||
def formatLang(env, value, digits: Any | None = ..., grouping: bool = ..., monetary: bool = ..., dp: bool = ..., currency_obj: bool = ...): ...
|
||||
def _consteq(str1, str2): ...
|
||||
|
||||
consteq: Any
|
||||
|
||||
class Unpickler(pickle_.Unpickler):
|
||||
find_global: Any = ...
|
||||
find_class: Any = ...
|
||||
class Pickle:
|
||||
@classmethod
|
||||
def load(cls, stream, errors: bool = ...): ...
|
||||
@classmethod
|
||||
def loads(cls, text): ...
|
||||
dumps: Any
|
||||
dump: Any
|
||||
pickle = Pickle
|
||||
|
||||
def _pickle_load(stream: Any, encoding: str = ..., errors: bool = ...): ...
|
||||
|
||||
pickle: Any
|
||||
|
||||
def wrap_values(d: Any): ...
|
||||
|
||||
_missing: Any
|
||||
_cache: Any
|
||||
|
||||
def wrap_module(module: Any, attr_list: Any): ...
|
||||
|
||||
mods: Any
|
||||
attribs: Any
|
||||
def wrap_module(module, attr_list): ...
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
import ctypes
|
||||
import os
|
||||
from odoo.release import nt_service_name as nt_service_name
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
def listdir(dir: Any, recursive: bool = ...): ...
|
||||
def walksymlinks(top: Any, topdown: bool = ..., onerror: Optional[Any] = ...) -> None: ...
|
||||
def listdir(dir, recursive: bool = ...): ...
|
||||
def walksymlinks(top, topdown: bool = ..., onerror: Any | None = ...): ...
|
||||
def tempdir() -> None: ...
|
||||
def zip_dir(path: Any, stream: Any, include_dir: bool = ..., fnct_sort: Optional[Any] = ...) -> None: ...
|
||||
getppid = os.getppid
|
||||
def zip_dir(path, stream, include_dir: bool = ..., fnct_sort: Any | None = ...) -> None: ...
|
||||
|
||||
getppid: Any
|
||||
is_running_as_nt_service: Any
|
||||
_TH32CS_SNAPPROCESS: int
|
||||
|
||||
class _PROCESSENTRY32(ctypes.Structure):
|
||||
_fields_: Any = ...
|
||||
_fields_: Any
|
||||
|
||||
@@ -3,5 +3,5 @@ from typing import Any
|
||||
component_re: Any
|
||||
replace: Any
|
||||
|
||||
def _parse_version_parts(s: Any) -> None: ...
|
||||
def parse_version(s: Any): ...
|
||||
def _parse_version_parts(s) -> None: ...
|
||||
def parse_version(s): ...
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
from typing import Any
|
||||
|
||||
def merge_pdf(pdf_data: Any): ...
|
||||
10
odoo-stubs/tools/pdf_utils.pyi
Normal file
10
odoo-stubs/tools/pdf_utils.pyi
Normal file
@@ -0,0 +1,10 @@
|
||||
HEAD: str
|
||||
TAIL: str
|
||||
|
||||
def output_field(f): ...
|
||||
def extract_keys(lines): ...
|
||||
def write_field(out, key, value) -> None: ...
|
||||
def write_fields(out, fields) -> None: ...
|
||||
def extract_keys_from_pdf(filename): ...
|
||||
def fill_pdf(infile, outfile, fields) -> None: ...
|
||||
def testfill_pdf(infile, outfile) -> None: ...
|
||||
@@ -1,15 +0,0 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
_logger: Any
|
||||
|
||||
class _LogTracer:
|
||||
profiles: Any = ...
|
||||
whitelist: Any = ...
|
||||
blacklist: Any = ...
|
||||
files: Any = ...
|
||||
deep: Any = ...
|
||||
first_frame: Any = ...
|
||||
def __init__(self, whitelist: Optional[Any] = ..., blacklist: Optional[Any] = ..., files: Optional[Any] = ..., deep: bool = ...) -> None: ...
|
||||
def tracer(self, frame: Any, event: Any, arg: Any): ...
|
||||
|
||||
def profile(method: Optional[Any] = ..., whitelist: Optional[Any] = ..., blacklist: Any = ..., files: Optional[Any] = ..., minimum_time: int = ..., minimum_queries: int = ...): ...
|
||||
@@ -1,27 +0,0 @@
|
||||
from collections import namedtuple
|
||||
from typing import Any, Optional
|
||||
|
||||
PY2: Any
|
||||
|
||||
_Writer = namedtuple('_Writer', 'writerow writerows')
|
||||
unichr = chr
|
||||
text_type = str
|
||||
string_types: Any
|
||||
|
||||
def to_native(source: Any, encoding: str = ..., falsy_empty: bool = ...): ...
|
||||
|
||||
integer_types: Any
|
||||
imap = map
|
||||
izip = zip
|
||||
ifilter = filter
|
||||
|
||||
def implements_to_string(cls): ...
|
||||
def implements_iterator(cls): ...
|
||||
def reraise(tp: Any, value: Any, tb: Optional[Any] = ...) -> None: ...
|
||||
|
||||
_reader: Any
|
||||
_writer: Any
|
||||
|
||||
def csv_reader(stream: Any, **params: Any): ...
|
||||
def csv_writer(stream: Any, **params: Any): ...
|
||||
def to_text(source: Any): ...
|
||||
@@ -1,7 +1,23 @@
|
||||
from typing import Any, Optional
|
||||
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 test_expr(expr: Any, allowed_codes: Any, mode: str = ...): ...
|
||||
def const_eval(expr: Any): ...
|
||||
def safe_eval(expr: Any, globals_dict: Optional[Any] = ..., locals_dict: Optional[Any] = ..., mode: str = ..., nocopy: bool = ..., locals_builtins: bool = ...): ...
|
||||
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 = ..., locals_dict: Any | None = ..., mode: str = ..., nocopy: bool = ..., locals_builtins: bool = ...): ...
|
||||
def test_python_expr(expr, mode: str = ...): ...
|
||||
|
||||
@@ -1,29 +1,4 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
_schema: Any
|
||||
_CONFDELTYPES: Any
|
||||
|
||||
def existing_tables(cr: Any, tablenames: Any): ...
|
||||
def table_exists(cr: Any, tablename: Any): ...
|
||||
def table_kind(cr: Any, tablename: Any): ...
|
||||
def create_model_table(cr: Any, tablename: Any, comment: Optional[Any] = ...) -> None: ...
|
||||
def table_columns(cr: Any, tablename: Any): ...
|
||||
def column_exists(cr: Any, tablename: Any, columnname: Any): ...
|
||||
def create_column(cr: Any, tablename: Any, columnname: Any, columntype: Any, comment: Optional[Any] = ...) -> None: ...
|
||||
def rename_column(cr: Any, tablename: Any, columnname1: Any, columnname2: Any) -> None: ...
|
||||
def convert_column(cr: Any, tablename: Any, columnname: Any, columntype: Any) -> None: ...
|
||||
def set_not_null(cr: Any, tablename: Any, columnname: Any): ...
|
||||
def drop_not_null(cr: Any, tablename: Any, columnname: Any) -> None: ...
|
||||
def constraint_definition(cr: Any, constraintname: Any): ...
|
||||
def add_constraint(cr: Any, tablename: Any, constraintname: Any, definition: Any) -> None: ...
|
||||
def drop_constraint(cr: Any, tablename: Any, constraintname: Any) -> None: ...
|
||||
def add_foreign_key(cr: Any, tablename1: Any, columnname1: Any, tablename2: Any, columnname2: Any, ondelete: Any): ...
|
||||
def fix_foreign_key(cr: Any, tablename1: Any, columnname1: Any, tablename2: Any, columnname2: Any, ondelete: Any): ...
|
||||
def index_exists(cr: Any, indexname: Any): ...
|
||||
def create_index(cr: Any, indexname: Any, tablename: Any, expressions: Any) -> None: ...
|
||||
def create_unique_index(cr: Any, indexname: Any, tablename: Any, expressions: Any) -> None: ...
|
||||
def drop_index(cr: Any, indexname: Any, tablename: Any) -> None: ...
|
||||
def drop_view_if_exists(cr: Any, viewname: Any) -> None: ...
|
||||
def escape_psql(to_escape: Any): ...
|
||||
def drop_view_if_exists(cr, viewname) -> None: ...
|
||||
def escape_psql(to_escape): ...
|
||||
def pg_varchar(size: int = ...): ...
|
||||
def reverse_order(order: Any): ...
|
||||
def reverse_order(order): ...
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
from . import config as config
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
_logger: Any
|
||||
_test_logger: Any
|
||||
|
||||
def try_report(cr: Any, uid: Any, rname: Any, ids: Any, data: Optional[Any] = ..., context: Optional[Any] = ..., our_module: Optional[Any] = ..., report_type: Optional[Any] = ...): ...
|
||||
def try_report_action(cr: Any, uid: Any, action_id: Any, active_model: Optional[Any] = ..., active_ids: Optional[Any] = ..., wiz_data: Optional[Any] = ..., wiz_buttons: Optional[Any] = ..., context: Optional[Any] = ..., our_module: Optional[Any] = ...): ...
|
||||
def try_report(cr, uid, rname, ids, data: Any | None = ..., context: Any | None = ..., our_module: Any | None = ..., report_type: Any | None = ...): ...
|
||||
def try_report_action(cr, uid, action_id, active_model: Any | None = ..., active_ids: Any | None = ..., wiz_data: Any | None = ..., wiz_buttons: Any | None = ..., context: Any | None = ..., our_module: Any | None = ...): ...
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import csv
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
_logger: Any
|
||||
WEB_TRANSLATION_COMMENT: str
|
||||
@@ -8,68 +8,77 @@ _LOCALE2WIN32: Any
|
||||
ENGLISH_SMALL_WORDS: Any
|
||||
|
||||
class UNIX_LINE_TERMINATOR(csv.excel):
|
||||
lineterminator: str = ...
|
||||
lineterminator: str
|
||||
|
||||
def encode(s: Any): ...
|
||||
def encode(s): ...
|
||||
|
||||
TRANSLATED_ELEMENTS: Any
|
||||
TRANSLATED_ATTRS: Any
|
||||
avoid_pattern: Any
|
||||
node_pattern: Any
|
||||
|
||||
def translate_xml_node(node: Any, callback: Any, parse: Any, serialize: Any): ...
|
||||
def parse_xml(text: Any): ...
|
||||
def serialize_xml(node: Any): ...
|
||||
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: ...
|
||||
def all_todo(self): ...
|
||||
def get_todo(self): ...
|
||||
def flush(self) -> None: ...
|
||||
def done(self, text) -> None: ...
|
||||
def get_done(self): ...
|
||||
def process_text(self, text): ...
|
||||
def process_attr(self, attr): ...
|
||||
def process(self, node) -> None: ...
|
||||
def serialize(self, tag, attrib, content): ...
|
||||
|
||||
_HTML_PARSER: Any
|
||||
|
||||
def parse_html(text: Any): ...
|
||||
def serialize_html(node: Any): ...
|
||||
def xml_translate(callback: Any, value: Any): ...
|
||||
def html_translate(callback: Any, value: Any): ...
|
||||
def translate(cr: Any, name: Any, source_type: Any, lang: Any, source: Optional[Any] = ...): ...
|
||||
def xml_translate(callback, value): ...
|
||||
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: Any, allow_create: bool = ...): ...
|
||||
def _get_uid(self, frame: Any): ...
|
||||
def _get_lang(self, frame: Any): ...
|
||||
def __call__(self, source: Any): ...
|
||||
def _get_cr(self, frame, allow_create: bool = ...): ...
|
||||
def _get_uid(self, frame): ...
|
||||
def _get_lang(self, frame): ...
|
||||
def __call__(self, source): ...
|
||||
|
||||
_: Any
|
||||
|
||||
def quote(s: Any): ...
|
||||
def quote(s): ...
|
||||
|
||||
re_escaped_char: Any
|
||||
re_escaped_replacements: Any
|
||||
|
||||
def _sub_replacement(match_obj: Any): ...
|
||||
def unquote(str: Any): ...
|
||||
def _sub_replacement(match_obj): ...
|
||||
def unquote(str): ...
|
||||
|
||||
class PoFile:
|
||||
buffer: Any = ...
|
||||
def __init__(self, buffer: Any) -> None: ...
|
||||
lines: Any = ...
|
||||
lines_count: Any = ...
|
||||
first: bool = ...
|
||||
extra_lines: Any = ...
|
||||
def __iter__(self) -> Any: ...
|
||||
buffer: Any
|
||||
def __init__(self, buffer) -> None: ...
|
||||
lines: Any
|
||||
lines_count: Any
|
||||
first: bool
|
||||
extra_lines: Any
|
||||
def __iter__(self): ...
|
||||
def _get_lines(self): ...
|
||||
def cur_line(self): ...
|
||||
def next(self): ...
|
||||
__next__: Any = ...
|
||||
def write_infos(self, modules: Any) -> None: ...
|
||||
def write(self, modules: Any, tnrs: Any, source: Any, trad: Any, comments: Optional[Any] = ...) -> None: ...
|
||||
def write_infos(self, modules): ...
|
||||
def write(self, modules, tnrs, source, trad, comments: Any | None = ...) -> None: ...
|
||||
|
||||
def trans_export(lang: Any, modules: Any, buffer: Any, format: Any, cr: Any) -> None: ...
|
||||
def trans_parse_rml(de: Any): ...
|
||||
def _push(callback: Any, term: Any, source_line: Any) -> None: ...
|
||||
def in_modules(object_name: Any, modules: Any): ...
|
||||
def _extract_translatable_qweb_terms(element: Any, callback: Any) -> None: ...
|
||||
def babel_extract_qweb(fileobj: Any, keywords: Any, comment_tags: Any, options: Any): ...
|
||||
def trans_generate(lang: Any, modules: Any, cr: Any): ...
|
||||
def trans_load(cr: Any, filename: Any, lang: Any, verbose: bool = ..., module_name: Optional[Any] = ..., context: Optional[Any] = ...): ...
|
||||
def trans_load_data(cr: Any, fileobj: Any, fileformat: Any, lang: Any, lang_name: Optional[Any] = ..., verbose: bool = ..., module_name: Optional[Any] = ..., context: Optional[Any] = ...) -> None: ...
|
||||
def get_locales(lang: Optional[Any] = ...) -> None: ...
|
||||
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(cr, filename, lang, verbose: bool = ..., module_name: Any | None = ..., context: Any | None = ...): ...
|
||||
def trans_load_data(cr, fileobj, fileformat, lang, lang_name: Any | None = ..., verbose: bool = ..., module_name: Any | None = ..., context: Any | None = ...) -> None: ...
|
||||
def get_locales(lang: Any | None = ...) -> None: ...
|
||||
def resetlocale(): ...
|
||||
def load_language(cr: Any, lang: Any) -> None: ...
|
||||
def load_language(cr, lang) -> None: ...
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user