diff --git a/addons/account/report/account_report_payment_receipt_templates.xml b/addons/account/report/account_report_payment_receipt_templates.xml index 1b37bf35656..05c7421140d 100644 --- a/addons/account/report/account_report_payment_receipt_templates.xml +++ b/addons/account/report/account_report_payment_receipt_templates.xml @@ -46,7 +46,7 @@ - + diff --git a/addons/l10n_be_invoice_bba/models/account_invoice.py b/addons/l10n_be_invoice_bba/models/account_invoice.py index d729efec3a3..49973c1c30e 100644 --- a/addons/l10n_be_invoice_bba/models/account_invoice.py +++ b/addons/l10n_be_invoice_bba/models/account_invoice.py @@ -182,4 +182,6 @@ class AccountInvoice(models.Model): default['reference_type'] = reference_type if reference_type == 'bba': default['reference'] = self.generate_bbacomm(self.type, reference_type, self.partner_id.id, '')['value']['reference'] + elif self.type in ['in_invoice']: + self.reference_type = 'none' return super(AccountInvoice, self).copy(default) diff --git a/addons/portal/controllers/mail.py b/addons/portal/controllers/mail.py index 1abf05b4e63..d40e00ba0f3 100644 --- a/addons/portal/controllers/mail.py +++ b/addons/portal/controllers/mail.py @@ -90,8 +90,10 @@ class PortalChatter(http.Controller): # Only search into website_message_ids, so apply the same domain to perform only one search # extract domain from the 'website_message_ids' field field_domain = request.env[res_model]._fields['website_message_ids'].domain - domain += field_domain(request.env[res_model]) if callable(field_domain) else field_domain - domain += [('res_id', '=', res_id)] + if callable(field_domain): + field_domain = field_domain(request.env[res_model]) + domain = expression.AND([domain, field_domain, [('res_id', '=', res_id)]]) + # Check access Message = request.env['mail.message'] if kw.get('token'): diff --git a/addons/sale_crm/views/crm_lead_views.xml b/addons/sale_crm/views/crm_lead_views.xml index f602e0d6503..6cc3eaf52ed 100644 --- a/addons/sale_crm/views/crm_lead_views.xml +++ b/addons/sale_crm/views/crm_lead_views.xml @@ -18,7 +18,7 @@