[STYLE] black

This commit is contained in:
Stepan Savelyev 2020-01-14 10:22:07 +05:00
parent 793b59c838
commit ed2772758f
2 changed files with 7 additions and 4 deletions

View File

@ -5,12 +5,13 @@ class ResPartner(models.Model):
_inherit = "res.partner"
name_write = fields.Char(
string="Name (in contracts)",
help="This name uses in contracts",
string="Name (in contracts)", help="This name uses in contracts",
)
name_genitive = fields.Char(string="Name Genitive",)
name_initials = fields.Char(string="Name Initials",)
function_genitive = fields.Char(string="Function Genitive",) # TODO: have no use of this
function_genitive = fields.Char(
string="Function Genitive",
) # TODO: have no use of this
client_contract_ids = fields.One2many(
"res.partner.contract", "partner_id", string="Contracts",
)

View File

@ -129,7 +129,9 @@ class ContractWizard(models.TransientModel):
]
# Set default template
self.document_template = self.env["res.partner.document.template"].search(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,}}