[FIX] share: fixed crash when using the share wizard, linked to the new api.
This commit is contained in:
parent
a76de4595e
commit
9d50b47033
|
@ -26,6 +26,7 @@ from openerp import SUPERUSER_ID
|
|||
|
||||
import simplejson
|
||||
|
||||
from openerp import api
|
||||
from openerp import tools
|
||||
from openerp.osv import fields, osv
|
||||
from openerp.osv import expression
|
||||
|
@ -82,6 +83,7 @@ class share_wizard(osv.TransientModel):
|
|||
values['name'] = action.name
|
||||
return super(share_wizard,self).create(cr, uid, values, context=context)
|
||||
|
||||
@api.cr_uid_ids_context
|
||||
def share_url_template(self, cr, uid, _ids, context=None):
|
||||
# NOTE: take _ids in parameter to allow usage through browse_record objects
|
||||
base_url = self.pool.get('ir.config_parameter').get_param(cr, uid, 'web.base.url', default='', context=context)
|
||||
|
@ -103,7 +105,7 @@ class share_wizard(osv.TransientModel):
|
|||
return result
|
||||
|
||||
def _generate_embedded_code(self, wizard, options=None):
|
||||
cr, uid, context = self.env.args
|
||||
cr, uid, context = wizard.env.args
|
||||
if options is None:
|
||||
options = {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue