From 157cecd971757e46d9cb6893c2cd6778ebbedca8 Mon Sep 17 00:00:00 2001 From: Stepan Savelyev Date: Fri, 20 Mar 2020 11:08:52 +0500 Subject: [PATCH] [UPD] Formatting --- models/account_invoice.py | 2 +- wizard/res_partner_contract_wizard.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/models/account_invoice.py b/models/account_invoice.py index 3f9c8d8..79eacab 100644 --- a/models/account_invoice.py +++ b/models/account_invoice.py @@ -38,6 +38,6 @@ class AccountInvoice(models.Model): "self_id": order.contract_annex_id.id, "active_model": "res.partner.contract.annex", "attachment_model": self._name, - "attachment_res_id": self.id + "attachment_res_id": self.id, }, } diff --git a/wizard/res_partner_contract_wizard.py b/wizard/res_partner_contract_wizard.py index 544ea0f..30065c1 100644 --- a/wizard/res_partner_contract_wizard.py +++ b/wizard/res_partner_contract_wizard.py @@ -226,7 +226,9 @@ class ContractWizard(models.TransientModel, Extension): self.env["mail.message"].create( { - "model": self.env.context.get("attachment_model", "res.partner.contract"), + "model": self.env.context.get( + "attachment_model", "res.partner.contract" + ), "res_id": self.env.context.get("attachment_res_id", res_id), "message_type": "comment", "attachment_ids": [(4, result.id, False)],