|
@ -37,7 +37,7 @@ class LargeObject(fields.Field): |
|
|
'context_dependent': True, |
|
|
'context_dependent': True, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
def convert_to_column(self, value, record, values=None): |
|
|
|
|
|
|
|
|
def convert_to_column(self, value, record, values=None, validate=True): |
|
|
oid = record.with_context({'oid': True})[self.name] |
|
|
oid = record.with_context({'oid': True})[self.name] |
|
|
if oid: |
|
|
if oid: |
|
|
record.env.cr._cnx.lobject(oid, 'rb').unlink() |
|
|
record.env.cr._cnx.lobject(oid, 'rb').unlink() |
|
|