Update stubs

This commit is contained in:
Trinh Anh Ngoc
2020-05-31 11:00:34 +07:00
parent ee1758395f
commit 1de59c6d61

View File

@@ -59,9 +59,9 @@ class BaseModel(MetaModel('DummyModel', (object,), {'_register': False})):
_name: str = ...
_description: str = ...
_custom: bool = ...
_inherit: List[str]
_inherit: Any
_inherits: Dict[str, str]
_table: Any = ...
_table: str = ...
_sequence: Any = ...
_sql_constraints: list = ...
_rec_name: Any = ...
@@ -244,7 +244,7 @@ class BaseModel(MetaModel('DummyModel', (object,), {'_register': False})):
def ensure_one(self): ...
def with_env(self, env: Any) -> BaseModel: ...
def sudo(self, flag: bool = ...) -> BaseModel: ...
def with_user(self, user: Any): ...
def with_user(self, user: Any) -> BaseModel: ...
def with_context(self, *args: Any, **kwargs: Any) -> BaseModel: ...
def with_prefetch(self, prefetch_ids: Optional[Any] = ...) -> BaseModel: ...
def mapped(self, func: Any): ...