Mathias Markl 7 years ago
parent
commit
17bc75eae6
  1. 10
      muk_fields_lobject/static/description/index.html

10
muk_fields_lobject/static/description/index.html

@ -59,14 +59,14 @@ from odoo.addons.muk_fields_lobject import fields as lobject_fields
class LargeObjectModel(models.Model): class LargeObjectModel(models.Model):
data_content = lobject_fields.LargeObject(string="Data")
data_content = lobject_fields.LargeObject(string="Data")
@api.multi
@api.multi
def data(self): def data(self):
for record in self: for record in self:
bytes = record.data_content
oid = record.with_context({'oid': True}).data_content
size = record.with_context({'bin_size': True}).data_content
bytes = record.data_content
oid = record.with_context({'oid': True}).data_content
size = record.with_context({'bin_size': True}).data_content
stream = record.with_context({'stream': True}).data_content stream = record.with_context({'stream': True}).data_content
</code> </code>
</pre> </pre>

Loading…
Cancel
Save