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:
@@ -228,13 +228,13 @@ class Date(Field):
|
||||
column_type: Any = ...
|
||||
column_cast_from: Any = ...
|
||||
@staticmethod
|
||||
def today(*args: Any) -> datetime.date: ...
|
||||
def today(*args: Any) -> str: ...
|
||||
@staticmethod
|
||||
def context_today(record: Any, timestamp: Optional[Any] = ...) -> datetime.date: ...
|
||||
def context_today(record: Any, timestamp: Optional[Any] = ...) -> str: ...
|
||||
@staticmethod
|
||||
def from_string(value: Any) -> datetime.date: ...
|
||||
@staticmethod
|
||||
def to_string(value: Any): ...
|
||||
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): ...
|
||||
@@ -244,7 +244,7 @@ class Datetime(Field):
|
||||
column_type: Any = ...
|
||||
column_cast_from: Any = ...
|
||||
@staticmethod
|
||||
def now(*args: Any) -> datetime.datetime: ...
|
||||
def now(*args: Any) -> str: ...
|
||||
@staticmethod
|
||||
def context_timestamp(record: Any, timestamp: Any) -> datetime.datetime: ...
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user