openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #18937
[Bug 1086052] [NEW] osv memory wizard image widget not possible for defaults
Public bug reported:
I created an osv memory wizard to process Carrier shipments. In the
wizard I have defaults that are populated based on active_id passed in
the context upon initial loading of the wizard. This is on the picking.
It works very well.
I wanted to add an image on the wizard to show the shipment carriers
logo like FedEx UPS, USPS. When I add the widget="image" something funny
happens.
I added the binary field to the memory object columns. I put a default
that's value is populated from a function. The function uses context to
get its data. When the function is called to populate the image field
the function is called twice before the windows appears. First time the
context passed contains active_id. Second time it only passes user id
and language. The result is that it is not possible to have a default
image in a memory wizard because an exception occurs stating active_id
key is not found in dictionary.
I do not understand that when a regular field is populated on context it works, but when I put specifically an image widget it tries to do the function twice.
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1086052
Title:
osv memory wizard image widget not possible for defaults
Status in OpenERP Addons (modules):
New
Bug description:
I created an osv memory wizard to process Carrier shipments. In the
wizard I have defaults that are populated based on active_id passed in
the context upon initial loading of the wizard. This is on the
picking. It works very well.
I wanted to add an image on the wizard to show the shipment carriers
logo like FedEx UPS, USPS. When I add the widget="image" something
funny happens.
I added the binary field to the memory object columns. I put a default
that's value is populated from a function. The function uses context
to get its data. When the function is called to populate the image
field the function is called twice before the windows appears. First
time the context passed contains active_id. Second time it only passes
user id and language. The result is that it is not possible to have a
default image in a memory wizard because an exception occurs stating
active_id key is not found in dictionary.
I do not understand that when a regular field is populated on context it works, but when I put specifically an image widget it tries to do the function twice.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1086052/+subscriptions
Follow ups
References