Remove BigInteger field

Closes #6792
This commit is contained in:
Cédric Krier
2023-02-21 00:25:05 +01:00
parent 039761e061
commit f912ec5b45
5 changed files with 6 additions and 19 deletions
+3 -2
View File
@@ -8,9 +8,10 @@ from trytond.pool import Pool
class IdentifierMixin:
__slots__ = ()
shopify_identifier_signed = fields.BigInteger(
shopify_identifier_signed = fields.Integer(
lazy_gettext('web_shop_shopify.msg_shopify_identifier'))
shopify_identifier = fields.Function(fields.BigInteger(
shopify_identifier_signed._sql_type = 'BIGINT'
shopify_identifier = fields.Function(fields.Integer(
lazy_gettext('web_shop_shopify.msg_shopify_identifier')),
'get_shopify_identifier', setter='set_shopify_identifier',
searcher='search_shopify_identifier')
+1
View File
@@ -1,3 +1,4 @@
* Remove BigInteger field
* Remove support for Python 3.7
* Add support for Python 3.11
* Add scroll time for calendar view
-7
View File
@@ -260,13 +260,6 @@ Integer
An :py:class:`integer <int>` field.
BigInteger
----------
.. class:: BigInteger(string[, \**options])
A long :py:class:`integer <int>` field.
Char
----
+2 -2
View File
@@ -11,7 +11,7 @@ from .field import (
get_eval_fields, on_change_result, states_validate)
from .float import Float
from .function import Function, MultiValue
from .integer import BigInteger, Integer
from .integer import Integer
from .many2many import Many2Many
from .many2one import Many2One
from .multiselection import MultiSelection
@@ -25,7 +25,7 @@ from .text import FullText, Text
__all__ = [
depends, SQL_OPERATORS, on_change_result,
get_eval_fields, states_validate, domain_validate, context_validate, Field,
Boolean, Integer, BigInteger, Char, Text, FullText, Float, Numeric, Date,
Boolean, Integer, Char, Text, FullText, Float, Numeric, Date,
Timestamp, DateTime, Time, TimeDelta, Binary, Selection, Reference,
Many2One, One2Many, Many2Many, Function, MultiValue, One2One, Dict,
MultiSelection]
-8
View File
@@ -10,11 +10,3 @@ class Integer(Field):
_type = 'integer'
_sql_type = 'INTEGER'
_py_type = int
class BigInteger(Integer):
'''
Define an integer field (``long``).
'''
_type = 'biginteger'
_sql_type = 'BIGINT'