[IMP] res.partner.address: changed the _order from 'name' to 'type, name'

bzr revid: qdp-launchpad@tinyerp.com-20110117151757-uk8m60upj1lc71sv
This commit is contained in:
qdp-launchpad@tinyerp.com
2011-01-17 16:17:57 +01:00
parent 5e01feb283
commit 97b7f9251e
+1 -1
View File
@@ -273,7 +273,7 @@ res_partner()
class res_partner_address(osv.osv):
_description ='Partner Addresses'
_name = 'res.partner.address'
_order = 'name'
_order = 'type, name'
_columns = {
'partner_id': fields.many2one('res.partner', 'Partner Name', ondelete='set null', select=True, help="Keep empty for a private address, not related to partner."),
'type': fields.selection( [ ('default','Default'),('invoice','Invoice'), ('delivery','Delivery'), ('contact','Contact'), ('other','Other') ],'Address Type', help="Used to select automatically the right address according to the context in sales and purchases documents."),