[REM] core: remove unused null method on Field class

This method was unused since 8bc7d8565c.

Part-of: odoo/odoo#111108
This commit is contained in:
Rémy Voet (ryv)
2023-02-17 12:07:06 +01:00
parent cf1a8f34b1
commit 22b0c88958
-7
View File
@@ -884,10 +884,6 @@ class Field(MetaField('DummyField', (object,), {})):
# Conversion of values
#
def null(self, record):
""" Return the null value for this field in the record format. """
return False
def convert_to_column(self, value, record, values=None, validate=True):
""" Convert ``value`` from the ``write`` format to the SQL format. """
if value is None or value is False:
@@ -2846,9 +2842,6 @@ class _Relational(Field):
return f"[('company_id', 'in', [{cid}, False])]"
return self.domain(env[self.model_name]) if callable(self.domain) else self.domain
def null(self, record):
return record.env[self.comodel_name]
class Many2one(_Relational):
""" The value of such a field is a recordset of size 0 (no