Community: Framework mailing list archives

expert-framework@mail.odoo.com

Re: Is fields.Html() supposed to work in tree views?

by
Maxim Litnitskiy
- 09/22/2014 12:23:50
Thanks Markus!
:-)

--
Люди, читайте книги!!!


2014-09-22 20:20 GMT+04:00 Markus Schneider <markus.schneider@initos.com>:
https://github.com/OCA/web/pull/42

Reviews welcome ;)

On 21.09.2014 20:44, Maxim Litnitskiy wrote:
> There is no html type in view_list.js (It is there in view_form.js).
> So the only thing that needs to be added is the following:
> 
> openerp.custom_contacts = function(instance) {    
>     instance.web.list.columns.add('field.html', 'instance.web.list.Html');
>     
>     instance.web.list.Html= instance.web.list.Column.extend({
>         _format: function (row_data, options) {
>             return row_data[this.id ].value;
>         }                                                              
>                                                                        
>                             
>     });
> 
> };
> 
> Or better add this functionality to view_list.js.
> Just in case create an issue on github
> - https://github.com/odoo/odoo/issues/2577
> 
> Regards,
> 
> _______________________________________________
> Mailing-List: https://www.odoo.com/groups/community-framework-62
> Post to: mailto:expert-framework@mail.odoo.com
> Unsubscribe: https://www.odoo.com/groups?unsubscribe
> 

-- 
Dipl.-Comp.-Math. Markus Schneider
Softwareentwickler

initOS GmbH & Co. KG
An der Eisenbahn 1
21224 Rosengarten

Mobil:   +49 (0)172 2303699
Phone:   +49 (0)4105 5615613
Fax:     +49 (0)4105 5615610

Email:   markus.schneider@initos.com
Web:     http://www.initos.com

Geschäftsführung:
Dipl. Wirt.-Inf. Frederik Kramer & Dipl.-Ing. (FH) Torsten Francke
Haftende Gesellschafterin: initOS Verwaltungs GmbH

Sitz der Gesellschaft: Rosengarten – Klecken
Amtsgericht Tostedt, HRA 201840
USt-IdNr: DE 275698169
Steuer-Nr: 15/205/21402

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-framework-62
Post to: mailto:expert-framework@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe