[FIX] cant choose template
This commit is contained in:
parent
97dd0b052d
commit
bf847d0459
@ -129,9 +129,10 @@ class ContractWizard(models.TransientModel):
|
|||||||
]
|
]
|
||||||
|
|
||||||
# Set default template
|
# Set default template
|
||||||
self.document_template = self.env["res.partner.document.template"].search(
|
if not self.document_template:
|
||||||
document_template_domain, limit=1
|
self.document_template = self.env["res.partner.document.template"].search(
|
||||||
)
|
document_template_domain, limit=1
|
||||||
|
)
|
||||||
|
|
||||||
return {"domain": {"document_template": document_template_domain,}}
|
return {"domain": {"document_template": document_template_domain,}}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user