Issue 11033

Title
Using ID field as notification email recipient does not work
Priority
bug
Status
testing
Nosy list
ced, pokoli, reviewbot
Assigned to
pokoli
Keywords
review

Created on 2021-12-09.10:45:31 by pokoli, last changed yesterday by reviewbot.

Messages

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2022-01-04.22:38:14

Indeed it is since issue9449.

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2021-12-09.10:58:37

I do not understand the rational nor why it is a bug. An ID is an integer.

Author: [hidden] (pokoli) Tryton committer Tryton translator
Date: 2021-12-09.10:45:30

When using an id field as recipient (for example by setting a notification on the party.party module the pyson evaluation returns a integer field (not a model instance) so the _get_addresses and _get_languages fail to pick the right email.

We should browse the instance in such case.

History
Date User Action Args
2022-01-27 16:43:23reviewbotsetmessages: + msg73583
2022-01-27 16:14:26reviewbotsetmessages: + msg73582
2022-01-04 22:38:15cedsetmessages: + msg73114
2021-12-09 11:36:02reviewbotsetmessages: + msg72068
2021-12-09 11:01:46reviewbotsetmessages: + msg72067
nosy: + reviewbot
2021-12-09 10:58:37cedsetmessages: + msg72066
nosy: + ced
2021-12-09 10:49:18pokolisetkeyword: + review
reviews: 383751002
status: in-progress -> testing
2021-12-09 10:45:31pokolicreate

Showing 10 items. Show all history (warning: this could be VERY long)