Browse Source

[UPD] flake8

pull/312/head
Yves Goldberg 6 years ago
parent
commit
184f61bd3e
  1. 4
      agreement_legal/models/agreement.py

4
agreement_legal/models/agreement.py

@ -173,8 +173,9 @@ class Agreement(models.Model):
use_parties_content = fields.Boolean( use_parties_content = fields.Boolean(
string="Use parties content", string="Use parties content",
help="Use custom content for parties") help="Use custom content for parties")
def _get_default_parties(self): def _get_default_parties(self):
deftext="""
deftext = """
<h3>Company Information</h3> <h3>Company Information</h3>
<p> <p>
${object.company_partner_id.name or ''}.<br> ${object.company_partner_id.name or ''}.<br>
@ -197,6 +198,7 @@ class Agreement(models.Model):
</p> </p>
""" """
return deftext return deftext
parties = fields.Html( parties = fields.Html(
string="Parties", string="Parties",
track_visibility="onchange", track_visibility="onchange",

Loading…
Cancel
Save