[IMP] contract: Set name='/' for contract invoices

This commit is contained in:
Maximilien TANTIN
2022-07-20 14:46:35 +02:00
committed by Maximilien TANTIN
parent 15209ddf95
commit cbef21260a

View File

@@ -429,7 +429,7 @@ class ContractContract(models.Model):
move_form = Form( move_form = Form(
self.env["account.move"] self.env["account.move"]
.with_company(self.company_id) .with_company(self.company_id)
.with_context(default_move_type=invoice_type) .with_context(default_move_type=invoice_type, default_name="/")
) )
move_form.partner_id = self.invoice_partner_id move_form.partner_id = self.invoice_partner_id
if self.payment_term_id: if self.payment_term_id: