diff options
| author | David Beguin <dbe@odoo.com> | 2018-10-30 12:24:44 +0000 |
|---|---|---|
| committer | David Beguin <dbe@odoo.com> | 2018-11-20 11:37:05 +0000 |
| commit | 692f0062fb6b2b0b34d2803ae1644e7f5a2d3028 (patch) | |
| tree | f716d3615d32d28abfecd251bb569c478837d7dc /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 1007df3dc3413b2b30af8a3feba023840f7566a3 (diff) | |
[IMP] mail, mass_mailing, crm : stringify _primary_email
_primary_email was an array to be able to use it directly in the
depends. Typically a 'depends' with a computed value (lambda) needs
an array. Otherwise, it will only take the first character of the
field name string.
By setting _primary_email as a string, the lambda should always get
an array. But it simplifies a lot the usage of the _primary_email.
also, having an array was confusing as we could think that more than
one field can be considered as the primary email. This is not the
goal hare. So having the _primary_email as a single string is more
'self describing'. Only one field should be the _primary_email.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
