Remove biginteger widget from tryton and sao
Since 73fe133d7a2c trytond does not have anymore a biginteger type.
This commit is contained in:
1 parent
1882caa576
commit
030dce36ac
8 files changed
+2
-11
No files matched your search
@@ -1195,7 +1195,6 @@ class DictField(Field):
|
||||
TYPES = {
|
||||
'char': CharField,
|
||||
'integer': IntegerField,
|
||||
'biginteger': IntegerField,
|
||||
'float': FloatField,
|
||||
'numeric': NumericField,
|
||||
'many2one': M2OField,
|
||||
|
||||
@@ -162,7 +162,6 @@ class HContainer(_Container):
|
||||
class FormXMLViewParser(XMLViewParser):
|
||||
|
||||
WIDGETS = {
|
||||
'biginteger': Integer,
|
||||
'binary': Binary,
|
||||
'boolean': CheckBox,
|
||||
'callto': CallTo,
|
||||
|
||||
@@ -255,7 +255,6 @@ class AdaptModelGroup(GenericTreeModel):
|
||||
class TreeXMLViewParser(XMLViewParser):
|
||||
|
||||
WIDGETS = {
|
||||
'biginteger': Int,
|
||||
'binary': Binary,
|
||||
'boolean': Boolean,
|
||||
'callto': URL,
|
||||
@@ -397,7 +396,6 @@ class TreeXMLViewParser(XMLViewParser):
|
||||
def _set_column_width(self, column, attributes):
|
||||
default_width = {
|
||||
'integer': 80,
|
||||
'biginteger': 80,
|
||||
'selection': 90,
|
||||
'reference': 200,
|
||||
'one2many': 50,
|
||||
|
||||
@@ -205,7 +205,7 @@ class WinImport(WinCSV):
|
||||
for field, val in zip(fields, line):
|
||||
if locale_format and val:
|
||||
type_ = self.fields_data[field]['type']
|
||||
if type_ in ['integer', 'biginteger']:
|
||||
if type_ == 'integer':
|
||||
val = locale.atoi(val)
|
||||
elif type_ == 'float':
|
||||
val = locale.atof(val)
|
||||
|
||||
Reference in new issue
Block a user