Community mailing list archives

community@mail.odoo.com

Re: Need Help on 'Tree view' order

by
Ferdinand Gassauer
- 03/09/2015 06:54:59
On 2015-03-09 14:48, Cy Snake wrote:
> Hello guys,
>
> I defined a model like this:
>
> XXXX:
>     _order = 'create_date desc'
well "_order" should be defined in the view - or at least a possibility 
to overwrite, what is defined in the model
all records with multiple foreign keys suffer from this problem
a work around could be to use
https://www.odoo.com/apps/modules/8.0/one2many_sorted/

>
>
> then, This model have two list views, one need order by 'create_date
> desc' , but another one need order by 'p_date desc' , is ODOO. V8
> surpport this kind of behavior?
>
> _______________________________________________
> Mailing-List: https://www.odoo.com/groups/community-59
> Post to: mailto:community@mail.odoo.com
> Unsubscribe: https://www.odoo.com/groups?unsubscribe
>