[UPD] Lint
This commit is contained in:
parent
52d1617e17
commit
c6cd8015f5
@ -38,7 +38,9 @@ class AccountInvoice(models.Model):
|
||||
"context": {
|
||||
"self_id": annex.id,
|
||||
"active_model": "res.partner.contract.annex",
|
||||
"company_form": annex.partner_id.company_form if annex.partner_id.is_company else "person",
|
||||
"company_form": annex.partner_id.company_form
|
||||
if annex.partner_id.is_company
|
||||
else "person",
|
||||
"attachment_model": self._name,
|
||||
"attachment_res_id": self.id,
|
||||
},
|
||||
|
@ -104,8 +104,11 @@ class PartnerContract(models.Model, IDocument, Extension):
|
||||
"context": {
|
||||
"self_id": self.id,
|
||||
"active_model": self._name,
|
||||
"company_form": self.partner_id.company_form if self.partner_id.is_company else "person",},
|
||||
}
|
||||
"company_form": self.partner_id.company_form
|
||||
if self.partner_id.is_company
|
||||
else "person",
|
||||
},
|
||||
}
|
||||
|
||||
def get_name_by_document_template(self, document_template_id):
|
||||
return self.name
|
||||
|
@ -116,7 +116,9 @@ class ContractOrderAnnex(models.Model, IDocument, Extension):
|
||||
"context": {
|
||||
"self_id": self.id,
|
||||
"active_model": self._name,
|
||||
"company_form": self.partner_id.company_form if self.partner_id.is_company else "person",
|
||||
"company_form": self.partner_id.company_form
|
||||
if self.partner_id.is_company
|
||||
else "person",
|
||||
},
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user