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 = """
%s
@@ -93,6 +101,8 @@ class acquirer(osv.Model): return html_forms = [] for this in self.browse(cr, uid, acquirer_ids): - html_forms.append(this.render(object, reference, currency, amount, context=context, **kwargs)) + content = this.render(object, reference, currency, amount, context=context, **kwargs) + if content: + html_forms.append(content) html_block = '\n'.join(filter(None,html_forms)) return self._wrap_payment_block(cr, uid, html_block, amount, currency, context=context) diff --git a/addons/portal_claim/portal_claim_view.xml b/addons/portal_claim/portal_claim_view.xml index cd0e4941286..83c38b43b4e 100644 --- a/addons/portal_claim/portal_claim_view.xml +++ b/addons/portal_claim/portal_claim_view.xml @@ -8,7 +8,7 @@ form tree,form,calendar - {"search_default_user_id":'', "stage_type":'claim', "portal":'True'} + {"stage_type":'claim', "portal":'True'} current diff --git a/addons/portal_event/event_view.xml b/addons/portal_event/event_view.xml index 675bddbc42e..3dec56fa526 100644 --- a/addons/portal_event/event_view.xml +++ b/addons/portal_event/event_view.xml @@ -9,7 +9,7 @@ - + diff --git a/addons/portal_hr_employees/hr_employee_view.xml b/addons/portal_hr_employees/hr_employee_view.xml index 4ffca098c55..0d8ca0676b6 100644 --- a/addons/portal_hr_employees/hr_employee_view.xml +++ b/addons/portal_hr_employees/hr_employee_view.xml @@ -32,10 +32,21 @@ + + HR - Employess Kanban + hr.employee + + + + + + + + Meet the team hr.employee - + kanban form [('visibility','!=','private')] diff --git a/addons/portal_sale/portal_sale.py b/addons/portal_sale/portal_sale.py index 818da5e8784..7cda77ed9ea 100644 --- a/addons/portal_sale/portal_sale.py +++ b/addons/portal_sale/portal_sale.py @@ -67,7 +67,7 @@ class account_invoice(osv.Model): result = dict.fromkeys(ids, False) payment_acquirer = self.pool.get('portal.payment.acquirer') for this in self.browse(cr, uid, ids, context=context): - if this.state not in ('draft','done') and not this.reconciled: + if this.type == 'out_invoice' and this.state not in ('draft','done') and not this.reconciled: result[this.id] = payment_acquirer.render_payment_block(cr, uid, this, this.number, this.currency_id, this.residual, context=context) return result diff --git a/addons/portal_sale/portal_sale_data.xml b/addons/portal_sale/portal_sale_data.xml index d70a2753b1e..f40897f6998 100644 --- a/addons/portal_sale/portal_sale_data.xml +++ b/addons/portal_sale/portal_sale_data.xml @@ -150,7 +150,7 @@ href="${signup_url}">View Invoice % 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/portal_sale/sale.py b/addons/portal_sale/sale.py index aa8b6e57689..79fcbdef6fd 100644 --- a/addons/portal_sale/sale.py +++ b/addons/portal_sale/sale.py @@ -51,8 +51,13 @@ class mail_mail(osv.osv): if mail.model == 'sale.order': so_obj = self.pool.get('sale.order') partner = so_obj.browse(cr, uid, mail.res_id, context=context)['partner_id'] + # Add the customer in the SO as follower if partner.id not in so_obj.browse(cr, uid, mail.res_id, context=context)['message_follower_ids']: so_obj.message_subscribe(cr, uid, [mail.res_id], [partner.id], context=context) + # Add all recipients of the email as followers + for p in mail.partner_ids: + if p.id not in so_obj.browse(cr, uid, mail.res_id, context=context)['message_follower_ids']: + so_obj.message_subscribe(cr, uid, [mail.res_id], [p.id], context=context) return super(mail_mail, self)._postprocess_sent_message(cr, uid, mail=mail, context=context) mail_mail() \ No newline at end of file diff --git a/addons/sale/sale_view.xml b/addons/sale/sale_view.xml index 0906084ad37..2c2fdd6991f 100644 --- a/addons/sale/sale_view.xml +++ b/addons/sale/sale_view.xml @@ -170,7 +170,7 @@
-
+
diff --git a/addons/sale_stock/sale_stock_view.xml b/addons/sale_stock/sale_stock_view.xml index 4c38e198b60..bebb95f0088 100644 --- a/addons/sale_stock/sale_stock_view.xml +++ b/addons/sale_stock/sale_stock_view.xml @@ -40,7 +40,7 @@