rename links get, allow reference fields without size.
bzr revid: al@openerp.com-20131006114704-mkbheq3l355u21jb
This commit is contained in:
parent
881a76dbcf
commit
f1faa55cb6
|
@ -19,11 +19,9 @@
|
||||||
#
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
import time
|
|
||||||
|
|
||||||
from openerp.osv import osv, fields
|
from openerp.osv import osv, fields
|
||||||
|
|
||||||
def _links_get(self, cr, uid, context=None):
|
def referencable_models(self, cr, uid, context=None):
|
||||||
obj = self.pool.get('res.request.link')
|
obj = self.pool.get('res.request.link')
|
||||||
ids = obj.search(cr, uid, [], context=context)
|
ids = obj.search(cr, uid, [], context=context)
|
||||||
res = obj.read(cr, uid, ids, ['object', 'name'], context)
|
res = obj.read(cr, uid, ids, ['object', 'name'], context)
|
||||||
|
@ -41,7 +39,5 @@ class res_request_link(osv.osv):
|
||||||
}
|
}
|
||||||
_order = 'priority'
|
_order = 'priority'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||||
|
|
||||||
|
|
|
@ -182,7 +182,7 @@ class reference(_column):
|
||||||
_type = 'reference'
|
_type = 'reference'
|
||||||
_classic_read = False # post-process to handle missing target
|
_classic_read = False # post-process to handle missing target
|
||||||
|
|
||||||
def __init__(self, string, selection, size, **args):
|
def __init__(self, string, selection, size=None, **args):
|
||||||
_column.__init__(self, string=string, size=size, selection=selection, **args)
|
_column.__init__(self, string=string, size=size, selection=selection, **args)
|
||||||
|
|
||||||
def get(self, cr, obj, ids, name, uid=None, context=None, values=None):
|
def get(self, cr, obj, ids, name, uid=None, context=None, values=None):
|
||||||
|
|
Loading…
Reference in New Issue