diff options
| author | Thibault Delavallée <tde@odoo.com> | 2020-02-25 14:26:39 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2020-03-24 10:24:14 +0000 |
| commit | 6e25a510b3b44cbdd5844b224cc90eb6108853fb (patch) | |
| tree | c789fadb7bd729e0e0bdf58ef0856a5c7cf5ec39 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | aa74a975d7a710bfc55d586f1898164d5813f34c (diff) | |
[REF] base, mail: improve partner creation from name / email
Rewrite code parsing name (_parse_partner_name) to make it easier to
understand. Tweak find_or_create to return directly a recordset with the
found partner / new partner instead of a name_get result.
Also inherit Partner.find_or_create() in mail in order to benefits from
email_normalized field, allowing to improve the search on matching emails
and avoid duplicates.
LINKS
Task ID 1963529
Community PR odoo/odoo#32397
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
