diff --git a/addons/account/edi/invoice_action_data.xml b/addons/account/edi/invoice_action_data.xml
index b7ab56b446a..c4b0c8103f1 100644
--- a/addons/account/edi/invoice_action_data.xml
+++ b/addons/account/edi/invoice_action_data.xml
@@ -50,7 +50,7 @@
% endif
- % if object.company_id.paypal_account and object.type in ('out_invoice', 'in_refund'):
+ % if object.company_id.paypal_account and object.type in ('out_invoice'):
<%
comp_name = quote(object.company_id.name)
inv_number = quote(object.number)
diff --git a/addons/idea/idea_view.xml b/addons/idea/idea_view.xml
index 015308c1d85..53734d53919 100644
--- a/addons/idea/idea_view.xml
+++ b/addons/idea/idea_view.xml
@@ -2,7 +2,7 @@
-
+
idea.category.search
diff --git a/addons/lunch/lunch_view.xml b/addons/lunch/lunch_view.xml
index 8953beef987..1b1c1365415 100644
--- a/addons/lunch/lunch_view.xml
+++ b/addons/lunch/lunch_view.xml
@@ -2,7 +2,7 @@
-
+
diff --git a/addons/portal/acquirer.py b/addons/portal/acquirer.py
index 083a8c93d4f..9c18b597a1b 100644
--- a/addons/portal/acquirer.py
+++ b/addons/portal/acquirer.py
@@ -71,10 +71,18 @@ class acquirer(osv.Model):
return
def _wrap_payment_block(self, cr, uid, html_block, amount, currency, context=None):
- payment_header = _('Pay safely online')
- amount_str = float_repr(amount, self.pool.get('decimal.precision').precision_get(cr, uid, 'Account'))
- currency_str = currency.symbol or currency.name
- amount = u"%s %s" % ((currency_str, amount_str) if currency.position == 'before' else (amount_str, currency_str))
+ if not html_block:
+ link = '#action=account.action_account_config'
+ payment_header = _('You can finish the configuration in the Bank&Cash settings') % link
+ amount = _('No online payment acquirers configured')
+ group_ids = self.pool.get('res.users').browse(cr, uid, uid, context=context).groups_id
+ if any(group.is_portal for group in group_ids):
+ return ''
+ else:
+ payment_header = _('Pay safely online')
+ amount_str = float_repr(amount, self.pool.get('decimal.precision').precision_get(cr, uid, 'Account'))
+ currency_str = currency.symbol or currency.name
+ amount = u"%s %s" % ((currency_str, amount_str) if currency.position == 'before' else (amount_str, currency_str))
result = """