← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 839198] Re: [6.0] wizard fields.binary no show size bytes & no receive attr filename

 

Hello Dhruti,

I guess, my partner didn't explain the problem very well. Let me try.

We're trying to use a osv.fields.binary on an osv.osv_memory wizard
field to load a very long string from a report generation.

To do so, we had to use the base64.encodestring() over the string and assign it as 
a default value (_defaults = {}) on the wizard's fields.binary(). When we do that, we get the result
shown on the Attachment 1

The fields.binary() shows some random characters (the encoded string, i
guess), and it should be showing us the file size.

But here's an interesting thing, when I clicked the "Ok" button (my
method had an error, so the wizard didn't disappear), the
fields.binary() shows the correct information.

I hope I explained it better.

Greets
Israel

** Attachment added: "Attachment 1"
   https://bugs.launchpad.net/openobject-server/+bug/839198/+attachment/2345758/+files/attachment_1.png

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/839198

Title:
  [6.0] wizard fields.binary no show size bytes & no receive attr
  filename

Status in OpenERP Server:
  Incomplete

Bug description:
  When a fields.binary is show since a wizard with osv.memory no show size bytes.
  Also, no receive "filename" attr

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/839198/+subscriptions


References