Skip to content

Commit

Permalink
[IMP] : pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkhao committed Jan 10, 2025
1 parent 96deb08 commit 6dcdce0
Show file tree
Hide file tree
Showing 9 changed files with 75 additions and 73 deletions.
10 changes: 5 additions & 5 deletions account_credit_control/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ Account Credit Control
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcredit--control-lightgray.png?logo=github
:target: https://github.com/OCA/credit-control/tree/17.0/account_credit_control
:target: https://github.com/OCA/credit-control/tree/18.0/account_credit_control
:alt: OCA/credit-control
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/credit-control-17-0/credit-control-17-0-account_credit_control
:target: https://translation.odoo-community.org/projects/credit-control-18-0/credit-control-18-0-account_credit_control
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/credit-control&target_branch=17.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/credit-control&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|
Expand Down Expand Up @@ -86,7 +86,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/credit-control/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/credit-control/issues/new?body=module:%20account_credit_control%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/credit-control/issues/new?body=module:%20account_credit_control%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Expand Down Expand Up @@ -142,6 +142,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/credit-control <https://github.com/OCA/credit-control/tree/17.0/account_credit_control>`_ project on GitHub.
This module is part of the `OCA/credit-control <https://github.com/OCA/credit-control/tree/18.0/account_credit_control>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
95 changes: 50 additions & 45 deletions account_credit_control/data/data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
eval="[(4, ref('account_credit_control.credit_control_summary'))]"
/>
<field name="body_html" type="html">
<p>Dear <t t-out="object.contact_address_id.name or '' " />,</p>
<br />
<br />
<p><t t-out="object.policy_level_id.custom_mail_text or '' " /></p>
<p>Dear <t t-out="object.contact_address_id.name or '' " />,</p>
<br />
<br />
<p>
<t t-out="object.policy_level_id.custom_mail_text or '' " />
</p>
</field>
</record>
<!-- policy no follow -->
Expand Down Expand Up @@ -62,15 +64,15 @@ Best regards
</field>
<field name="mail_show_invoice_detail" eval="True" />
<field name="custom_mail_text" type="html">
<p
<p
>Our records indicate that we have not received the payment of the invoices mentioned in the attached document.
<br />
If it has already been sent, please disregard this notice. If not, please proceed with payment within 10 days.</p>
<br />
<p>Thank you in advance for your anticipated cooperation in this matter.</p>
<br />
<p>Best regards</p>
</field>
<br />
<p>Thank you in advance for your anticipated cooperation in this matter.</p>
<br />
<p>Best regards</p>
</field>
</record>
<record model="credit.control.policy.level" id="3_time_2">
<field name="name">30 days end of month</field>
Expand All @@ -91,15 +93,16 @@ Best regards
</field>
<field name="mail_show_invoice_detail" eval="True" />
<field name="custom_mail_text" type="html">
<p
<p
>Our records indicate that we have not yet received the payment of the invoices mentioned in the attached document despite our first reminder.<br
/>
/>
If it has already been sent, please disregard this notice. If not, please proceed with payment within 5 days.</p>
<br />
<p>Thank you in advance for your anticipated cooperation in this matter.</p><br />
<br />
<p>Best regards</p>
</field>
<br />
<p>Thank you in advance for your anticipated cooperation in this matter.</p>
<br />
<br />
<p>Best regards</p>
</field>
</record>
<record model="credit.control.policy.level" id="3_time_3">
<field name="name">10 days last reminder</field>
Expand All @@ -123,20 +126,21 @@ Best regards
</field>
<field name="mail_show_invoice_detail" eval="True" />
<field name="custom_mail_text" type="html">
<p
<p
>Our records indicate that we still have not received the payment of the invoices mentioned in the attached document despite our two reminders.<br
/>
/>
If payment have already been sent, please disregard this notice. If not, please proceed with payment.<br
/>
/>
If your payment has not been received in the next 5 days, your file will be transferred to our debt collection agency.</p>
<br />
<p>Should you need us to arrange a payment plan for you, please advise.<br />
<br />
<p>Should you need us to arrange a payment plan for you, please advise.<br
/>
A customer account statement is enclosed for you convenience.</p>
<br />
<p>Thank you in advance for your anticipated cooperation in this matter.</p>
<br />
<p>Best regards</p>
</field>
<br />
<p>Thank you in advance for your anticipated cooperation in this matter.</p>
<br />
<p>Best regards</p>
</field>
</record>
<!-- policy 2 -->
<record model="credit.control.policy" id="credit_control_2_time">
Expand All @@ -161,15 +165,15 @@ Best regards
</field>
<field name="mail_show_invoice_detail" eval="True" />
<field name="custom_mail_text" type="html">
<p
<p
>Our records indicate that we have not received the payment of the invoices mentioned in the attached document.<br
/>
/>
If it has already been sent, please disregard this notice. If not, please proceed with payment within 10 days.</p>
<br />
<p>Thank you in advance for your anticipated cooperation in this matter.</p>
<br />
<p>Best regards</p>
</field>
<br />
<p>Thank you in advance for your anticipated cooperation in this matter.</p>
<br />
<p>Best regards</p>
</field>
</record>
<record model="credit.control.policy.level" id="2_time_2">
<field name="name">60 days last reminder</field>
Expand All @@ -194,22 +198,23 @@ Thank you in advance for your anticipated cooperation in this matter.
Best regards
</field>
<field name="custom_mail_text" type="html">
<p
<p
>Our records indicate that we still have not received the payment of the invoices mentioned in the attached document despite our reminder.</p>
<br />
<p
<br />
<p
>If payment have already been sent, please disregard this notice. If not, please proceed with payment.<br
/>
/>
If your payment has not been received in the next 5 days, your file will be transferred to our debt
collection agency.</p>
<br />
<p>Should you need us to arrange a payment plan for you, please advise.<br />
<br />
<p>Should you need us to arrange a payment plan for you, please advise.<br
/>
A customer account statement is enclosed for you convenience.</p>
<br />
<p>Thank you in advance for your anticipated cooperation in this matter.</p>
<br />
<p>Best regards</p>
</field>
<br />
<p>Thank you in advance for your anticipated cooperation in this matter.</p>
<br />
<p>Best regards</p>
</field>
</record>
<record id="base.main_company" model="res.company">
<field name="credit_policy_id" ref="credit_control_3_time" />
Expand Down
17 changes: 8 additions & 9 deletions account_credit_control/report/report.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="credit_control_summary" model="ir.actions.report">
<field name="name">Credit Control Summary</field>
<field name="model">credit.control.communication</field>
<field name="report_type">qweb-pdf</field>
<field
<record id="credit_control_summary" model="ir.actions.report">
<field name="name">Credit Control Summary</field>
<field name="model">credit.control.communication</field>
<field name="report_type">qweb-pdf</field>
<field
name="report_name"
>account_credit_control.report_credit_control_summary</field>
<field
<field
name="report_file"
>account_credit_control.report_credit_control_summary</field>
<field name="binding_type">report</field>
</record>

<field name="binding_type">report</field>
</record>
</odoo>
18 changes: 10 additions & 8 deletions account_credit_control/static/description/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Expand All @@ -9,10 +8,11 @@

/*
:Author: David Goodger ([email protected])
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.

Default cascading style sheet for the HTML output of Docutils.
Despite the name, some widely supported CSS2 features are used.

See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
Expand Down Expand Up @@ -275,7 +275,7 @@
margin-left: 2em ;
margin-right: 2em }

pre.code .ln { color: grey; } /* line numbers */
pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
Expand All @@ -301,7 +301,7 @@
span.pre {
white-space: pre }

span.problematic {
span.problematic, pre.problematic {
color: red }

span.section-subtitle {
Expand Down Expand Up @@ -369,7 +369,7 @@ <h1 class="title">Account Credit Control</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:c817156f4e3b4729db81454535ca2062c6ce919e7453a032447310da294a7360
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/credit-control/tree/17.0/account_credit_control"><img alt="OCA/credit-control" src="https://img.shields.io/badge/github-OCA%2Fcredit--control-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/credit-control-17-0/credit-control-17-0-account_credit_control"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/credit-control&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/credit-control/tree/18.0/account_credit_control"><img alt="OCA/credit-control" src="https://img.shields.io/badge/github-OCA%2Fcredit--control-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/credit-control-18-0/credit-control-18-0-account_credit_control"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/credit-control&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>Account Credit Control module is a part of Financial Tools used in
business to ensure that once sales are made they are realised as cash.
This module helps to identify outstanding debt beyond tolerance level
Expand Down Expand Up @@ -428,7 +428,7 @@ <h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/credit-control/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/credit-control/issues/new?body=module:%20account_credit_control%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/credit-control/issues/new?body=module:%20account_credit_control%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand Down Expand Up @@ -475,11 +475,13 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
</a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/credit-control/tree/17.0/account_credit_control">OCA/credit-control</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/credit-control/tree/18.0/account_credit_control">OCA/credit-control</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions account_credit_control/views/credit_control_communication.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Go to <i
>Invoicing > Credit Control > Credit Control Run</i> to create a new credit control communication process.
>Invoicing > Credit Control > Credit Control Run</i> to create a new credit control communication process.
</p>
<p>
That's the most common way of creating these records. However, you can do it from here too if you want, by pressing <i
>Create</i>.
>Create</i>.
</p>
</field>
</record>
Expand Down
1 change: 0 additions & 1 deletion account_credit_control/views/res_partner.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<record id="act_partner_credit_relation_relation" model="ir.actions.act_window">
<field name="name">Credit Lines</field>
<field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
</record>
<!-- for menu -->


<record
id="open_credit_line_emailer_wizard_menu_action"
model="ir.actions.act_window"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,4 @@
<field name="target">new</field>
<field name="view_mode">form</field>
</record>

</odoo>
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
</record>
<!-- for menu -->


<record
id="open_credit_line_printer_wizard_menu_action"
model="ir.actions.act_window"
Expand Down

0 comments on commit 6dcdce0

Please sign in to comment.