[FIX] Project_long_term : Better ordering on phase

lp bug: https://launchpad.net/bugs/629735 fixed

bzr revid: jvo@tinyerp.com-20100914125744-78lz9uaby27z4a07
This commit is contained in:
Raphael Valyi(Akretion) 2010-09-14 18:27:44 +05:30 committed by Jay (OpenERP)
parent 6ba2fbc74a
commit 0cb1ed9f96
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ class project_phase(osv.osv):
'sequence': 10,
'product_uom': lambda self,cr,uid,c: self.pool.get('product.uom').search(cr, uid, [('name', '=', _('Day'))], context=c)[0]
}
_order = "name"
_order = "project_id, date_start, sequence, name"
_constraints = [
(_check_recursion,'Loops in phases not allowed',['next_phase_ids', 'previous_phase_ids']),
(_check_dates, 'Phase start-date must be lower than phase end-date.', ['date_start', 'date_end']),