Skip to content
Snippets Groups Projects
Commit 9d50b470 authored by Thibault Delavallée's avatar Thibault Delavallée
Browse files

[FIX] share: fixed crash when using the share wizard, linked to the new api.

parent a76de459
No related branches found
No related tags found
No related merge requests found
......@@ -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 = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment