Browse Source

[OCT-90] Opvangen regieprojecten

pull/302/head
Rod Schouteden 9 years ago
parent
commit
f1d6df84ce
  1. 3
      web_tree_many2one_clickable/static/src/js/web_tree_many2one_clickable.js

3
web_tree_many2one_clickable/static/src/js/web_tree_many2one_clickable.js

@ -26,11 +26,14 @@ openerp.web_tree_many2one_clickable = function(openerp)
'instance.web_tree_many2one_clickable.Many2OneClickable'); 'instance.web_tree_many2one_clickable.Many2OneClickable');
openerp.web_tree_many2one_clickable.Many2OneClickable = openerp.web.list.Column.extend({ openerp.web_tree_many2one_clickable.Many2OneClickable = openerp.web.list.Column.extend({
_format: function (row_data, options) _format: function (row_data, options)
{
if (row_data[this.id].value)
{ {
return _.str.sprintf('<a class="oe_form_uri" data-many2one-clickable-model="%s" data-many2one-clickable-id="%s">%s</a>', return _.str.sprintf('<a class="oe_form_uri" data-many2one-clickable-model="%s" data-many2one-clickable-id="%s">%s</a>',
this.relation, this.relation,
row_data[this.id].value[0], row_data[this.id].value[0],
_.escape(row_data[this.id].value[1] || options.value_if_empty)); _.escape(row_data[this.id].value[1] || options.value_if_empty));
}
}, },
}); });

Loading…
Cancel
Save