[STYLE] black
This commit is contained in:
parent
793b59c838
commit
ed2772758f
@ -5,12 +5,13 @@ class ResPartner(models.Model):
|
|||||||
_inherit = "res.partner"
|
_inherit = "res.partner"
|
||||||
|
|
||||||
name_write = fields.Char(
|
name_write = fields.Char(
|
||||||
string="Name (in contracts)",
|
string="Name (in contracts)", help="This name uses in contracts",
|
||||||
help="This name uses in contracts",
|
|
||||||
)
|
)
|
||||||
name_genitive = fields.Char(string="Name Genitive",)
|
name_genitive = fields.Char(string="Name Genitive",)
|
||||||
name_initials = fields.Char(string="Name Initials",)
|
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(
|
client_contract_ids = fields.One2many(
|
||||||
"res.partner.contract", "partner_id", string="Contracts",
|
"res.partner.contract", "partner_id", string="Contracts",
|
||||||
)
|
)
|
||||||
|
@ -129,7 +129,9 @@ class ContractWizard(models.TransientModel):
|
|||||||
]
|
]
|
||||||
|
|
||||||
# Set default template
|
# 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,}}
|
return {"domain": {"document_template": document_template_domain,}}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user