odoo-addon-account-credit-control 17.0.2.2.0.2__py3-none-any.whl → 17.0.2.2.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- odoo/addons/account_credit_control/README.rst +1 -1
- odoo/addons/account_credit_control/__manifest__.py +1 -1
- odoo/addons/account_credit_control/models/credit_control_communication.py +7 -4
- odoo/addons/account_credit_control/models/mail_mail.py +27 -4
- odoo/addons/account_credit_control/report/report_credit_control_summary.xml +11 -6
- odoo/addons/account_credit_control/static/description/index.html +1 -1
- odoo/addons/account_credit_control/views/credit_control_line.xml +2 -0
- {odoo_addon_account_credit_control-17.0.2.2.0.2.dist-info → odoo_addon_account_credit_control-17.0.2.2.2.dist-info}/METADATA +2 -2
- {odoo_addon_account_credit_control-17.0.2.2.0.2.dist-info → odoo_addon_account_credit_control-17.0.2.2.2.dist-info}/RECORD +11 -11
- {odoo_addon_account_credit_control-17.0.2.2.0.2.dist-info → odoo_addon_account_credit_control-17.0.2.2.2.dist-info}/WHEEL +0 -0
- {odoo_addon_account_credit_control-17.0.2.2.0.2.dist-info → odoo_addon_account_credit_control-17.0.2.2.2.dist-info}/top_level.txt +0 -0
|
@@ -7,7 +7,7 @@ Account Credit Control
|
|
|
7
7
|
!! This file is generated by oca-gen-addon-readme !!
|
|
8
8
|
!! changes will be overwritten. !!
|
|
9
9
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
10
|
-
!! source digest: sha256:
|
|
10
|
+
!! source digest: sha256:2eef36ea14e8ce5d86bf9c00a6b742f1e2c717330ef4d0a718c0f1bf43cf738f
|
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
12
12
|
|
|
13
13
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -194,14 +194,17 @@ class CreditControlCommunication(models.Model):
|
|
|
194
194
|
table_content = "<br/><h3>%s</h3>" % _("Invoices summary")
|
|
195
195
|
table_content += "<table style='%s'><tr>%s</tr>" % (table_style, tr_content)
|
|
196
196
|
for line in self.credit_control_line_ids:
|
|
197
|
-
|
|
197
|
+
name = line.invoice_id.name
|
|
198
|
+
if line.move_line_id.ref and line.move_line_id.ref != name:
|
|
199
|
+
name += f" ({line.move_line_id.ref})"
|
|
200
|
+
tr_content = "<td style='%s'>%s</td>" % (th_style, name)
|
|
198
201
|
tr_content += "<td style='%s'>%s</td>" % (
|
|
199
202
|
th_style,
|
|
200
203
|
line.invoice_id.payment_reference or "",
|
|
201
204
|
)
|
|
202
205
|
tr_content += "<td style='%s'>%s</td>" % (
|
|
203
206
|
th_style,
|
|
204
|
-
format_date(self.env, line.
|
|
207
|
+
format_date(self.env, line.date_entry),
|
|
205
208
|
)
|
|
206
209
|
tr_content += "<td style='%s'>%s</td>" % (
|
|
207
210
|
th_style,
|
|
@@ -209,11 +212,11 @@ class CreditControlCommunication(models.Model):
|
|
|
209
212
|
)
|
|
210
213
|
tr_content += "<td style='%s'>%s</td>" % (
|
|
211
214
|
th_style,
|
|
212
|
-
format_amount(self.env, line.
|
|
215
|
+
format_amount(self.env, line.amount_due, line.currency_id),
|
|
213
216
|
)
|
|
214
217
|
tr_content += "<td style='%s'>%s</td>" % (
|
|
215
218
|
th_style,
|
|
216
|
-
format_amount(self.env, line.
|
|
219
|
+
format_amount(self.env, line.balance_due, line.currency_id),
|
|
217
220
|
)
|
|
218
221
|
table_content += "<tr>%s</tr>" % tr_content
|
|
219
222
|
table_content += "</table>"
|
|
@@ -8,10 +8,7 @@ from odoo import models
|
|
|
8
8
|
class Mail(models.Model):
|
|
9
9
|
_inherit = "mail.mail"
|
|
10
10
|
|
|
11
|
-
def
|
|
12
|
-
self, success_pids, failure_reason=False, failure_type=None
|
|
13
|
-
):
|
|
14
|
-
"""Mark credit control lines states."""
|
|
11
|
+
def _update_control_line_status(self):
|
|
15
12
|
for mail in self:
|
|
16
13
|
msg = mail.mail_message_id
|
|
17
14
|
if msg.model != "credit.control.communication":
|
|
@@ -23,8 +20,34 @@ class Mail(models.Model):
|
|
|
23
20
|
)
|
|
24
21
|
new_state = "sent" if mail.state == "sent" else "email_error"
|
|
25
22
|
lines.write({"state": new_state})
|
|
23
|
+
|
|
24
|
+
def _postprocess_sent_message(
|
|
25
|
+
self, success_pids, failure_reason=False, failure_type=None
|
|
26
|
+
):
|
|
27
|
+
"""Mark credit control lines states."""
|
|
28
|
+
self._update_control_line_status()
|
|
26
29
|
return super()._postprocess_sent_message(
|
|
27
30
|
success_pids=success_pids,
|
|
28
31
|
failure_reason=failure_reason,
|
|
29
32
|
failure_type=failure_type,
|
|
30
33
|
)
|
|
34
|
+
|
|
35
|
+
def _send(
|
|
36
|
+
self,
|
|
37
|
+
auto_commit=False,
|
|
38
|
+
raise_exception=False,
|
|
39
|
+
smtp_session=None,
|
|
40
|
+
alias_domain_id=False,
|
|
41
|
+
):
|
|
42
|
+
# because of
|
|
43
|
+
# https://github.com/odoo/odoo/blob/bcba6c0dda4818e67a9023beb26593a7d74ff6a6/
|
|
44
|
+
# addons/mail/models/mail_mail.py#L606-L607
|
|
45
|
+
# we don't go through _postprocess_sent_message if the address is blacklisted
|
|
46
|
+
no_postprocess = self.filtered(lambda m: m.state != "outgoing")
|
|
47
|
+
no_postprocess._update_control_line_status()
|
|
48
|
+
return super()._send(
|
|
49
|
+
auto_commit=auto_commit,
|
|
50
|
+
raise_exception=raise_exception,
|
|
51
|
+
smtp_session=smtp_session,
|
|
52
|
+
alias_domain_id=alias_domain_id,
|
|
53
|
+
)
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
<th>Invoice number</th>
|
|
32
32
|
<th>Invoice date</th>
|
|
33
33
|
<th>Date due</th>
|
|
34
|
-
<th class="text-
|
|
35
|
-
<th class="text-
|
|
34
|
+
<th class="text-end">Invoiced amount</th>
|
|
35
|
+
<th class="text-end">Open amount</th>
|
|
36
36
|
</tr>
|
|
37
37
|
</thead>
|
|
38
38
|
<tbody>
|
|
@@ -40,6 +40,11 @@
|
|
|
40
40
|
<t t-if="l.invoice_id">
|
|
41
41
|
<td>
|
|
42
42
|
<span t-field="l.invoice_id.name" />
|
|
43
|
+
<t
|
|
44
|
+
t-if="l.move_line_id.ref and l.move_line_id.ref!=l.invoice_id.name"
|
|
45
|
+
>
|
|
46
|
+
(<span t-field="l.move_line_id.ref" />)
|
|
47
|
+
</t>
|
|
43
48
|
</td>
|
|
44
49
|
</t>
|
|
45
50
|
<t t-if="not l.invoice_id">
|
|
@@ -53,13 +58,13 @@
|
|
|
53
58
|
<td>
|
|
54
59
|
<span t-field="l.date_due" />
|
|
55
60
|
</td>
|
|
56
|
-
<td class="text-
|
|
61
|
+
<td class="text-end">
|
|
57
62
|
<span
|
|
58
63
|
t-field="l.amount_due"
|
|
59
64
|
t-options="{'widget': 'monetary', 'display_currency': l.currency_id or l.company_id.currency_id}"
|
|
60
65
|
/>
|
|
61
66
|
</td>
|
|
62
|
-
<td class="text-
|
|
67
|
+
<td class="text-end">
|
|
63
68
|
<span
|
|
64
69
|
t-field="l.balance_due"
|
|
65
70
|
t-options="{'widget': 'monetary', 'display_currency': l.currency_id or l.company_id.currency_id}"
|
|
@@ -77,7 +82,7 @@
|
|
|
77
82
|
<td>
|
|
78
83
|
<strong>Total Invoiced</strong>
|
|
79
84
|
</td>
|
|
80
|
-
<td class="text-
|
|
85
|
+
<td class="text-end">
|
|
81
86
|
<span
|
|
82
87
|
t-field="doc.total_invoiced"
|
|
83
88
|
t-options="{'widget': 'monetary', 'display_currency': doc.currency_id}"
|
|
@@ -88,7 +93,7 @@
|
|
|
88
93
|
<td>
|
|
89
94
|
<strong>Total Due</strong>
|
|
90
95
|
</td>
|
|
91
|
-
<td class="text-
|
|
96
|
+
<td class="text-end">
|
|
92
97
|
<span
|
|
93
98
|
t-field="doc.total_due"
|
|
94
99
|
t-options="{'widget': 'monetary', 'display_currency': doc.currency_id}"
|
|
@@ -367,7 +367,7 @@ ul.auto-toc {
|
|
|
367
367
|
!! This file is generated by oca-gen-addon-readme !!
|
|
368
368
|
!! changes will be overwritten. !!
|
|
369
369
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
370
|
-
!! source digest: sha256:
|
|
370
|
+
!! source digest: sha256:2eef36ea14e8ce5d86bf9c00a6b742f1e2c717330ef4d0a718c0f1bf43cf738f
|
|
371
371
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
372
372
|
<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&target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
|
373
373
|
<p>Account Credit Control module is a part of Financial Tools used in
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
</group>
|
|
24
24
|
<group>
|
|
25
25
|
<field name="date" readonly="state != 'draft'" />
|
|
26
|
+
<field name="date_entry" />
|
|
26
27
|
<field name="date_due" readonly="state != 'draft'" />
|
|
27
28
|
<field name="channel" readonly="state != 'draft'" />
|
|
28
29
|
<field name="date_sent" readonly="state != 'draft'" />
|
|
@@ -213,6 +214,7 @@
|
|
|
213
214
|
open_form_view="True"
|
|
214
215
|
>
|
|
215
216
|
<field name="date" readonly="state != 'draft'" />
|
|
217
|
+
<field name="date_entry" />
|
|
216
218
|
<field name="date_due" readonly="state != 'draft'" />
|
|
217
219
|
<field name="level" />
|
|
218
220
|
<field name="manually_overridden" readonly="state != 'draft'" />
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odoo-addon-account_credit_control
|
|
3
|
-
Version: 17.0.2.2.
|
|
3
|
+
Version: 17.0.2.2.2
|
|
4
4
|
Requires-Python: >=3.10
|
|
5
5
|
Requires-Dist: odoo>=17.0a,<17.1dev
|
|
6
6
|
Summary: Account Credit Control
|
|
@@ -22,7 +22,7 @@ Account Credit Control
|
|
|
22
22
|
!! This file is generated by oca-gen-addon-readme !!
|
|
23
23
|
!! changes will be overwritten. !!
|
|
24
24
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
25
|
-
!! source digest: sha256:
|
|
25
|
+
!! source digest: sha256:2eef36ea14e8ce5d86bf9c00a6b742f1e2c717330ef4d0a718c0f1bf43cf738f
|
|
26
26
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
27
27
|
|
|
28
28
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
odoo/addons/account_credit_control/README.rst,sha256=
|
|
1
|
+
odoo/addons/account_credit_control/README.rst,sha256=PNzY1isJ3YRFeOga2cGrcne6dkOGlxQTYb1q059GTCQ,5397
|
|
2
2
|
odoo/addons/account_credit_control/__init__.py,sha256=8MjrwJNjAjKy6j77I1529EUbQMh7TZ867lnz-KzifyI,127
|
|
3
|
-
odoo/addons/account_credit_control/__manifest__.py,sha256=
|
|
3
|
+
odoo/addons/account_credit_control/__manifest__.py,sha256=ATlKbZ4D9egtwngZtEHyKVVPZT_KGiFCrDaNtIgxSv4,1598
|
|
4
4
|
odoo/addons/account_credit_control/data/data.xml,sha256=KmNx4QU2OJ0pcC8O1bXJLqzVKyg-9wfMRJwdrSLDpyo,10879
|
|
5
5
|
odoo/addons/account_credit_control/demo/res_users.xml,sha256=KWDhrbbE4VTCHpkvFMu49yeLkGdwIson7hOkboR-0dE,372
|
|
6
6
|
odoo/addons/account_credit_control/i18n/account_credit_control.pot,sha256=yIJBxomsUNNZgii68bfAVPTo6QB9xmQwhgn8N8MN_W8,76961
|
|
@@ -83,11 +83,11 @@ odoo/addons/account_credit_control/i18n/zh_TW.po,sha256=tVXdUpjiHo32ocmY3dnq6pCH
|
|
|
83
83
|
odoo/addons/account_credit_control/models/__init__.py,sha256=sb3eOYTLCrhAigyAPEqvfhhTc5oSQoUOqCju7LhgeNI,404
|
|
84
84
|
odoo/addons/account_credit_control/models/account_account.py,sha256=k7A1hrH2xi-em9uvuBsYuAj-UviL1s_X7wK0GprbZI4,503
|
|
85
85
|
odoo/addons/account_credit_control/models/account_move.py,sha256=MzN_JSc7GcuDq3YsXOWs7pgk3e8Wt2QtFRlxifoUe24,2128
|
|
86
|
-
odoo/addons/account_credit_control/models/credit_control_communication.py,sha256=
|
|
86
|
+
odoo/addons/account_credit_control/models/credit_control_communication.py,sha256=7TvNm5MfjtADU393ZWKhyvBEAXJgwRBlmcY3wXsOPes,10596
|
|
87
87
|
odoo/addons/account_credit_control/models/credit_control_line.py,sha256=o_OdzGSijBCTEWYwXT2NbQXGpS56d7G3I-tkU3CcJrc,10402
|
|
88
88
|
odoo/addons/account_credit_control/models/credit_control_policy.py,sha256=tSV87CLaPpQ3Cq-LJPU5dYEIIlzfh5vaR20o7gmjVxE,18303
|
|
89
89
|
odoo/addons/account_credit_control/models/credit_control_run.py,sha256=TcVXDibr1_rIqYWLZIg_X9hrUYCtlkRmoL9fZ9OX9R0,7840
|
|
90
|
-
odoo/addons/account_credit_control/models/mail_mail.py,sha256=
|
|
90
|
+
odoo/addons/account_credit_control/models/mail_mail.py,sha256=gNwxVNmBFTxXQqTGWC7gmGiP0encV6vt7AxK8RuZqOc,1989
|
|
91
91
|
odoo/addons/account_credit_control/models/mail_message.py,sha256=ZogeU-PTBLTNaW19w49cEYzKgEDcTO9FvCJTQ2Mwm7Q,818
|
|
92
92
|
odoo/addons/account_credit_control/models/res_company.py,sha256=vmoBLc6EmvuwRgUeISjkrDKjwcxv_y94ejVDOA5FDmE,793
|
|
93
93
|
odoo/addons/account_credit_control/models/res_config_settings.py,sha256=JSYMvFivdXWyDusoKY-dhuCfLotOlqA1RrbIYN7HxgQ,1124
|
|
@@ -100,11 +100,11 @@ odoo/addons/account_credit_control/report/__init__.py,sha256=5yWnkU7tiAw2FSJdD_Z
|
|
|
100
100
|
odoo/addons/account_credit_control/report/account_credit_control_analysis.py,sha256=8lKQWFNWk9EbpUn8e0DuPI9Gl6oOpI2ZsCruyhDTdcY,3526
|
|
101
101
|
odoo/addons/account_credit_control/report/account_credit_control_analysis.xml,sha256=t6y2zGoxsfnT8HCyc2vnBbzBg6wk-wig9ZpaV1mIypA,2222
|
|
102
102
|
odoo/addons/account_credit_control/report/report.xml,sha256=ajgYqWfHp0Nz3jkSJY1ZV1EMTi8KLGT5QaondJwQq-s,622
|
|
103
|
-
odoo/addons/account_credit_control/report/report_credit_control_summary.xml,sha256
|
|
103
|
+
odoo/addons/account_credit_control/report/report_credit_control_summary.xml,sha256=-5ckNSzLXVfxJmBcLTYf_qoXWPHRHne56p53_vwpfOk,5806
|
|
104
104
|
odoo/addons/account_credit_control/security/account_security.xml,sha256=72GmbiYqrJBdjAap88o3k-g8Y76jM5CCIZbZc6_TGuY,4071
|
|
105
105
|
odoo/addons/account_credit_control/security/ir.model.access.csv,sha256=FgKzKdftXknPsreudq4NdvaGqxuUaVWWxGgmrfjHqRA,5531
|
|
106
106
|
odoo/addons/account_credit_control/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
|
107
|
-
odoo/addons/account_credit_control/static/description/index.html,sha256=
|
|
107
|
+
odoo/addons/account_credit_control/static/description/index.html,sha256=vH8v81bpxnKKHGNtVCzXXYuNgcuFr48i8v_NYudU0dU,16015
|
|
108
108
|
odoo/addons/account_credit_control/tests/__init__.py,sha256=ytdwXdWp6qfFDhN08R3rfI-w_AriEuONj3VSBV3Ztb0,206
|
|
109
109
|
odoo/addons/account_credit_control/tests/test_account_move.py,sha256=H62QDrGocrqHKK1ayf5DaUnerCo0_MHrFjgo__fdK68,11178
|
|
110
110
|
odoo/addons/account_credit_control/tests/test_credit_control_policy.py,sha256=IzBsyIf7iJXUP3jG3_T2yW6bKLJ4HbcvAuyfmC2Wui8,3210
|
|
@@ -112,7 +112,7 @@ odoo/addons/account_credit_control/tests/test_credit_control_run.py,sha256=57h13
|
|
|
112
112
|
odoo/addons/account_credit_control/tests/test_res_partner.py,sha256=GnQsu6T2suBp_44nJlUjTIYs3UNhrNpQWvuYgnWSz1U,1696
|
|
113
113
|
odoo/addons/account_credit_control/views/account_move.xml,sha256=gSoz9Zd0YAEQdfkIh8g1yqqw0XQWXy5kxa6tMVbj7G0,2145
|
|
114
114
|
odoo/addons/account_credit_control/views/credit_control_communication.xml,sha256=r9NzBXkV7qQia3698EjDc--F7Ay3LFY3nEmFwiFliGM,6821
|
|
115
|
-
odoo/addons/account_credit_control/views/credit_control_line.xml,sha256=
|
|
115
|
+
odoo/addons/account_credit_control/views/credit_control_line.xml,sha256=XpHHXo3M9cB6ogTznAogcVD7HYqto6SxIbdC6LgK3d4,11971
|
|
116
116
|
odoo/addons/account_credit_control/views/credit_control_policy.xml,sha256=sp-hU8YW93ce1DTTKkWYfezBq2KPHIvCYjkbiF-G7c4,7981
|
|
117
117
|
odoo/addons/account_credit_control/views/credit_control_run.xml,sha256=95xgtEzNqR06jOOfyR8Rw3mkqvtxNiynTnt6L3znlJ8,5637
|
|
118
118
|
odoo/addons/account_credit_control/views/res_company.xml,sha256=aTBE7IoPHIRjPKG3A-CYaTcq-1x5BHPw3Lcotepnso8,954
|
|
@@ -128,7 +128,7 @@ odoo/addons/account_credit_control/wizard/credit_control_policy_changer_view.xml
|
|
|
128
128
|
odoo/addons/account_credit_control/wizard/credit_control_printer.py,sha256=1UhTbmiZW6Do2x-2D-K-Lrv003P3P9VlhstVjfJBzZo,1816
|
|
129
129
|
odoo/addons/account_credit_control/wizard/credit_control_printer_view.xml,sha256=PbziKrepf9o5ocwZlWdhPwWCkaa2_6AhuoKMp6rEzWI,2101
|
|
130
130
|
odoo/addons/account_credit_control/wizard/mail_compose_message.py,sha256=JCnfhE338Z9ebZliiGKlJaCpZOjit5AQwRPKqwUAB_8,1063
|
|
131
|
-
odoo_addon_account_credit_control-17.0.2.2.
|
|
132
|
-
odoo_addon_account_credit_control-17.0.2.2.
|
|
133
|
-
odoo_addon_account_credit_control-17.0.2.2.
|
|
134
|
-
odoo_addon_account_credit_control-17.0.2.2.
|
|
131
|
+
odoo_addon_account_credit_control-17.0.2.2.2.dist-info/METADATA,sha256=u4afjUXdetjpdPeXSwsW-wQZovkaP_yzs-nVcLNqkPM,5961
|
|
132
|
+
odoo_addon_account_credit_control-17.0.2.2.2.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
|
133
|
+
odoo_addon_account_credit_control-17.0.2.2.2.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
|
134
|
+
odoo_addon_account_credit_control-17.0.2.2.2.dist-info/RECORD,,
|
|
File without changes
|