[IMP] ir.ui.view.custom: order by create_date descending
This way search(limit=1) will give you the latest customization for a given user. This can be used by client side to allow multiple customizations with multi-level undo. bzr revid: odo@openerp.com-20110601105209-vtgf73reh90uipct
This commit is contained in:
parent
c5f4eab14a
commit
a270d19d81
|
@ -46,6 +46,7 @@ def _check_xml(self, cr, uid, ids, context=None):
|
|||
|
||||
class view_custom(osv.osv):
|
||||
_name = 'ir.ui.view.custom'
|
||||
_order = 'create_date desc' # search(limit=1) should return the last customization
|
||||
_columns = {
|
||||
'ref_id': fields.many2one('ir.ui.view', 'Original View', select=True),
|
||||
'user_id': fields.many2one('res.users', 'User', select=True),
|
||||
|
|
Loading…
Reference in New Issue