mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[ADD] list.column display
This commit is contained in:
committed by
Holger Brunn
parent
4c54372485
commit
23043638ce
@@ -36,6 +36,7 @@ Contributors
|
||||
------------
|
||||
|
||||
* Holger Brunn <hbrunn@therp.nl>
|
||||
* Iván Todorovich <ivan.todorovich@gmail.com>
|
||||
|
||||
Maintainer
|
||||
----------
|
||||
|
||||
14
web_widget_one2many_tags/static/src/js/web_widget_one2many_tags.js
Normal file → Executable file
14
web_widget_one2many_tags/static/src/js/web_widget_one2many_tags.js
Normal file → Executable file
@@ -72,8 +72,22 @@ openerp.web_widget_one2many_tags = function(instance)
|
||||
return result;
|
||||
},
|
||||
});
|
||||
|
||||
instance.web.form.widgets.add(
|
||||
'one2many_tags',
|
||||
'instance.web_widget_one2many_tags.FieldOne2ManyTags'
|
||||
);
|
||||
|
||||
instance.web.list.One2ManyTags = instance.web.list.Many2Many.extend({
|
||||
init: function () {
|
||||
this._super.apply(this, arguments);
|
||||
// Treat it as many2many to trick odoo into populating '__display'.
|
||||
this.type = 'many2many';
|
||||
},
|
||||
});
|
||||
|
||||
instance.web.list.columns.add(
|
||||
'field.one2many_tags',
|
||||
'instance.web.list.One2ManyTags'
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user