From bc66da2dfaf399f642836256c67a65a5468cd47a Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Mon, 5 Mar 2018 22:39:45 +0100 Subject: [PATCH] [FIX] purchase: complete c410911a and revert part of 60aa759 is_recurring_document is removed after revert of 76427541 in c410911ad --- addons/purchase/models/account_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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