From e38559580f7c5b37d4f4f38c6f7009382fe0f0bf Mon Sep 17 00:00:00 2001 From: Maximilien TANTIN Date: Wed, 20 Jul 2022 14:46:35 +0200 Subject: [PATCH] [IMP] contract: Set name='/' for contract invoices --- contract/models/contract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contract/models/contract.py b/contract/models/contract.py index d419b004b..d4f235b82 100644 --- a/contract/models/contract.py +++ b/contract/models/contract.py @@ -438,7 +438,7 @@ class ContractContract(models.Model): move_form = Form( self.env["account.move"] .with_company(self.company_id) - .with_context(default_move_type=invoice_type), + .with_context(default_move_type=invoice_type, default_name="/"), view="contract.view_account_move_contract_helper_form", ) move_form.partner_id = self.invoice_partner_id