[ADD][account_credit_control] Add an additional text after the details of the credit control summary report (#534)

This commit is contained in:
Benjamin Willig (ACSONE)
2017-09-01 16:38:32 +02:00
committed by Pedro M. Baeza
parent 0e75c7e464
commit 6dc2880f36
4 changed files with 10 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
# Copyright 2017 Okia SPRL (https://okia.be)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{'name': 'Account Credit Control',
'version': '10.0.1.0.0',
'version': '10.0.1.1.0',
'author': "Camptocamp,Odoo Community Association (OCA),Okia",
'maintainer': 'Camptocamp',
'category': 'Finance',

View File

@@ -224,6 +224,8 @@ class CreditControlPolicyLevel(models.Model):
translate=True)
custom_mail_text = fields.Html(string='Custom Mail Message',
required=True, translate=True)
custom_text_after_details = fields.Text(
string='Custom Message after details', translate=True)
_sql_constraint = [('unique level',
'UNIQUE (policy_id, level)',

View File

@@ -90,6 +90,10 @@
</div>
</div>
<t t-if="doc.current_policy_level.custom_text_after_details">
<p class="mt32 mb32" t-field="doc.current_policy_level.custom_text_after_details"/>
</t>
</div>
</t>
</template>

View File

@@ -40,6 +40,9 @@
<field name="custom_text"
colspan="4"/>
<newline/>
<field name="custom_text_after_details"
colspan="4"/>
<newline/>
<field name="custom_mail_text"
colspan="4"/>
</group>