[IMP] share: when creating a shared access, the send email now contains the password and the action_id to directly redirect to the shared view.
bzr revid: tde@openerp.com-20120507151023-f1rpwqz4eqjmssjv
This commit is contained in:
parent
7ce89441f2
commit
120fb61af3
|
@ -902,8 +902,11 @@ class share_result_line(osv.osv_memory):
|
|||
def _share_url(self, cr, uid, ids, _fieldname, _args, context=None):
|
||||
result = dict.fromkeys(ids, '')
|
||||
for this in self.browse(cr, uid, ids, context=context):
|
||||
data = dict(dbname=cr.dbname, login=this.login, password='')
|
||||
result[this.id] = this.share_wizard_id.share_url_template() % data
|
||||
data = dict(dbname=cr.dbname, login=this.login, password=this.password)
|
||||
if this.share_wizard_id and this.share_wizard_id.action_id:
|
||||
data['action_id'] = this.share_wizard_id.action_id.id
|
||||
ctx = dict(context, share_url_template_hash_arguments=['action_id'])
|
||||
result[this.id] = this.share_wizard_id.share_url_template(context=ctx) % data
|
||||
return result
|
||||
|
||||
_columns = {
|
||||
|
|
Loading…
Reference in New Issue