diff options
| author | Christophe Matthieu <chm@odoo.com> | 2017-05-04 13:27:31 +0200 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2017-05-15 10:06:58 +0200 |
| commit | 1c5ea99b7b82c2b6f28ad1a3dbffc1300fda6466 (patch) | |
| tree | 806510fb1b7d26eae453ef1598253b7373f06b2a /addons/web/static/src/js/fields | |
| parent | b57283619c4d1a711b2b071b9ec9c7008807a931 (diff) | |
[FIX] web: display a translation alert when saving the form view
In the form view, when the user saves a record (with a multilang instance),
an alert is displayed to display all modified translatable fields.
Diffstat (limited to 'addons/web/static/src/js/fields')
| -rw-r--r-- | addons/web/static/src/js/fields/basic_fields.js | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/addons/web/static/src/js/fields/basic_fields.js b/addons/web/static/src/js/fields/basic_fields.js index b1b51e69e36..17cac8e86e5 100644 --- a/addons/web/static/src/js/fields/basic_fields.js +++ b/addons/web/static/src/js/fields/basic_fields.js @@ -56,14 +56,7 @@ var TranslatableFieldMixin = { * @private */ _onTranslate: function () { - this._rpc({ - route: '/web/dataset/call_button', - params: { - model: 'ir.translation', - method: 'translate_fields', - args: [this.model, this.res_id, this.name, this.record.getContext()], - } - }).then(this.do_action.bind(this)); + this.trigger_up('translate', {fieldName: this.name, id: this.dataPointID}); }, }; |
