Error saving email template

Bug #452420 reported by Jordi Esteve (www.zikzakmedia.com)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Power Email
Fix Released
Medium
Sharoon Thomas http://openlabs.co.in

Bug Description

This error appears when saving email template if you don't check the boolean Automatic email and choose a workflow activity (third tab):

[2009-10-15 20:45:38,911] ERROR:web-services:[23]: File ".../bin/addons/poweremail/poweremail_template.py", line 148, in write
[2009-10-15 20:45:38,911] ERROR:web-services:[24]: ref_sr_act = self.read(cr, uid, id[0], ['server_action'])['server_action']
[2009-10-15 20:45:38,911] ERROR:web-services:[25]: TypeError: 'builtin_function_or_method' object is unsubscriptable

IMHO, the Workflow and Activity fields must be readonly when the boolean Automatic email field is not checked.

Related branches

Revision history for this message
Jordi Esteve (www.zikzakmedia.com) (jesteve-zikzakmedia) wrote :

Maybe, to solve this problem, it is better that Workflow and Activity fields are cleared when the boolean Automatic email field is not checked, with an on_change() method.

Changed in poweremail:
assignee: nobody → Sharoon Thomas (openlabs.co.in) (sharoonthomas)
importance: Undecided → Medium
milestone: none → 0.7
status: New → Confirmed
Revision history for this message
Sharoon Thomas http://openlabs.co.in (sharoonthomas) wrote :

Fixed in trunk.
Can you check & revert?

Changed in poweremail:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.