[FIX] share: link should appear even if process module is not present

Also bumped up version number so web addon is upgraded automatically

bzr revid: odo@openerp.com-20110601080921-kgn8rtlgq0yvn9cc
This commit is contained in:
Olivier Dony 2011-06-01 10:09:21 +02:00
parent d5a7713c6b
commit e0653a5b53
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@
{
"name" : "Sharing Tools",
"version" : "1.4",
"version" : "1.5",
"depends" : ["base"],
"author" : "OpenERP SA",
"category": 'Tools',

View File

@ -10,7 +10,7 @@ class FormEditor(openobject.templating.TemplateEditor):
# but only if the user is a member of the sharing group
share_opener_insertion = output.index('% endif', output.index(
'/view_diagram/process',
output.index(self.MAIN_FORM_BODY))) - 1
output.index(self.MAIN_FORM_BODY))) + len('% endif')
return output[:share_opener_insertion] + '''
<%
if 'has_share' not in cp.session: