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:
@@ -1,3 +1,9 @@
|
||||
# Stubs for odoo.fields (Python 3)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from .sql_db import LazyCursor
|
||||
from .tools.mimetypes import guess_mimetype
|
||||
from typing import Any, Optional
|
||||
|
||||
DATE_LENGTH: Any
|
||||
@@ -15,7 +21,7 @@ class MetaField(type):
|
||||
def __new__(meta: Any, name: Any, bases: Any, attrs: Any): ...
|
||||
def __init__(cls, name: Any, bases: Any, attrs: Any) -> None: ...
|
||||
|
||||
class Field(MetaField('DummyField', (object,), {})):
|
||||
class Field:
|
||||
type: Any = ...
|
||||
relational: bool = ...
|
||||
translate: bool = ...
|
||||
@@ -54,7 +60,7 @@ class Field(MetaField('DummyField', (object,), {})):
|
||||
def read(self, records: Any): ...
|
||||
def create(self, record_values: Any) -> None: ...
|
||||
def write(self, records: Any, value: Any): ...
|
||||
# def __get__(self, record: Any, owner: Any): ...
|
||||
def __get__(self, record: Any, owner: Any): ...
|
||||
def __set__(self, record: Any, value: Any) -> None: ...
|
||||
def compute_value(self, records: Any) -> None: ...
|
||||
def determine_value(self, record: Any) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user