Comment 12 for bug 803788

Revision history for this message
Jeroen Vet (jeroen-vet) wrote :

*SOLVED*
Unfortunately fix by Serpent Consulting Services introduced another bug as the context passes a superfluous 'active_id'. Openerp for some mysterious reason interprets this key so that it is replaced by the integer representing the active_id. Resulting in an entry like 2: 2 in the context instead of 'active_id': 2. The method defaults_get crashes with an integer key.
Simple fix is to remove the 'active_id': active_id from the context attribute in poweremail_core_view.xml .
line 83 should now read:

<button name="%(act_selfolder_form)d" type="action" string="Select Folder" attrs="{'invisible':[('iserver_type','=','pop3')]}" colspan="2" target="new" context="{'active_ids':[active_id]}"/>

 Poweremail only uses the 'active_ids' context entry which is passed along fine.