mirror of
https://github.com/odoo-ide/odoo-stubs.git
synced 2025-05-08 16:52:26 +03:00
Update stubs
This commit is contained in:
@@ -5,6 +5,7 @@ from odoo.tools import date_utils
|
||||
|
||||
DATE_LENGTH: Any
|
||||
DATETIME_LENGTH: Any
|
||||
NO_ACCESS: str
|
||||
IR_MODELS: Any
|
||||
_logger: Any
|
||||
_schema: Any
|
||||
@@ -41,8 +42,8 @@ class Field(MetaField('DummyField', (object,), {})):
|
||||
index: bool = ...
|
||||
manual: bool = ...
|
||||
copy: bool = ...
|
||||
depends: Any = ...
|
||||
depends_context: Any = ...
|
||||
_depends: Any = ...
|
||||
_depends_context: Any = ...
|
||||
recursive: bool = ...
|
||||
compute: Any = ...
|
||||
compute_sudo: bool = ...
|
||||
@@ -74,6 +75,8 @@ class Field(MetaField('DummyField', (object,), {})):
|
||||
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 = ...
|
||||
depends_context: Any = ...
|
||||
def _setup_regular_full(self, model: Any) -> None: ...
|
||||
def _setup_related_full(self, model: Any) -> None: ...
|
||||
def traverse_related(self, record: Any): ...
|
||||
@@ -297,10 +300,11 @@ _BINARY = memoryview
|
||||
class Binary(Field):
|
||||
type: str = ...
|
||||
prefetch: bool = ...
|
||||
depends_context: Any = ...
|
||||
_depends_context: Any = ...
|
||||
attachment: bool = ...
|
||||
@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] = ..., validate: bool = ...): ...
|
||||
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
|
||||
@@ -388,7 +392,7 @@ class Many2one(_Relational):
|
||||
def convert_to_display_name(self, value: Any, record: Any): ...
|
||||
def convert_to_onchange(self, value: Any, record: Any, names: Any): ...
|
||||
def write(self, records: Any, value: Any): ...
|
||||
def _remove_inverses(self, records: Any, value: Any) -> None: ...
|
||||
def _remove_inverses(self, records: Any, value: Any): ...
|
||||
def _update_inverses(self, records: Any, value: Any) -> None: ...
|
||||
|
||||
class Many2oneReference(Integer):
|
||||
@@ -426,6 +430,7 @@ class One2many(_RelationalMulti):
|
||||
_description_relation_field: Any = ...
|
||||
def update_db(self, model: Any, columns: Any) -> None: ...
|
||||
def get_domain_list(self, records: Any): ...
|
||||
# def __get__(self, records: Any, owner: Any): ...
|
||||
def read(self, records: Any): ...
|
||||
def write_real(self, records_commands_list: Any, create: bool = ...): ...
|
||||
def write_new(self, records_commands_list: Any): ...
|
||||
@@ -461,3 +466,4 @@ class Id(Field):
|
||||
|
||||
def prefetch_many2one_ids(record: Any, field: Any): ...
|
||||
def prefetch_x2many_ids(record: Any, field: Any): ...
|
||||
def apply_required(model: Any, field_name: Any) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user