mirror of
https://github.com/odoo-ide/odoo-stubs.git
synced 2025-05-08 16:52:26 +03:00
isort + black
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
from . import api as api, fields as fields, models as models
|
||||
from typing import Any
|
||||
|
||||
from . import api as api
|
||||
from . import fields as fields
|
||||
from . import models as models
|
||||
from .modules.registry import Registry
|
||||
from .tools.translate import _ as _
|
||||
from typing import Any
|
||||
|
||||
evented: bool
|
||||
multi_process: bool
|
||||
|
||||
@@ -74,11 +74,13 @@ class Environment(Mapping):
|
||||
def __eq__(self, other) -> bool: ...
|
||||
def __ne__(self, other) -> bool: ...
|
||||
def __hash__(self) -> int: ...
|
||||
def __call__(self, cr: Cursor | None = ..., user: Any | None = ..., context: Any | None = ...) -> Environment: ...
|
||||
def __call__(
|
||||
self, cr: Cursor | None = ..., user: Any | None = ..., context: Any | None = ...
|
||||
) -> Environment: ...
|
||||
def ref(self, xml_id, raise_if_not_found: bool = ...): ...
|
||||
@property
|
||||
def user(self):
|
||||
return self['res.users']
|
||||
return self["res.users"]
|
||||
@property
|
||||
def lang(self): ...
|
||||
def _do_in_mode(self, mode) -> None: ...
|
||||
|
||||
@@ -10,6 +10,7 @@ class except_orm(Exception):
|
||||
|
||||
class UserError(except_orm):
|
||||
def __init__(self, msg) -> None: ...
|
||||
|
||||
Warning = UserError
|
||||
|
||||
class RedirectWarning(Exception):
|
||||
|
||||
@@ -3,8 +3,8 @@ from typing import Any, Generic, TypeVar, overload
|
||||
|
||||
from .models import BaseModel
|
||||
|
||||
_FieldT = TypeVar('_FieldT', bound=Field)
|
||||
_FieldValueT = TypeVar('_FieldValueT')
|
||||
_FieldT = TypeVar("_FieldT", bound=Field)
|
||||
_FieldValueT = TypeVar("_FieldValueT")
|
||||
|
||||
DATE_LENGTH: Any
|
||||
DATETIME_LENGTH: Any
|
||||
@@ -349,7 +349,9 @@ class _RelationalMulti(_Relational):
|
||||
class One2many(_RelationalMulti):
|
||||
type: str
|
||||
_slots: Any
|
||||
def __init__(self, comodel_name=..., inverse_name=..., string=..., **kwargs) -> None: ...
|
||||
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=...): ...
|
||||
@@ -360,7 +362,15 @@ class One2many(_RelationalMulti):
|
||||
class Many2many(_RelationalMulti):
|
||||
type: str
|
||||
_slots: Any
|
||||
def __init__(self, comodel_name=..., relation=..., column1=..., column2=..., string=..., **kwargs) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
comodel_name=...,
|
||||
relation=...,
|
||||
column1=...,
|
||||
column2=...,
|
||||
string=...,
|
||||
**kwargs
|
||||
) -> None: ...
|
||||
relation: Any
|
||||
column1: Any
|
||||
column2: Any
|
||||
|
||||
@@ -19,7 +19,13 @@ def replace_request_password(args): ...
|
||||
NO_POSTMORTEM: Any
|
||||
|
||||
def dispatch_rpc(service_name, method, params): ...
|
||||
def local_redirect(path, query: Any | None = ..., keep_hash: bool = ..., forward_debug: bool = ..., code: int = ...): ...
|
||||
def local_redirect(
|
||||
path,
|
||||
query: Any | None = ...,
|
||||
keep_hash: bool = ...,
|
||||
forward_debug: bool = ...,
|
||||
code: int = ...,
|
||||
): ...
|
||||
def redirect_with_hash(url, code: int = ...): ...
|
||||
|
||||
class WebRequest:
|
||||
@@ -89,7 +95,9 @@ class HttpRequest(WebRequest):
|
||||
def __init__(self, *args) -> None: ...
|
||||
def _handle_exception(self, exception): ...
|
||||
def dispatch(self): ...
|
||||
def make_response(self, data, headers: Any | None = ..., cookies: Any | None = ...): ...
|
||||
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 = ...): ...
|
||||
|
||||
@@ -129,7 +137,13 @@ class OpenERPSession(werkzeug.contrib.sessions.Session):
|
||||
uid: Any
|
||||
login: Any
|
||||
session_token: Any
|
||||
def authenticate(self, db, login: Any | None = ..., password: Any | None = ..., uid: Any | None = ...): ...
|
||||
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: ...
|
||||
@@ -149,7 +163,12 @@ class Response(werkzeug.wrappers.Response):
|
||||
template: Any
|
||||
qcontext: Any
|
||||
uid: Any
|
||||
def set_default(self, template: Any | None = ..., qcontext: Any | None = ..., uid: Any | None = ...) -> None: ...
|
||||
def set_default(
|
||||
self,
|
||||
template: Any | None = ...,
|
||||
qcontext: Any | None = ...,
|
||||
uid: Any | None = ...,
|
||||
) -> None: ...
|
||||
@property
|
||||
def is_qweb(self): ...
|
||||
def render(self): ...
|
||||
@@ -178,7 +197,16 @@ class Root:
|
||||
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 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):
|
||||
|
||||
@@ -6,7 +6,7 @@ from .api import Environment
|
||||
from .modules.registry import Registry
|
||||
from .sql_db import Cursor
|
||||
|
||||
_ModelT = TypeVar('_ModelT', bound=BaseModel)
|
||||
_ModelT = TypeVar("_ModelT", bound=BaseModel)
|
||||
|
||||
_logger: Any
|
||||
_schema: Any
|
||||
@@ -80,9 +80,9 @@ class BaseModel:
|
||||
pool: Registry
|
||||
id = fields.Id()
|
||||
display_name = fields.Char()
|
||||
create_uid = fields.Many2one('res.users')
|
||||
create_uid = fields.Many2one("res.users")
|
||||
create_date = fields.Datetime()
|
||||
write_uid = fields.Many2one('res.users')
|
||||
write_uid = fields.Many2one("res.users")
|
||||
write_date = fields.Datetime()
|
||||
CONCURRENCY_CHECK_FIELD: str
|
||||
def view_init(self, fields_list) -> None: ...
|
||||
@@ -132,38 +132,101 @@ class BaseModel:
|
||||
def _get_default_graph_view(self): ...
|
||||
def _get_default_calendar_view(self): ...
|
||||
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 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: _ModelT, args, offset: int = ..., limit: Any | None = ..., order: Any | None = ..., count: bool = ...) -> _ModelT: ...
|
||||
def search(
|
||||
self: _ModelT,
|
||||
args,
|
||||
offset: int = ...,
|
||||
limit: Any | None = ...,
|
||||
order: Any | None = ...,
|
||||
count: bool = ...,
|
||||
) -> _ModelT: ...
|
||||
def _compute_display_name(self) -> None: ...
|
||||
def name_get(self): ...
|
||||
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 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, 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_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 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 _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 _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 _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: ...
|
||||
@@ -206,10 +269,27 @@ class BaseModel:
|
||||
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_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 _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: _ModelT, default: Any | None = ...) -> _ModelT: ...
|
||||
@@ -226,9 +306,18 @@ class BaseModel:
|
||||
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, commands, fields: Any | None = ...): ...
|
||||
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 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
|
||||
@@ -237,7 +326,9 @@ class BaseModel:
|
||||
def _revert_method(cls, name) -> None: ...
|
||||
@classmethod
|
||||
def _browse(cls, ids, env, prefetch: Any | None = ...): ...
|
||||
def browse(self: _ModelT, arg: Any | None = ..., prefetch: Any | None = ...) -> _ModelT: ...
|
||||
def browse(
|
||||
self: _ModelT, arg: Any | None = ..., prefetch: Any | None = ...
|
||||
) -> _ModelT: ...
|
||||
@property
|
||||
def ids(self) -> List[str]: ...
|
||||
_cr: Cursor
|
||||
@@ -255,7 +346,9 @@ class BaseModel:
|
||||
def mapped(self, func): ...
|
||||
def _mapped_cache(self, name_seq): ...
|
||||
def filtered(self: _ModelT, func) -> _ModelT: ...
|
||||
def sorted(self: _ModelT, key: Any | None = ..., reverse: bool = ...) -> _ModelT: ...
|
||||
def sorted(
|
||||
self: _ModelT, key: Any | None = ..., reverse: bool = ...
|
||||
) -> _ModelT: ...
|
||||
def update(self, values) -> None: ...
|
||||
def new(self: _ModelT, values=...) -> _ModelT: ...
|
||||
def _is_dirty(self): ...
|
||||
@@ -311,6 +404,7 @@ class RecordCache(MutableMapping):
|
||||
def __delitem__(self, field) -> None: ...
|
||||
def __iter__(self): ...
|
||||
def __len__(self): ...
|
||||
|
||||
AbstractModel = BaseModel
|
||||
|
||||
class Model(AbstractModel):
|
||||
|
||||
@@ -1,3 +1,21 @@
|
||||
from . import db as db, graph as graph, loading as loading, migration as migration, module as module, registry as registry
|
||||
from odoo.modules.loading import load_modules as load_modules, reset_modules_state as reset_modules_state
|
||||
from odoo.modules.module import adapt_version as adapt_version, get_module_path as get_module_path, get_module_resource as get_module_resource, get_modules as get_modules, get_modules_with_version as get_modules_with_version, get_resource_from_path as get_resource_from_path, get_resource_path as get_resource_path, initialize_sys_path as initialize_sys_path, load_information_from_description_file as load_information_from_description_file, load_openerp_module as load_openerp_module
|
||||
from odoo.modules.loading import load_modules as load_modules
|
||||
from odoo.modules.loading import reset_modules_state as reset_modules_state
|
||||
from odoo.modules.module import adapt_version as adapt_version
|
||||
from odoo.modules.module import get_module_path as get_module_path
|
||||
from odoo.modules.module import get_module_resource as get_module_resource
|
||||
from odoo.modules.module import get_modules as get_modules
|
||||
from odoo.modules.module import get_modules_with_version as get_modules_with_version
|
||||
from odoo.modules.module import get_resource_from_path as get_resource_from_path
|
||||
from odoo.modules.module import get_resource_path as get_resource_path
|
||||
from odoo.modules.module import initialize_sys_path as initialize_sys_path
|
||||
from odoo.modules.module import (
|
||||
load_information_from_description_file as load_information_from_description_file,
|
||||
)
|
||||
from odoo.modules.module import load_openerp_module as load_openerp_module
|
||||
|
||||
from . import db as db
|
||||
from . import graph as graph
|
||||
from . import loading as loading
|
||||
from . import migration as migration
|
||||
from . import module as module
|
||||
from . import registry as registry
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
from typing import Any
|
||||
from zipfile import ZIP_DEFLATED as ZIP_DEFLATED
|
||||
from zipfile import PyZipFile as PyZipFile
|
||||
|
||||
from cStringIO import StringIO as StringIO
|
||||
from odoo.tools.translate import _ as _
|
||||
from typing import Any
|
||||
from zipfile import PyZipFile as PyZipFile, ZIP_DEFLATED as ZIP_DEFLATED
|
||||
|
||||
_logger: Any
|
||||
|
||||
|
||||
@@ -3,8 +3,28 @@ from typing import Any
|
||||
_logger: Any
|
||||
_test_logger: Any
|
||||
|
||||
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 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 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,7 +1,9 @@
|
||||
from odoo import SUPERUSER_ID as SUPERUSER_ID, api as api
|
||||
from operator import itemgetter as itemgetter
|
||||
from typing import Any
|
||||
|
||||
from odoo import SUPERUSER_ID as SUPERUSER_ID
|
||||
from odoo import api as api
|
||||
|
||||
MANIFEST_NAMES: Any
|
||||
README: Any
|
||||
_logger: Any
|
||||
@@ -21,6 +23,7 @@ def initialize_sys_path() -> None: ...
|
||||
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): ...
|
||||
|
||||
@@ -12,7 +12,13 @@ class Registry(Mapping):
|
||||
def registries(cls): ...
|
||||
def __new__(cls, db_name): ...
|
||||
@classmethod
|
||||
def new(cls, db_name, force_demo: bool = ..., status: Any | None = ..., update_module: bool = ...): ...
|
||||
def new(
|
||||
cls,
|
||||
db_name,
|
||||
force_demo: bool = ...,
|
||||
status: Any | None = ...,
|
||||
update_module: bool = ...,
|
||||
): ...
|
||||
models: Any
|
||||
_sql_error: Any
|
||||
_init: bool
|
||||
@@ -66,9 +72,21 @@ class DummyRLock:
|
||||
|
||||
class RegistryManager:
|
||||
@classmethod
|
||||
def get(cls, db_name, force_demo: bool = ..., status: Any | None = ..., update_module: bool = ...): ...
|
||||
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 = ...): ...
|
||||
def new(
|
||||
cls,
|
||||
db_name,
|
||||
force_demo: bool = ...,
|
||||
status: Any | None = ...,
|
||||
update_module: bool = ...,
|
||||
): ...
|
||||
@classmethod
|
||||
def delete(cls, db_name): ...
|
||||
@classmethod
|
||||
|
||||
@@ -25,7 +25,9 @@ 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_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): ...
|
||||
|
||||
@@ -34,7 +36,9 @@ class ExtendedLeaf:
|
||||
leaf: Any
|
||||
model: Any
|
||||
_models: Any
|
||||
def __init__(self, leaf, model, join_context: Any | None = ..., internal: bool = ...) -> None: ...
|
||||
def __init__(
|
||||
self, leaf, model, join_context: Any | None = ..., internal: bool = ...
|
||||
) -> None: ...
|
||||
def __str__(self): ...
|
||||
def generate_alias(self): ...
|
||||
def add_join_context(self, model, lhs_col, table_col, link) -> None: ...
|
||||
@@ -48,7 +52,9 @@ class ExtendedLeaf:
|
||||
def is_leaf(self, internal: bool = ...): ...
|
||||
def normalize_leaf(self): ...
|
||||
|
||||
def create_substitution_leaf(leaf, new_elements, new_model: Any | None = ..., internal: bool = ...): ...
|
||||
def create_substitution_leaf(
|
||||
leaf, new_elements, new_model: Any | None = ..., internal: bool = ...
|
||||
): ...
|
||||
|
||||
class expression:
|
||||
_unaccent: Any
|
||||
|
||||
@@ -1,7 +1,14 @@
|
||||
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
|
||||
|
||||
from ..exceptions import except_orm as except_orm
|
||||
from ..models import LOG_ACCESS_COLUMNS as LOG_ACCESS_COLUMNS
|
||||
from ..models import MAGIC_COLUMNS as MAGIC_COLUMNS
|
||||
from ..models import AbstractModel as AbstractModel
|
||||
from ..models import BaseModel
|
||||
from ..models import MetaModel as MetaModel
|
||||
from ..models import Model as Model
|
||||
from ..models import TransientModel as TransientModel
|
||||
|
||||
browse_record_list = BaseModel
|
||||
|
||||
class browse_record:
|
||||
@@ -13,9 +20,13 @@ class browse_null:
|
||||
def __instancecheck__(self, inst): ...
|
||||
|
||||
def transfer_field_to_modifiers(field, modifiers) -> None: ...
|
||||
def transfer_node_to_modifiers(node, modifiers, context: Any | None = ..., in_tree_view: bool = ...) -> 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 setup_modifiers(
|
||||
node, field: Any | None = ..., context: Any | None = ..., in_tree_view: bool = ...
|
||||
) -> None: ...
|
||||
def test_modifiers(what, expected) -> None: ...
|
||||
def modifiers_tests() -> None: ...
|
||||
|
||||
@@ -8,9 +8,23 @@ class Query:
|
||||
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 __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, implicit: bool = ..., outer: bool = ..., extra: Any | None = ..., extra_params=...): ...
|
||||
def add_join(
|
||||
self,
|
||||
connection,
|
||||
implicit: bool = ...,
|
||||
outer: bool = ...,
|
||||
extra: Any | None = ...,
|
||||
extra_params=...,
|
||||
): ...
|
||||
def get_sql(self): ...
|
||||
def __str__(self): ...
|
||||
|
||||
@@ -1,4 +1,12 @@
|
||||
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
|
||||
|
||||
from . import custom as custom
|
||||
from . import int_to_text as int_to_text
|
||||
from . import interface as interface
|
||||
from . import print_fnc as print_fnc
|
||||
from . import print_xml as print_xml
|
||||
from . import printscreen as printscreen
|
||||
from . import render as render
|
||||
from . import report_sxw as report_sxw
|
||||
|
||||
def render_report(cr, uid, ids, name, data, context: Any | None = ...): ...
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
from typing import Any
|
||||
|
||||
from . import render
|
||||
from .interface import report_int
|
||||
from typing import Any
|
||||
|
||||
class external_pdf(render.render):
|
||||
pdf: Any
|
||||
@@ -10,7 +11,16 @@ class external_pdf(render.render):
|
||||
|
||||
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 _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): ...
|
||||
|
||||
@@ -25,11 +25,37 @@ class report_rml(report_int):
|
||||
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_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 = ...): ...
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
from . import ps_form as ps_form, ps_list as ps_list
|
||||
from . import ps_form as ps_form
|
||||
from . import ps_list as ps_list
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
from odoo.report.interface import report_int
|
||||
from typing import Any
|
||||
|
||||
from odoo.report.interface import report_int
|
||||
|
||||
class report_printscreen_list(report_int):
|
||||
def _parse_node(self, root_node): ...
|
||||
def _parse_string(self, view): ...
|
||||
title: Any
|
||||
def create(self, cr, uid, ids, datas, context: Any | None = ...): ...
|
||||
obj: Any
|
||||
def _create_table(self, uid, ids, fields, fields_order, results, context, title: str = ...): ...
|
||||
def _create_table(
|
||||
self, uid, ids, fields, fields_order, results, context, title: str = ...
|
||||
): ...
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
from odoo.report.interface import report_int
|
||||
from typing import Any
|
||||
|
||||
from odoo.report.interface import report_int
|
||||
|
||||
class report_printscreen_list(report_int):
|
||||
context: Any
|
||||
groupby: Any
|
||||
@@ -12,4 +13,6 @@ class report_printscreen_list(report_int):
|
||||
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 = ...): ...
|
||||
def _create_table(
|
||||
self, uid, ids, fields, fields_order, results, context, title: str = ...
|
||||
): ...
|
||||
|
||||
@@ -1,7 +1,14 @@
|
||||
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
|
||||
|
||||
from PIL import Image as Image
|
||||
|
||||
from .render import render as render
|
||||
from .rml import html2html as html2html
|
||||
from .rml import makohtml2html as makohtml2html
|
||||
from .rml import odt2odt as odt2odt
|
||||
from .rml import rml as rml
|
||||
from .rml import rml2html as rml2html
|
||||
from .rml import rml2txt as rml2txt
|
||||
from .simple import simple as simple
|
||||
|
||||
_logger: Any
|
||||
|
||||
@@ -1,40 +1,56 @@
|
||||
from . import render
|
||||
from typing import Any
|
||||
|
||||
from . import render
|
||||
|
||||
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 __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 __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 __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 __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 __init__(
|
||||
self, rml, localcontext: Any | None = ..., datas: Any | None = ...
|
||||
) -> None: ...
|
||||
def _render(self): ...
|
||||
|
||||
class makohtml2html(render.render):
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
from .trml2pdf import parseNode as parseNode, parseString as parseString
|
||||
from .trml2pdf import parseNode as parseNode
|
||||
from .trml2pdf import parseString as parseString
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
from typing import Any
|
||||
|
||||
from reportlab import platypus
|
||||
from reportlab.pdfgen import canvas
|
||||
from reportlab.platypus.doctemplate import ActionFlowable
|
||||
from typing import Any
|
||||
|
||||
_hush_pyflakes: Any
|
||||
_logger: Any
|
||||
@@ -44,7 +45,14 @@ class _rml_doc:
|
||||
images: Any
|
||||
path: Any
|
||||
title: Any
|
||||
def __init__(self, node, localcontext: Any | None = ..., images: Any | None = ..., path: str = ..., title: Any | None = ...) -> None: ...
|
||||
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): ...
|
||||
@@ -62,7 +70,16 @@ class _rml_canvas:
|
||||
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 __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: ...
|
||||
@@ -89,7 +106,15 @@ class _rml_draw:
|
||||
images: Any
|
||||
path: Any
|
||||
canvas_title: Any
|
||||
def __init__(self, localcontext, node, styles, images: Any | None = ..., path: str = ..., title: Any | None = ...) -> None: ...
|
||||
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):
|
||||
@@ -115,7 +140,15 @@ class _rml_flowable:
|
||||
path: Any
|
||||
title: Any
|
||||
canvas: Any
|
||||
def __init__(self, doc, localcontext, images: Any | None = ..., path: str = ..., title: Any | None = ..., canvas: Any | None = ...) -> None: ...
|
||||
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): ...
|
||||
@@ -145,9 +178,32 @@ class _rml_template:
|
||||
styles: Any
|
||||
doc: Any
|
||||
image: Any
|
||||
def __init__(self, localcontext, out, node, doc, images: Any | None = ..., path: str = ..., title: Any | None = ...): ...
|
||||
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 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: ...
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
from .rml2txt import parseNode as parseNode, parseString as parseString
|
||||
from .rml2txt import parseNode as parseNode
|
||||
from .rml2txt import parseString as parseString
|
||||
|
||||
@@ -101,7 +101,16 @@ class _rml_template:
|
||||
_tags: Any
|
||||
style: Any
|
||||
template: Any
|
||||
def __init__(self, localcontext, out, node, doc, images: Any | None = ..., path: str = ..., title: Any | None = ...) -> None: ...
|
||||
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: ...
|
||||
@@ -115,9 +124,30 @@ class _rml_doc:
|
||||
etree: Any
|
||||
filename: Any
|
||||
result: str
|
||||
def __init__(self, node, localcontext: Any | None = ..., images: Any | None = ..., path: str = ..., title: Any | None = ...) -> None: ...
|
||||
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 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: ...
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
from . import render
|
||||
from typing import Any
|
||||
|
||||
from . import render
|
||||
|
||||
class simple(render.render):
|
||||
result: Any
|
||||
def _render(self): ...
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
from typing import Any
|
||||
|
||||
from . import preprocess
|
||||
from .interface import report_rml
|
||||
from typing import Any
|
||||
|
||||
_logger: Any
|
||||
rml_parents: Any
|
||||
@@ -25,7 +26,9 @@ class rml_parse:
|
||||
default_lang: Any
|
||||
lang_dict_called: bool
|
||||
_transl_regex: Any
|
||||
def __init__(self, cr, uid, name, parents=..., tag=..., context: Any | None = ...) -> None: ...
|
||||
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
|
||||
@@ -36,20 +39,42 @@ class rml_parse:
|
||||
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 = ...): ...
|
||||
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 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: ...
|
||||
def set_context(
|
||||
self, objects, data, ids, report_type: Any | None = ...
|
||||
) -> None: ...
|
||||
|
||||
class report_sxw(report_rml, preprocess.report):
|
||||
name: Any
|
||||
@@ -57,14 +82,39 @@ class report_sxw(report_rml, preprocess.report):
|
||||
header: Any
|
||||
store: Any
|
||||
internal_header: bool
|
||||
def __init__(self, name, table, rml: bool = ..., parser=..., header: str = ..., store: bool = ..., register: bool = ...) -> None: ...
|
||||
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 = ...): ...
|
||||
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,15 +1,31 @@
|
||||
from functools import wraps as wraps
|
||||
from odoo.exceptions import UserError as UserError
|
||||
from typing import Any
|
||||
|
||||
from odoo.exceptions import UserError as UserError
|
||||
|
||||
_logger: Any
|
||||
|
||||
class DatabaseExists(Warning): ...
|
||||
|
||||
def check_super(passwd): ...
|
||||
def _initialize_db(id, db_name, demo, lang, user_password, login: str = ..., country_code: Any | None = ...) -> None: ...
|
||||
def _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_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): ...
|
||||
|
||||
@@ -6,7 +6,11 @@ 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 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,7 @@
|
||||
import werkzeug.serving
|
||||
from typing import Any
|
||||
|
||||
import werkzeug.serving
|
||||
|
||||
INOTIFY_LISTEN_EVENTS: Any
|
||||
_logger: Any
|
||||
SLEEP_INTERVAL: int
|
||||
@@ -17,7 +18,9 @@ class BaseWSGIServerNoBind(LoggingBaseWSGIServerMixIn, werkzeug.serving.BaseWSGI
|
||||
class RequestHandler(werkzeug.serving.WSGIRequestHandler):
|
||||
def setup(self) -> None: ...
|
||||
|
||||
class ThreadedWSGIServerReloadable(LoggingBaseWSGIServerMixIn, werkzeug.serving.ThreadedWSGIServer):
|
||||
class ThreadedWSGIServerReloadable(
|
||||
LoggingBaseWSGIServerMixIn, werkzeug.serving.ThreadedWSGIServer
|
||||
):
|
||||
def __init__(self, host, port, app) -> None: ...
|
||||
reload_socket: bool
|
||||
socket: Any
|
||||
|
||||
@@ -7,7 +7,9 @@ RPC_FAULT_CODE_WARNING: int
|
||||
RPC_FAULT_CODE_ACCESS_DENIED: int
|
||||
RPC_FAULT_CODE_ACCESS_ERROR: int
|
||||
|
||||
def xmlrpc_return(start_response, service, method, params, string_faultcode: bool = ...): ...
|
||||
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): ...
|
||||
|
||||
@@ -37,7 +37,9 @@ class Cursor:
|
||||
def dictfetchmany(self, size): ...
|
||||
def dictfetchall(self): ...
|
||||
def __del__(self) -> None: ...
|
||||
def execute(self, query, params: Any | None = ..., log_exceptions: Any | None = ...): ...
|
||||
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): ...
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import unittest
|
||||
import urllib2
|
||||
from typing import Any
|
||||
|
||||
import urllib2
|
||||
from odoo.api import Environment
|
||||
from odoo.modules.registry import Registry
|
||||
from odoo.sql_db import Cursor
|
||||
@@ -72,6 +72,14 @@ class HttpCase(TransactionCase):
|
||||
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 phantom_js(
|
||||
self,
|
||||
url_path,
|
||||
code,
|
||||
ready: str = ...,
|
||||
login: Any | None = ...,
|
||||
timeout: int = ...,
|
||||
**kw
|
||||
) -> None: ...
|
||||
|
||||
def can_import(module): ...
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
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 convert import *
|
||||
from debugger import *
|
||||
from float_utils import *
|
||||
from func import *
|
||||
from graph import graph as graph
|
||||
from image import *
|
||||
from mail import *
|
||||
from misc import *
|
||||
from pdf_utils import *
|
||||
from sql import *
|
||||
from translate import *
|
||||
from yaml_import import *
|
||||
|
||||
@@ -5,12 +5,42 @@ __version__: Any
|
||||
PY3: Any
|
||||
unicode = str
|
||||
|
||||
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 = ...): ...
|
||||
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
|
||||
@@ -18,7 +48,14 @@ class AppDirs:
|
||||
version: Any
|
||||
roaming: Any
|
||||
multipath: Any
|
||||
def __init__(self, appname, appauthor: Any | None = ..., version: Any | None = ..., roaming: bool = ..., multipath: bool = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
appname,
|
||||
appauthor: Any | None = ...,
|
||||
version: Any | None = ...,
|
||||
roaming: bool = ...,
|
||||
multipath: bool = ...,
|
||||
) -> None: ...
|
||||
@property
|
||||
def user_data_dir(self): ...
|
||||
@property
|
||||
@@ -35,6 +72,7 @@ class AppDirs:
|
||||
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
|
||||
|
||||
@@ -47,4 +47,5 @@ class dummy_cache:
|
||||
|
||||
def log_ormcache_stats(sig: Any | None = ..., frame: Any | None = ...) -> None: ...
|
||||
def get_cache_key_counter(bound_method, *args, **kwargs): ...
|
||||
|
||||
cache = ormcache
|
||||
|
||||
@@ -28,18 +28,34 @@ class xml_import:
|
||||
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 _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 _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_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 _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 = ...): ...
|
||||
@@ -53,9 +69,44 @@ class xml_import:
|
||||
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 __init__(
|
||||
self,
|
||||
cr,
|
||||
module,
|
||||
idref,
|
||||
mode,
|
||||
report: Any | None = ...,
|
||||
noupdate: bool = ...,
|
||||
xml_filename: Any | None = ...,
|
||||
) -> None: ...
|
||||
|
||||
def convert_file(cr, module, filename, idref, mode: str = ..., noupdate: bool = ..., kind: Any | None = ..., report: Any | None = ..., pathname: Any | None = ...) -> None: ...
|
||||
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 = ...): ...
|
||||
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,10 +1,25 @@
|
||||
from typing import 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_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
|
||||
|
||||
class float_precision(float):
|
||||
|
||||
@@ -50,5 +50,7 @@ class graph:
|
||||
start: Any
|
||||
def process(self, starting_node) -> None: ...
|
||||
def __str__(self): ...
|
||||
def scale(self, maxx, maxy, 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,57 @@
|
||||
from typing import Any
|
||||
|
||||
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_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_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: ...
|
||||
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: ...
|
||||
|
||||
@@ -17,7 +17,9 @@ class RPCProxy:
|
||||
rpc: Any
|
||||
user_id: Any
|
||||
passwd: Any
|
||||
def __init__(self, uid, passwd, host: str = ..., port: int = ..., path: str = ...) -> None: ...
|
||||
def __init__(
|
||||
self, uid, passwd, host: str = ..., port: int = ..., path: str = ...
|
||||
) -> None: ...
|
||||
def __call__(self, request): ...
|
||||
|
||||
class ReceiverEmail2Event:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import lxml.html.clean as clean
|
||||
from typing import Any
|
||||
|
||||
import lxml.html.clean as clean
|
||||
|
||||
_logger: Any
|
||||
tags_to_kill: Any
|
||||
tags_to_remove: Any
|
||||
@@ -18,11 +19,25 @@ class _Cleaner(clean.Cleaner):
|
||||
def parse_style(self, el) -> None: ...
|
||||
def allow_element(self, el): ...
|
||||
|
||||
def html_sanitize(src, silent: bool = ..., sanitize_tags: bool = ..., sanitize_attributes: bool = ..., sanitize_style: bool = ..., strip_style: bool = ..., strip_classes: bool = ...): ...
|
||||
def html_sanitize(
|
||||
src,
|
||||
silent: bool = ...,
|
||||
sanitize_tags: bool = ...,
|
||||
sanitize_attributes: bool = ...,
|
||||
sanitize_style: bool = ...,
|
||||
strip_style: bool = ...,
|
||||
strip_classes: bool = ...,
|
||||
): ...
|
||||
def html_keep_url(text): ...
|
||||
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 = ...): ...
|
||||
def append_content_to_html(
|
||||
html,
|
||||
content,
|
||||
plaintext: bool = ...,
|
||||
preserve: bool = ...,
|
||||
container_tag: bool = ...,
|
||||
): ...
|
||||
|
||||
email_re: Any
|
||||
single_email_re: Any
|
||||
@@ -32,7 +47,29 @@ discussion_re: Any
|
||||
mail_header_msgid_re: Any
|
||||
|
||||
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_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): ...
|
||||
|
||||
@@ -19,6 +19,7 @@ class _Entry(NamedTuple):
|
||||
mimetype: Any
|
||||
signatures: Any
|
||||
discriminants: Any
|
||||
|
||||
_mime_mappings: Any
|
||||
|
||||
def guess_mimetype(bin_data, default: str = ...): ...
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
from cache import *
|
||||
import threading
|
||||
import xlsxwriter
|
||||
import xlwt
|
||||
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 threading import local
|
||||
from typing import Any
|
||||
|
||||
import xlsxwriter
|
||||
import xlwt
|
||||
from cache import *
|
||||
from odoo.loglevels import exception_to_unicode as exception_to_unicode
|
||||
from odoo.loglevels import get_encodings as get_encodings
|
||||
|
||||
_logger: Any
|
||||
SKIPPED_ELEMENT_TYPES: Any
|
||||
|
||||
@@ -120,7 +122,12 @@ class mute_logger:
|
||||
def __init__(self, *loggers) -> None: ...
|
||||
def filter(self, record): ...
|
||||
def __enter__(self) -> None: ...
|
||||
def __exit__(self, exc_type: Any | None = ..., exc_val: Any | None = ..., exc_tb: Any | None = ...) -> None: ...
|
||||
def __exit__(
|
||||
self,
|
||||
exc_type: Any | None = ...,
|
||||
exc_val: Any | None = ...,
|
||||
exc_tb: Any | None = ...,
|
||||
) -> None: ...
|
||||
def __call__(self, func): ...
|
||||
|
||||
_ph: Any
|
||||
@@ -180,7 +187,15 @@ class LastOrderedSet(OrderedSet):
|
||||
|
||||
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 formatLang(
|
||||
env,
|
||||
value,
|
||||
digits: Any | None = ...,
|
||||
grouping: bool = ...,
|
||||
monetary: bool = ...,
|
||||
dp: bool = ...,
|
||||
currency_obj: bool = ...,
|
||||
): ...
|
||||
def _consteq(str1, str2): ...
|
||||
|
||||
consteq: Any
|
||||
@@ -192,6 +207,7 @@ class Pickle:
|
||||
def loads(cls, text): ...
|
||||
dumps: Any
|
||||
dump: Any
|
||||
|
||||
pickle = Pickle
|
||||
|
||||
def wrap_module(module, attr_list): ...
|
||||
|
||||
@@ -4,7 +4,9 @@ from typing import Any
|
||||
def listdir(dir, recursive: bool = ...): ...
|
||||
def walksymlinks(top, topdown: bool = ..., onerror: Any | None = ...): ...
|
||||
def tempdir() -> None: ...
|
||||
def zip_dir(path, stream, include_dir: bool = ..., fnct_sort: Any | None = ...) -> None: ...
|
||||
def zip_dir(
|
||||
path, stream, include_dir: bool = ..., fnct_sort: Any | None = ...
|
||||
) -> None: ...
|
||||
|
||||
getppid: Any
|
||||
is_running_as_nt_service: Any
|
||||
|
||||
@@ -15,9 +15,22 @@ 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 = ...): ...
|
||||
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 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 = ...): ...
|
||||
|
||||
@@ -3,5 +3,24 @@ from typing import Any
|
||||
_logger: Any
|
||||
_test_logger: 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 = ...): ...
|
||||
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 = ...,
|
||||
): ...
|
||||
|
||||
@@ -68,7 +68,9 @@ class PoFile:
|
||||
def cur_line(self): ...
|
||||
def next(self): ...
|
||||
def write_infos(self, modules): ...
|
||||
def write(self, modules, tnrs, source, trad, comments: Any | None = ...) -> None: ...
|
||||
def write(
|
||||
self, modules, tnrs, source, trad, comments: Any | None = ...
|
||||
) -> None: ...
|
||||
|
||||
def trans_export(lang, modules, buffer, format, cr) -> None: ...
|
||||
def trans_parse_rml(de): ...
|
||||
@@ -77,8 +79,24 @@ 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 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, lang) -> None: ...
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from os import R_OK as R_OK, W_OK as W_OK
|
||||
from os import R_OK as R_OK
|
||||
from os import W_OK as W_OK
|
||||
from os.path import dirname as dirname
|
||||
from typing import Any
|
||||
|
||||
@@ -8,5 +9,7 @@ windows: Any
|
||||
seen: Any
|
||||
defpathext: Any
|
||||
|
||||
def which_files(file, mode=..., path: Any | None = ..., pathext: Any | None = ...) -> None: ...
|
||||
def which_files(
|
||||
file, mode=..., path: Any | None = ..., pathext: Any | None = ...
|
||||
) -> None: ...
|
||||
def which(file, mode=..., path: Any | None = ..., pathext: Any | None = ...): ...
|
||||
|
||||
@@ -45,7 +45,17 @@ class YamlInterpreter:
|
||||
eval_context: Any
|
||||
env: Any
|
||||
sudo_env: Any
|
||||
def __init__(self, cr, module, id_map, mode, filename, report: Any | None = ..., noupdate: bool = ..., loglevel=...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
cr,
|
||||
module,
|
||||
id_map,
|
||||
mode,
|
||||
filename,
|
||||
report: Any | None = ...,
|
||||
noupdate: bool = ...,
|
||||
loglevel=...,
|
||||
) -> None: ...
|
||||
def _log(self, *args, **kwargs) -> None: ...
|
||||
def validate_xml_id(self, xml_id) -> None: ...
|
||||
def get_id(self, xml_id): ...
|
||||
@@ -61,10 +71,27 @@ class YamlInterpreter:
|
||||
def create_osv_memory_record(self, record, fields): ...
|
||||
def process_record(self, node) -> None: ...
|
||||
_dict: Any
|
||||
def _create_record(self, model, fields, view_info: Any | None = ..., parent=..., default: bool = ..., context: Any | None = ...): ...
|
||||
def _create_record(
|
||||
self,
|
||||
model,
|
||||
fields,
|
||||
view_info: Any | None = ...,
|
||||
parent=...,
|
||||
default: bool = ...,
|
||||
context: Any | None = ...,
|
||||
): ...
|
||||
def process_ref(self, node, field: Any | None = ...): ...
|
||||
def process_eval(self, node): ...
|
||||
def _eval_field(self, model, field_name, expression, view_info: bool = ..., parent=..., default: bool = ..., context: Any | None = ...): ...
|
||||
def _eval_field(
|
||||
self,
|
||||
model,
|
||||
field_name,
|
||||
expression,
|
||||
view_info: bool = ...,
|
||||
parent=...,
|
||||
default: bool = ...,
|
||||
context: Any | None = ...,
|
||||
): ...
|
||||
def process_context(self, node) -> None: ...
|
||||
def process_python(self, node) -> None: ...
|
||||
def process_workflow(self, node) -> None: ...
|
||||
@@ -82,5 +109,15 @@ class YamlInterpreter:
|
||||
def _process_node(self, node) -> None: ...
|
||||
def _log_node(self, node, is_preceded_by_comment): ...
|
||||
|
||||
def yaml_import(cr, module, yamlfile, kind, idref: Any | None = ..., mode: str = ..., noupdate: bool = ..., report: Any | None = ...) -> None: ...
|
||||
def yaml_import(
|
||||
cr,
|
||||
module,
|
||||
yamlfile,
|
||||
kind,
|
||||
idref: Any | None = ...,
|
||||
mode: str = ...,
|
||||
noupdate: bool = ...,
|
||||
report: Any | None = ...,
|
||||
) -> None: ...
|
||||
|
||||
convert_yaml_import = yaml_import
|
||||
|
||||
@@ -11,13 +11,17 @@ class Assert(YamlTag):
|
||||
id: Any
|
||||
severity: Any
|
||||
string: Any
|
||||
def __init__(self, model, id: Any | None = ..., severity=..., string: str = ..., **kwargs) -> None: ...
|
||||
def __init__(
|
||||
self, model, id: Any | None = ..., severity=..., string: str = ..., **kwargs
|
||||
) -> None: ...
|
||||
|
||||
class Record(YamlTag):
|
||||
model: Any
|
||||
id: Any
|
||||
view: Any
|
||||
def __init__(self, model, id, use: str = ..., view: bool = ..., **kwargs) -> None: ...
|
||||
def __init__(
|
||||
self, model, id, use: str = ..., view: bool = ..., **kwargs
|
||||
) -> None: ...
|
||||
def __str__(self): ...
|
||||
|
||||
class Python(YamlTag):
|
||||
|
||||
@@ -20,7 +20,12 @@ class WorkflowItem:
|
||||
def create(cls, session, record, activity, instance_id, stack) -> None: ...
|
||||
@classmethod
|
||||
def create_all(cls, session, record, activities, instance_id, stack) -> None: ...
|
||||
def process(self, signal: Any | None = ..., force_running: bool = ..., stack: Any | None = ...): ...
|
||||
def process(
|
||||
self,
|
||||
signal: Any | None = ...,
|
||||
force_running: bool = ...,
|
||||
stack: Any | None = ...,
|
||||
): ...
|
||||
def _execute(self, activity, stack): ...
|
||||
def _state_set(self, activity, state) -> None: ...
|
||||
def _split_test(self, split_mode, signal, stack): ...
|
||||
|
||||
Reference in New Issue
Block a user