Tryton 3.6 Invalid email definition on report "Invoice".

24 views
Skip to first unread message

rawdesignhamburg

unread,
Jun 14, 2017, 8:18:23 AM6/14/17
to tryton
Hello

I have to clean the report cache after upgrade to 3.6. But I cannot change Invoice report because of this error: Invalid email definition on report "Invoice".

If I delete the email from field "Email" I can do it. But then I cannot insert Email again. Field content is = {'to' : 'm...@test.de'}

regards


rawdesignhamburg

unread,
Jun 14, 2017, 9:00:12 AM6/14/17
to tryton

I found this both:

http://www.tryton.org/~irclog/2016-04-07.log.html

https://groups.google.com/forum/#!msg/Tryton/Wz73JjGq8VY/iWHop1BKA68J

But I cannot found a solution, both are only say thanks, its working now, but not show a solution.


Cédric Krier

unread,
Jun 14, 2017, 9:10:07 AM6/14/17
to tryton
It must be a PYSON expression. So you must use double quote:

{"to" : "m...@test.de"}

The release 4.4 has a pyson widget which avoid such minor mistakes.
--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

rawdesignhamburg

unread,
Jun 14, 2017, 2:40:06 PM6/14/17
to tryton

Thank you very much, I did not know that there is a difference between single double and double quote. The help text example showing single quotes and also in this examples: http://doc.tryton.org/3.6/trytond/doc/topics/pyson.html
So one last interesting thing is, where can I get such info?

Its also not in

http://www.tryton.org/posts/new-tryton-release-36.html
https://discuss.tryton.org/t/migration-from-3-4-to-3-6/17



regards


rawdesignhamburg

unread,
Jun 14, 2017, 2:40:08 PM6/14/17
to tryton


Am Mittwoch, 14. Juni 2017 15:10:07 UTC+2 schrieb Cédric Krier:


If I do so, I can save the report. But if I try to send and invoice I get another error message:
     mailto(to=email.get('to'), cc=email.get('cc'),
AttributeError: 'unicode' object has no attribute 'get'


Cédric Krier

unread,
Jun 14, 2017, 3:05:06 PM6/14/17
to tryton
On 2017-06-14 10:53, rawdesignhamburg wrote:
> Thank you very much, I did not know that there is a difference between
> single double and double quote. The help text example showing single
> quotes

Too late to change it.
The documentation does not show any raw value of PYSON.

> So one last interesting thing is, where can I get such info?

It is in the standard definition of json.
http://hg.tryton.org/trytond/file/3.6/CHANGELOG
Reply all
Reply to author
Forward
0 new messages