summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--addons/website_links/static/src/js/website_links.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/addons/website_links/static/src/js/website_links.js b/addons/website_links/static/src/js/website_links.js
index 7ebb60c0c2c..91b7177ea6b 100644
--- a/addons/website_links/static/src/js/website_links.js
+++ b/addons/website_links/static/src/js/website_links.js
@@ -77,10 +77,16 @@ var SelectBox = publicWidget.Widget.extend({
*/
_createObject: function (name) {
var self = this;
+ var args = {
+ name: name
+ };
+ if (this.obj === "utm.campaign"){
+ args.is_website = true;
+ }
return this._rpc({
model: this.obj,
method: 'create',
- args: [{name: name}],
+ args: [args],
}).then(function (record) {
self.$el.attr('value', record);
self.objects.push({'id': record, 'text': name});