mirror of
https://github.com/odoo-ide/odoo-stubs.git
synced 2025-05-08 16:52:26 +03:00
Update
This commit is contained in:
@@ -6,6 +6,8 @@ from collections import MutableMapping
|
||||
from typing import Any, Optional, List, Union, Sequence, Tuple, Dict, Generator
|
||||
|
||||
from . import api, fields
|
||||
from .api import Environment
|
||||
from .modules.registry import Registry
|
||||
|
||||
SearchDomain = List[Union[str, Sequence[str]]]
|
||||
RecordValue = Dict[str, Any]
|
||||
@@ -53,7 +55,9 @@ class BaseModel(MetaModel('DummyModel', (object,), {'_register': False})):
|
||||
_order: str
|
||||
_context: Dict
|
||||
_fields: Dict[str, fields.Field]
|
||||
env: api.Environment
|
||||
id: int
|
||||
env: Environment
|
||||
pool: Registry
|
||||
CONCURRENCY_CHECK_FIELD: str = ...
|
||||
def view_init(self, fields_list: Any) -> None: ...
|
||||
def compute_concurrency_field(self) -> None: ...
|
||||
@@ -88,7 +92,7 @@ class BaseModel(MetaModel('DummyModel', (object,), {'_register': False})):
|
||||
def check_access_rights(self, operation: Any, raise_exception: bool = ...): ...
|
||||
def check_access_rule(self, operation: Any) -> None: ...
|
||||
def unlink(self): ...
|
||||
def write(self, vals: Any): ...
|
||||
def write(self, vals: RecordValue): ...
|
||||
def create(self, vals_list: Union[RecordValue, List[RecordValue]]): ...
|
||||
def copy_data(self, default: Optional[Any] = ...): ...
|
||||
def copy_translations(old: Any, new: Any, excluded: Any = ...): ...
|
||||
|
||||
Reference in New Issue
Block a user