mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[ADD][account_credit_control] Add an additional text after the details of the credit control summary report (#534)
This commit is contained in:
committed by
Pedro M. Baeza
parent
0e75c7e464
commit
6dc2880f36
@@ -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',
|
||||
|
||||
@@ -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)',
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user