It is currently Sun Feb 12, 2012 7:15 pm

All times are UTC + 2 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Overriding the default sort order in a view?
PostPosted: Fri Aug 28, 2009 12:17 pm 
Offline

Joined: Tue Oct 14, 2008 12:39 pm
Posts: 69
Location: Colchester, England
Sorry for all the questions! I am getting heavily into OpenObject development at the moment :)

Is there any way to override the _order property of a model for a particular view?

Say for example in one list view I wanted to see my model in ascending date order (earliest items), whereas in another view I wanted to see it in descending date order (latest items) ?

Thanks

Russ


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 28, 2009 12:40 pm 
Offline

Joined: Mon Dec 03, 2007 8:22 am
Posts: 1472
Location: Belgium
You can create different postgres view based on order.
In list view by clicking on column header you can sort records too.

_________________
OpenERP=Easier, Adaptable, Affordable, Modular


Last edited by hda on Fri Aug 28, 2009 1:26 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Just to Clarify
PostPosted: Tue Mar 09, 2010 10:37 pm 
Offline

Joined: Thu Sep 03, 2009 8:57 pm
Posts: 117
Location: Charlotte, NC
By clicking on the field names on a list view in the client the records will be sorted - but only for the limited set of records displayed within that particular view.

This sort is done on the client side - and does not reorder and sort all the records in the database.

So if you're looking for a sort of the entire database top to bottom - then you have to utilize another approach.

Perhaps hda you could explain further about the postgres view approach for the readers - and how to properly setup and deploy it.

_________________
ChiefPenguin
NovaPoint Group LLC
www.novapointgroup.com
OpenERP Services & Consulting


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP