diff --git a/addons/purchase/models/account_invoice.py b/addons/purchase/models/account_invoice.py index fecd7515a39..4847ddf11ee 100644 --- a/addons/purchase/models/account_invoice.py +++ b/addons/purchase/models/account_invoice.py @@ -212,7 +212,7 @@ class AccountInvoice(models.Model): def create(self, vals): invoice = super(AccountInvoice, self).create(vals) purchase = invoice.invoice_line_ids.mapped('purchase_line_id.order_id') - if purchase and not invoice.refund_invoice_id and not invoice.is_recurring_document: + if purchase and not invoice.refund_invoice_id: message = _("This vendor bill has been created from: %s") % (",".join([""+order.name+"" for order in purchase])) invoice.message_post(body=message) return invoice