Merge lp:~fabien-morin/unifield-web/fm-us-2000 into lp:unifield-web

Proposed by jftempo
Status: Merged
Merged at revision: 4827
Proposed branch: lp:~fabien-morin/unifield-web/fm-us-2000
Merge into: lp:unifield-web
Diff against target: 15 lines (+2/-2)
1 file modified
addons/openerp/widgets/form/templates/binary.mako (+2/-2)
To merge this branch: bzr merge lp:~fabien-morin/unifield-web/fm-us-2000
Reviewer Review Type Date Requested Status
UniField Dev Team Pending
Review via email: mp+311584@code.launchpad.net
To post a comment you must log in.
4827. By Fabien MORIN

US-2000 [FIX] add missing parenthesis

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'addons/openerp/widgets/form/templates/binary.mako'
2--- addons/openerp/widgets/form/templates/binary.mako 2016-10-04 16:12:02 +0000
3+++ addons/openerp/widgets/form/templates/binary.mako 2016-11-24 14:40:51 +0000
4@@ -25,9 +25,9 @@
5 %if value:
6 <input type="hidden" name="${name}" value="${value}"></input>
7 % endif
8- % if model == 'ir.attachment' and ctx != 'usb_synchronization' and editable:
9+ % if (text or value_bin_size) and model == 'ir.attachment' and ctx != 'usb_synchronization' and editable:
10 <a class="button-a" href="javascript: void(0)" onclick="save_binary_data('${name}', '${filename}')">${_("Open donation certificate")}</a>
11- % elif editable:
12+ % elif text and editable:
13 <a class="button-a" href="javascript: void(0)" onclick="save_binary_data('${name}', '${filename}')">${_("Save As")}</a>
14 % endif
15 % if editable and not readonly:

Subscribers

People subscribed via source and target branches