From ebb71aab037ce82e712495aee664a649c6bae938 Mon Sep 17 00:00:00 2001 From: Trinh Anh Ngoc Date: Wed, 26 Mar 2025 16:33:33 +0700 Subject: [PATCH] Update stubs --- odoo-stubs/fields.pyi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/odoo-stubs/fields.pyi b/odoo-stubs/fields.pyi index 9eb4783..0242cab 100644 --- a/odoo-stubs/fields.pyi +++ b/odoo-stubs/fields.pyi @@ -235,10 +235,10 @@ class Date(Field[datetime.date]): type: str column_type: tuple[str, str] column_cast_from: tuple[str] - start_of = date_utils.start_of - end_of = date_utils.end_of - add = date_utils.add - subtract = date_utils.subtract + start_of = staticmethod(date_utils.start_of) + end_of = staticmethod(date_utils.end_of) + add = staticmethod(date_utils.add) + subtract = staticmethod(date_utils.subtract) @staticmethod def today(*args) -> datetime.date: ... @staticmethod @@ -259,10 +259,10 @@ class Datetime(Field[datetime.datetime]): type: str column_type: tuple[str, str] column_cast_from: tuple[str] - start_of = date_utils.start_of - end_of = date_utils.end_of - add = date_utils.add - subtract = date_utils.subtract + start_of = staticmethod(date_utils.start_of) + end_of = staticmethod(date_utils.end_of) + add = staticmethod(date_utils.add) + subtract = staticmethod(date_utils.subtract) @staticmethod def now(*args) -> datetime.datetime: ... @staticmethod