diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-01-26 16:06:51 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-01-26 16:06:51 +0100 |
| commit | bcf6529755b01f00552eaca9171b8a21a71b2f70 (patch) | |
| tree | 55cb0860eff7abd6069870051f0133fed05de13a /addons/pad/models | |
| parent | 4ea4f99df99e0f8d6e01b3116020cd1b525ec1fd (diff) | |
| parent | 8e38a3d069cd3bb63bbfbe1ca8a7db9d2eda6263 (diff) | |
[MERGE] forward port branch 10.0 up to 8e38a3d069c
Diffstat (limited to 'addons/pad/models')
| -rw-r--r-- | addons/pad/models/pad.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/pad/models/pad.py b/addons/pad/models/pad.py index 65a8bf5bc5f..0be7050db21 100644 --- a/addons/pad/models/pad.py +++ b/addons/pad/models/pad.py @@ -124,7 +124,7 @@ class PadCommon(models.AbstractModel): myPad.setText(path, (html2plaintext(vals[field.pad_content_field]).encode('utf-8'))) # Update the `pad_content_field` if the pad is modified for k, v in vals.items(): - field = self._fields[k] + field = self._fields.get(k) if hasattr(field, 'pad_content_field'): vals[field.pad_content_field] = self.pad_get_content(v) |
