Wrong value computation in fields with expressions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Power Email |
Invalid
|
Medium
|
Sharoon Thomas http://openlabs.co.in |
Bug Description
If you define emails templates using openerp field expressions with the variable object (like the expression generator does), the corresponding values are not computed and an empty string appears. For example:
${object.
Invoice num. ${object.number}
The problem is in line 77 in poweremail_
If you change this line
to
and you define a message with the expression "Invoice num. ${object2.number}" in the email template, it works well.
Now, the temporal solution is to use peobject instead of object inside the expressions in the email template. But the expression generator computes object instead of peobject and it confuses the user.
Hi esteve,
the conversion to object was made from peobject in ver 0.6 by the siggestion of mga.
I was not sure if this will have any implications so i retained backward combatibility.
but not sure if ur problem is that.
can u check again. it works for me ...