Merge PR #857 into 14.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2022-08-31 10:07:44 +00:00

View File

@@ -429,7 +429,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="/")
)
move_form.partner_id = self.invoice_partner_id
if self.payment_term_id: