diff options
| author | Raphael Collet <rco@openerp.com> | 2016-03-23 13:48:43 +0100 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2016-04-25 13:37:11 +0200 |
| commit | 6037f3a56d3992cf0a6ff5ea1cb374dcbac03ea0 (patch) | |
| tree | 0de70fc89d7aa75b98b5ff603c14b276ab44b8e2 /addons/mail/wizard/mail_compose_message.py | |
| parent | cb8d432bb2211ee666b27ece6de86c9ef9f4f4ea (diff) | |
[REF] fields: change API and semantics of converter methods
The cache data format has been split between a cache format and a record format
(returned by accessing a field on a record). We have the following converters:
ANY FORMAT
|
| convert_to_cache
v
CACHE FORMAT
|
| convert_to_record
v
RECORD FORMAT
|
| convert_to_read
| convert_to_write
| convert_to_onchange
| convert_to_export
| convert_to_display_name
v
OTHER FORMATS
Modify the API of the converter methods to make them uniform (pass value and
record), and adapt their documentation.
Diffstat (limited to 'addons/mail/wizard/mail_compose_message.py')
| -rw-r--r-- | addons/mail/wizard/mail_compose_message.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/wizard/mail_compose_message.py b/addons/mail/wizard/mail_compose_message.py index 34d59736185..6537d6d1cf6 100644 --- a/addons/mail/wizard/mail_compose_message.py +++ b/addons/mail/wizard/mail_compose_message.py @@ -398,7 +398,7 @@ class MailComposer(models.TransientModel): # ORM handle the assignation of command list on new onchange (api.v8), # this force the complete replacement of x2many field with # command and is compatible with onchange api.v7 - values = self._convert_to_write(self._convert_to_cache(values)) + values = self._convert_to_write(values) return {'value': values} |
