[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:
parent
d5a7713c6b
commit
e0653a5b53
|
@ -22,7 +22,7 @@
|
|||
|
||||
{
|
||||
"name" : "Sharing Tools",
|
||||
"version" : "1.4",
|
||||
"version" : "1.5",
|
||||
"depends" : ["base"],
|
||||
"author" : "OpenERP SA",
|
||||
"category": 'Tools',
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue