odoo-addon-account-credit-control 17.0.2.2.2__py3-none-any.whl → 18.0.1.0.0.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 +8 -6
- odoo/addons/account_credit_control/__manifest__.py +1 -1
- odoo/addons/account_credit_control/data/data.xml +50 -45
- odoo/addons/account_credit_control/i18n/account_credit_control.pot +15 -60
- odoo/addons/account_credit_control/migrations/18.0.1.0.0/noupdate_changes.xml +21 -0
- odoo/addons/account_credit_control/migrations/18.0.1.0.0/post-migration.py +11 -0
- odoo/addons/account_credit_control/models/__init__.py +0 -1
- odoo/addons/account_credit_control/models/credit_control_line.py +1 -1
- odoo/addons/account_credit_control/models/credit_control_policy.py +7 -9
- odoo/addons/account_credit_control/models/mail_mail.py +4 -27
- odoo/addons/account_credit_control/readme/CONTRIBUTORS.md +2 -0
- odoo/addons/account_credit_control/report/account_credit_control_analysis.xml +3 -3
- odoo/addons/account_credit_control/report/report.xml +8 -9
- odoo/addons/account_credit_control/security/account_security.xml +6 -8
- odoo/addons/account_credit_control/static/description/index.html +6 -4
- odoo/addons/account_credit_control/tests/test_account_move.py +3 -6
- odoo/addons/account_credit_control/tests/test_credit_control_policy.py +2 -8
- odoo/addons/account_credit_control/tests/test_credit_control_run.py +12 -14
- odoo/addons/account_credit_control/tests/test_res_partner.py +37 -19
- odoo/addons/account_credit_control/views/account_move.xml +2 -2
- odoo/addons/account_credit_control/views/credit_control_communication.xml +9 -18
- odoo/addons/account_credit_control/views/credit_control_line.xml +7 -28
- odoo/addons/account_credit_control/views/credit_control_policy.xml +14 -14
- odoo/addons/account_credit_control/views/credit_control_run.xml +5 -5
- odoo/addons/account_credit_control/views/res_partner.xml +11 -12
- odoo/addons/account_credit_control/wizard/credit_control_emailer_view.xml +0 -1
- odoo/addons/account_credit_control/wizard/credit_control_marker.py +1 -1
- odoo/addons/account_credit_control/wizard/credit_control_policy_changer_view.xml +0 -1
- odoo/addons/account_credit_control/wizard/credit_control_printer_view.xml +0 -1
- {odoo_addon_account_credit_control-17.0.2.2.2.dist-info → odoo_addon_account_credit_control-18.0.1.0.0.2.dist-info}/METADATA +11 -9
- {odoo_addon_account_credit_control-17.0.2.2.2.dist-info → odoo_addon_account_credit_control-18.0.1.0.0.2.dist-info}/RECORD +33 -32
- odoo/addons/account_credit_control/models/mail_message.py +0 -25
- {odoo_addon_account_credit_control-17.0.2.2.2.dist-info → odoo_addon_account_credit_control-18.0.1.0.0.2.dist-info}/WHEEL +0 -0
- {odoo_addon_account_credit_control-17.0.2.2.2.dist-info → odoo_addon_account_credit_control-18.0.1.0.0.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:62f3291d80cd43c777aa84d4777818c614789496f49c051ac34aaafd73a9bd83
|
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
12
12
|
|
|
13
13
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -17,13 +17,13 @@ Account Credit Control
|
|
|
17
17
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
|
18
18
|
:alt: License: AGPL-3
|
|
19
19
|
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcredit--control-lightgray.png?logo=github
|
|
20
|
-
:target: https://github.com/OCA/credit-control/tree/
|
|
20
|
+
:target: https://github.com/OCA/credit-control/tree/18.0/account_credit_control
|
|
21
21
|
:alt: OCA/credit-control
|
|
22
22
|
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
|
23
|
-
:target: https://translation.odoo-community.org/projects/credit-control-
|
|
23
|
+
:target: https://translation.odoo-community.org/projects/credit-control-18-0/credit-control-18-0-account_credit_control
|
|
24
24
|
:alt: Translate me on Weblate
|
|
25
25
|
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
|
26
|
-
:target: https://runboat.odoo-community.org/builds?repo=OCA/credit-control&target_branch=
|
|
26
|
+
:target: https://runboat.odoo-community.org/builds?repo=OCA/credit-control&target_branch=18.0
|
|
27
27
|
:alt: Try me on Runboat
|
|
28
28
|
|
|
29
29
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|
@@ -89,7 +89,7 @@ Bug Tracker
|
|
|
89
89
|
Bugs are tracked on `GitHub Issues <https://github.com/OCA/credit-control/issues>`_.
|
|
90
90
|
In case of trouble, please check there if your issue has already been reported.
|
|
91
91
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
92
|
-
`feedback <https://github.com/OCA/credit-control/issues/new?body=module:%20account_credit_control%0Aversion:%
|
|
92
|
+
`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**>`_.
|
|
93
93
|
|
|
94
94
|
Do not contact contributors directly about support or help with technical issues.
|
|
95
95
|
|
|
@@ -125,12 +125,14 @@ Contributors
|
|
|
125
125
|
- João Marques
|
|
126
126
|
- César A. Sánchez
|
|
127
127
|
- Víctor Martínez
|
|
128
|
+
- Carlos Lopez
|
|
128
129
|
|
|
129
130
|
- Enric Tobella <etobella@creublanca.es>
|
|
130
131
|
- Naglis Jonaitis (Versada UAB) <naglis@versada.eu>
|
|
131
132
|
- `360ERP <https://www.360erp.com>`__:
|
|
132
133
|
|
|
133
134
|
- Andrea Stirpe
|
|
135
|
+
- Kevin Khao
|
|
134
136
|
|
|
135
137
|
Maintainers
|
|
136
138
|
-----------
|
|
@@ -145,6 +147,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
|
145
147
|
mission is to support the collaborative development of Odoo features and
|
|
146
148
|
promote its widespread use.
|
|
147
149
|
|
|
148
|
-
This module is part of the `OCA/credit-control <https://github.com/OCA/credit-control/tree/
|
|
150
|
+
This module is part of the `OCA/credit-control <https://github.com/OCA/credit-control/tree/18.0/account_credit_control>`_ project on GitHub.
|
|
149
151
|
|
|
150
152
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
|
@@ -16,10 +16,12 @@
|
|
|
16
16
|
eval="[(4, ref('account_credit_control.credit_control_summary'))]"
|
|
17
17
|
/>
|
|
18
18
|
<field name="body_html" type="html">
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
<p>Dear <t t-out="object.contact_address_id.name or '' " />,</p>
|
|
20
|
+
<br />
|
|
21
|
+
<br />
|
|
22
|
+
<p>
|
|
23
|
+
<t t-out="object.policy_level_id.custom_mail_text or '' " />
|
|
24
|
+
</p>
|
|
23
25
|
</field>
|
|
24
26
|
</record>
|
|
25
27
|
<!-- policy no follow -->
|
|
@@ -62,15 +64,15 @@ Best regards
|
|
|
62
64
|
</field>
|
|
63
65
|
<field name="mail_show_invoice_detail" eval="True" />
|
|
64
66
|
<field name="custom_mail_text" type="html">
|
|
65
|
-
|
|
67
|
+
<p
|
|
66
68
|
>Our records indicate that we have not received the payment of the invoices mentioned in the attached document.
|
|
67
69
|
<br />
|
|
68
70
|
If it has already been sent, please disregard this notice. If not, please proceed with payment within 10 days.</p>
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
<br />
|
|
72
|
+
<p>Thank you in advance for your anticipated cooperation in this matter.</p>
|
|
73
|
+
<br />
|
|
74
|
+
<p>Best regards</p>
|
|
75
|
+
</field>
|
|
74
76
|
</record>
|
|
75
77
|
<record model="credit.control.policy.level" id="3_time_2">
|
|
76
78
|
<field name="name">30 days end of month</field>
|
|
@@ -91,15 +93,16 @@ Best regards
|
|
|
91
93
|
</field>
|
|
92
94
|
<field name="mail_show_invoice_detail" eval="True" />
|
|
93
95
|
<field name="custom_mail_text" type="html">
|
|
94
|
-
|
|
96
|
+
<p
|
|
95
97
|
>Our records indicate that we have not yet received the payment of the invoices mentioned in the attached document despite our first reminder.<br
|
|
96
|
-
|
|
98
|
+
/>
|
|
97
99
|
If it has already been sent, please disregard this notice. If not, please proceed with payment within 5 days.</p>
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
<br />
|
|
101
|
+
<p>Thank you in advance for your anticipated cooperation in this matter.</p>
|
|
102
|
+
<br />
|
|
103
|
+
<br />
|
|
104
|
+
<p>Best regards</p>
|
|
105
|
+
</field>
|
|
103
106
|
</record>
|
|
104
107
|
<record model="credit.control.policy.level" id="3_time_3">
|
|
105
108
|
<field name="name">10 days last reminder</field>
|
|
@@ -123,20 +126,21 @@ Best regards
|
|
|
123
126
|
</field>
|
|
124
127
|
<field name="mail_show_invoice_detail" eval="True" />
|
|
125
128
|
<field name="custom_mail_text" type="html">
|
|
126
|
-
|
|
129
|
+
<p
|
|
127
130
|
>Our records indicate that we still have not received the payment of the invoices mentioned in the attached document despite our two reminders.<br
|
|
128
|
-
|
|
131
|
+
/>
|
|
129
132
|
If payment have already been sent, please disregard this notice. If not, please proceed with payment.<br
|
|
130
|
-
|
|
133
|
+
/>
|
|
131
134
|
If your payment has not been received in the next 5 days, your file will be transferred to our debt collection agency.</p>
|
|
132
|
-
|
|
133
|
-
|
|
135
|
+
<br />
|
|
136
|
+
<p>Should you need us to arrange a payment plan for you, please advise.<br
|
|
137
|
+
/>
|
|
134
138
|
A customer account statement is enclosed for you convenience.</p>
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
139
|
+
<br />
|
|
140
|
+
<p>Thank you in advance for your anticipated cooperation in this matter.</p>
|
|
141
|
+
<br />
|
|
142
|
+
<p>Best regards</p>
|
|
143
|
+
</field>
|
|
140
144
|
</record>
|
|
141
145
|
<!-- policy 2 -->
|
|
142
146
|
<record model="credit.control.policy" id="credit_control_2_time">
|
|
@@ -161,15 +165,15 @@ Best regards
|
|
|
161
165
|
</field>
|
|
162
166
|
<field name="mail_show_invoice_detail" eval="True" />
|
|
163
167
|
<field name="custom_mail_text" type="html">
|
|
164
|
-
|
|
168
|
+
<p
|
|
165
169
|
>Our records indicate that we have not received the payment of the invoices mentioned in the attached document.<br
|
|
166
|
-
|
|
170
|
+
/>
|
|
167
171
|
If it has already been sent, please disregard this notice. If not, please proceed with payment within 10 days.</p>
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
172
|
+
<br />
|
|
173
|
+
<p>Thank you in advance for your anticipated cooperation in this matter.</p>
|
|
174
|
+
<br />
|
|
175
|
+
<p>Best regards</p>
|
|
176
|
+
</field>
|
|
173
177
|
</record>
|
|
174
178
|
<record model="credit.control.policy.level" id="2_time_2">
|
|
175
179
|
<field name="name">60 days last reminder</field>
|
|
@@ -194,22 +198,23 @@ Thank you in advance for your anticipated cooperation in this matter.
|
|
|
194
198
|
Best regards
|
|
195
199
|
</field>
|
|
196
200
|
<field name="custom_mail_text" type="html">
|
|
197
|
-
|
|
201
|
+
<p
|
|
198
202
|
>Our records indicate that we still have not received the payment of the invoices mentioned in the attached document despite our reminder.</p>
|
|
199
|
-
|
|
200
|
-
|
|
203
|
+
<br />
|
|
204
|
+
<p
|
|
201
205
|
>If payment have already been sent, please disregard this notice. If not, please proceed with payment.<br
|
|
202
|
-
|
|
206
|
+
/>
|
|
203
207
|
If your payment has not been received in the next 5 days, your file will be transferred to our debt
|
|
204
208
|
collection agency.</p>
|
|
205
|
-
|
|
206
|
-
|
|
209
|
+
<br />
|
|
210
|
+
<p>Should you need us to arrange a payment plan for you, please advise.<br
|
|
211
|
+
/>
|
|
207
212
|
A customer account statement is enclosed for you convenience.</p>
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
+
<br />
|
|
214
|
+
<p>Thank you in advance for your anticipated cooperation in this matter.</p>
|
|
215
|
+
<br />
|
|
216
|
+
<p>Best regards</p>
|
|
217
|
+
</field>
|
|
213
218
|
</record>
|
|
214
219
|
<record id="base.main_company" model="res.company">
|
|
215
220
|
<field name="credit_policy_id" ref="credit_control_3_time" />
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
#
|
|
5
5
|
msgid ""
|
|
6
6
|
msgstr ""
|
|
7
|
-
"Project-Id-Version: Odoo Server
|
|
7
|
+
"Project-Id-Version: Odoo Server 18.0\n"
|
|
8
8
|
"Report-Msgid-Bugs-To: \n"
|
|
9
9
|
"Last-Translator: \n"
|
|
10
10
|
"Language-Team: \n"
|
|
@@ -66,10 +66,12 @@ msgstr ""
|
|
|
66
66
|
#. module: account_credit_control
|
|
67
67
|
#: model:mail.template,body_html:account_credit_control.email_template_credit_control_base
|
|
68
68
|
msgid ""
|
|
69
|
-
"<p>Dear <t t-out=\"object.contact_address_id.name or '' \"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
69
|
+
"<p>Dear <t t-out=\"object.contact_address_id.name or '' \"/>,</p>\n"
|
|
70
|
+
" <br/>\n"
|
|
71
|
+
" <br/>\n"
|
|
72
|
+
" <p>\n"
|
|
73
|
+
" <t t-out=\"object.policy_level_id.custom_mail_text or '' \"/>\n"
|
|
74
|
+
" </p>\n"
|
|
73
75
|
" "
|
|
74
76
|
msgstr ""
|
|
75
77
|
|
|
@@ -110,7 +112,6 @@ msgstr ""
|
|
|
110
112
|
#. module: account_credit_control
|
|
111
113
|
#. odoo-python
|
|
112
114
|
#: code:addons/account_credit_control/models/credit_control_run.py:0
|
|
113
|
-
#, python-format
|
|
114
115
|
msgid ""
|
|
115
116
|
"A credit control line more recent than %(controlling_date)s exists at "
|
|
116
117
|
"%(lines_date)s"
|
|
@@ -124,7 +125,6 @@ msgstr ""
|
|
|
124
125
|
#. module: account_credit_control
|
|
125
126
|
#. odoo-python
|
|
126
127
|
#: code:addons/account_credit_control/models/credit_control_run.py:0
|
|
127
|
-
#, python-format
|
|
128
128
|
msgid ""
|
|
129
129
|
"A credit control run is already running in background, please try later."
|
|
130
130
|
msgstr ""
|
|
@@ -132,7 +132,6 @@ msgstr ""
|
|
|
132
132
|
#. module: account_credit_control
|
|
133
133
|
#. odoo-python
|
|
134
134
|
#: code:addons/account_credit_control/models/credit_control_run.py:0
|
|
135
|
-
#, python-format
|
|
136
135
|
msgid "A run has already been executed more recently (%s)"
|
|
137
136
|
msgstr ""
|
|
138
137
|
|
|
@@ -193,7 +192,6 @@ msgstr ""
|
|
|
193
192
|
#. module: account_credit_control
|
|
194
193
|
#. odoo-python
|
|
195
194
|
#: code:addons/account_credit_control/models/credit_control_communication.py:0
|
|
196
|
-
#, python-format
|
|
197
195
|
msgid "Amount Due"
|
|
198
196
|
msgstr ""
|
|
199
197
|
|
|
@@ -258,7 +256,6 @@ msgstr ""
|
|
|
258
256
|
#. module: account_credit_control
|
|
259
257
|
#. odoo-python
|
|
260
258
|
#: code:addons/account_credit_control/models/credit_control_policy.py:0
|
|
261
|
-
#, python-format
|
|
262
259
|
msgid "Can not get function for computation mode: %s is not implemented"
|
|
263
260
|
msgstr ""
|
|
264
261
|
|
|
@@ -371,16 +368,9 @@ msgstr ""
|
|
|
371
368
|
#. module: account_credit_control
|
|
372
369
|
#. odoo-python
|
|
373
370
|
#: code:addons/account_credit_control/wizard/credit_control_marker.py:0
|
|
374
|
-
#, python-format
|
|
375
371
|
msgid "Control Credit Line"
|
|
376
372
|
msgstr ""
|
|
377
373
|
|
|
378
|
-
#. module: account_credit_control
|
|
379
|
-
#: model_terms:ir.ui.view,arch_db:account_credit_control.credit_control_line_form
|
|
380
|
-
#: model_terms:ir.ui.view,arch_db:account_credit_control.credit_control_line_search
|
|
381
|
-
msgid "Control Credit Lines"
|
|
382
|
-
msgstr ""
|
|
383
|
-
|
|
384
374
|
#. module: account_credit_control
|
|
385
375
|
#: model:ir.model.fields,field_description:account_credit_control.field_credit_control_run__date
|
|
386
376
|
msgid "Controlling Date"
|
|
@@ -471,7 +461,6 @@ msgstr ""
|
|
|
471
461
|
#. module: account_credit_control
|
|
472
462
|
#: model:ir.model.fields,field_description:account_credit_control.field_account_bank_statement_line__credit_policy_id
|
|
473
463
|
#: model:ir.model.fields,field_description:account_credit_control.field_account_move__credit_policy_id
|
|
474
|
-
#: model:ir.model.fields,field_description:account_credit_control.field_account_payment__credit_policy_id
|
|
475
464
|
#: model:ir.model.fields,field_description:account_credit_control.field_res_company__credit_policy_id
|
|
476
465
|
#: model:ir.model.fields,field_description:account_credit_control.field_res_config_settings__credit_policy_id
|
|
477
466
|
#: model:ir.model.fields,field_description:account_credit_control.field_res_partner__credit_policy_id
|
|
@@ -511,7 +500,6 @@ msgstr ""
|
|
|
511
500
|
#: model:ir.model.fields,field_description:account_credit_control.field_account_account__credit_control_line_ids
|
|
512
501
|
#: model:ir.model.fields,field_description:account_credit_control.field_account_bank_statement_line__credit_control_line_ids
|
|
513
502
|
#: model:ir.model.fields,field_description:account_credit_control.field_account_move__credit_control_line_ids
|
|
514
|
-
#: model:ir.model.fields,field_description:account_credit_control.field_account_payment__credit_control_line_ids
|
|
515
503
|
#: model:ir.model.fields,field_description:account_credit_control.field_credit_control_communication__credit_control_line_ids
|
|
516
504
|
msgid "Credit Lines"
|
|
517
505
|
msgstr ""
|
|
@@ -542,16 +530,6 @@ msgstr ""
|
|
|
542
530
|
msgid "Credit control notification"
|
|
543
531
|
msgstr ""
|
|
544
532
|
|
|
545
|
-
#. module: account_credit_control
|
|
546
|
-
#: model_terms:ir.ui.view,arch_db:account_credit_control.credit_control_policy_form
|
|
547
|
-
msgid "Credit control policy"
|
|
548
|
-
msgstr ""
|
|
549
|
-
|
|
550
|
-
#. module: account_credit_control
|
|
551
|
-
#: model_terms:ir.ui.view,arch_db:account_credit_control.credit_control_run_form
|
|
552
|
-
msgid "Credit control run"
|
|
553
|
-
msgstr ""
|
|
554
|
-
|
|
555
533
|
#. module: account_credit_control
|
|
556
534
|
#: model_terms:ir.ui.view,arch_db:account_credit_control.credit_control_communication_search_view
|
|
557
535
|
#: model_terms:ir.ui.view,arch_db:account_credit_control.credit_control_line_search
|
|
@@ -696,7 +674,6 @@ msgstr ""
|
|
|
696
674
|
#. odoo-python
|
|
697
675
|
#: code:addons/account_credit_control/models/credit_control_communication.py:0
|
|
698
676
|
#: model:ir.model.fields,field_description:account_credit_control.field_credit_control_line__date_due
|
|
699
|
-
#, python-format
|
|
700
677
|
msgid "Due date"
|
|
701
678
|
msgstr ""
|
|
702
679
|
|
|
@@ -769,7 +746,6 @@ msgstr ""
|
|
|
769
746
|
#. module: account_credit_control
|
|
770
747
|
#. odoo-python
|
|
771
748
|
#: code:addons/account_credit_control/wizard/credit_control_emailer.py:0
|
|
772
|
-
#, python-format
|
|
773
749
|
msgid "Generated communications"
|
|
774
750
|
msgstr ""
|
|
775
751
|
|
|
@@ -844,7 +820,9 @@ msgstr ""
|
|
|
844
820
|
|
|
845
821
|
#. module: account_credit_control
|
|
846
822
|
#: model:ir.model.fields,help:account_credit_control.field_credit_control_communication__message_has_error
|
|
823
|
+
#: model:ir.model.fields,help:account_credit_control.field_credit_control_communication__message_has_sms_error
|
|
847
824
|
#: model:ir.model.fields,help:account_credit_control.field_credit_control_line__message_has_error
|
|
825
|
+
#: model:ir.model.fields,help:account_credit_control.field_credit_control_line__message_has_sms_error
|
|
848
826
|
msgid "If checked, some messages have a delivery error."
|
|
849
827
|
msgstr ""
|
|
850
828
|
|
|
@@ -877,7 +855,6 @@ msgstr ""
|
|
|
877
855
|
#. module: account_credit_control
|
|
878
856
|
#. odoo-python
|
|
879
857
|
#: code:addons/account_credit_control/models/credit_control_communication.py:0
|
|
880
|
-
#, python-format
|
|
881
858
|
msgid "Invoice amount"
|
|
882
859
|
msgstr ""
|
|
883
860
|
|
|
@@ -885,7 +862,6 @@ msgstr ""
|
|
|
885
862
|
#. odoo-python
|
|
886
863
|
#: code:addons/account_credit_control/models/credit_control_communication.py:0
|
|
887
864
|
#: model_terms:ir.ui.view,arch_db:account_credit_control.report_credit_control_summary_document
|
|
888
|
-
#, python-format
|
|
889
865
|
msgid "Invoice date"
|
|
890
866
|
msgstr ""
|
|
891
867
|
|
|
@@ -893,7 +869,6 @@ msgstr ""
|
|
|
893
869
|
#. odoo-python
|
|
894
870
|
#: code:addons/account_credit_control/models/credit_control_communication.py:0
|
|
895
871
|
#: model_terms:ir.ui.view,arch_db:account_credit_control.report_credit_control_summary_document
|
|
896
|
-
#, python-format
|
|
897
872
|
msgid "Invoice number"
|
|
898
873
|
msgstr ""
|
|
899
874
|
|
|
@@ -905,7 +880,6 @@ msgstr ""
|
|
|
905
880
|
#. module: account_credit_control
|
|
906
881
|
#. odoo-python
|
|
907
882
|
#: code:addons/account_credit_control/models/credit_control_communication.py:0
|
|
908
|
-
#, python-format
|
|
909
883
|
msgid "Invoices summary"
|
|
910
884
|
msgstr ""
|
|
911
885
|
|
|
@@ -1095,11 +1069,6 @@ msgstr ""
|
|
|
1095
1069
|
msgid "Max Level"
|
|
1096
1070
|
msgstr ""
|
|
1097
1071
|
|
|
1098
|
-
#. module: account_credit_control
|
|
1099
|
-
#: model:ir.model,name:account_credit_control.model_mail_message
|
|
1100
|
-
msgid "Message"
|
|
1101
|
-
msgstr ""
|
|
1102
|
-
|
|
1103
1072
|
#. module: account_credit_control
|
|
1104
1073
|
#: model:ir.model.fields,field_description:account_credit_control.field_credit_control_communication__message_has_error
|
|
1105
1074
|
#: model:ir.model.fields,field_description:account_credit_control.field_credit_control_line__message_has_error
|
|
@@ -1191,7 +1160,6 @@ msgstr ""
|
|
|
1191
1160
|
#: code:addons/account_credit_control/wizard/credit_control_emailer.py:0
|
|
1192
1161
|
#: code:addons/account_credit_control/wizard/credit_control_marker.py:0
|
|
1193
1162
|
#: code:addons/account_credit_control/wizard/credit_control_printer.py:0
|
|
1194
|
-
#, python-format
|
|
1195
1163
|
msgid "No credit control lines selected."
|
|
1196
1164
|
msgstr ""
|
|
1197
1165
|
|
|
@@ -1208,14 +1176,12 @@ msgstr ""
|
|
|
1208
1176
|
#. module: account_credit_control
|
|
1209
1177
|
#. odoo-python
|
|
1210
1178
|
#: code:addons/account_credit_control/wizard/credit_control_marker.py:0
|
|
1211
|
-
#, python-format
|
|
1212
1179
|
msgid "No lines will be changed. All the selected lines are already done."
|
|
1213
1180
|
msgstr ""
|
|
1214
1181
|
|
|
1215
1182
|
#. module: account_credit_control
|
|
1216
1183
|
#. odoo-python
|
|
1217
1184
|
#: code:addons/account_credit_control/models/credit_control_run.py:0
|
|
1218
|
-
#, python-format
|
|
1219
1185
|
msgid "Notifications"
|
|
1220
1186
|
msgstr ""
|
|
1221
1187
|
|
|
@@ -1397,7 +1363,6 @@ msgstr ""
|
|
|
1397
1363
|
#. module: account_credit_control
|
|
1398
1364
|
#. odoo-python
|
|
1399
1365
|
#: code:addons/account_credit_control/models/credit_control_communication.py:0
|
|
1400
|
-
#, python-format
|
|
1401
1366
|
msgid "Payment Reference"
|
|
1402
1367
|
msgstr ""
|
|
1403
1368
|
|
|
@@ -1410,14 +1375,12 @@ msgstr ""
|
|
|
1410
1375
|
#. module: account_credit_control
|
|
1411
1376
|
#. odoo-python
|
|
1412
1377
|
#: code:addons/account_credit_control/models/credit_control_run.py:0
|
|
1413
|
-
#, python-format
|
|
1414
1378
|
msgid "Please select a policy"
|
|
1415
1379
|
msgstr ""
|
|
1416
1380
|
|
|
1417
1381
|
#. module: account_credit_control
|
|
1418
1382
|
#. odoo-python
|
|
1419
1383
|
#: code:addons/account_credit_control/wizard/credit_control_policy_changer.py:0
|
|
1420
|
-
#, python-format
|
|
1421
1384
|
msgid "Please use wizard on customer invoices"
|
|
1422
1385
|
msgstr ""
|
|
1423
1386
|
|
|
@@ -1436,7 +1399,6 @@ msgstr ""
|
|
|
1436
1399
|
#. module: account_credit_control
|
|
1437
1400
|
#. odoo-python
|
|
1438
1401
|
#: code:addons/account_credit_control/models/credit_control_policy.py:0
|
|
1439
|
-
#, python-format
|
|
1440
1402
|
msgid ""
|
|
1441
1403
|
"Policy \"<b>%(name)s</b>\" has generated <b>%(len_policy_lines_generated)d "
|
|
1442
1404
|
"Credit Control Lines.</b><br/>"
|
|
@@ -1445,7 +1407,6 @@ msgstr ""
|
|
|
1445
1407
|
#. module: account_credit_control
|
|
1446
1408
|
#. odoo-python
|
|
1447
1409
|
#: code:addons/account_credit_control/models/credit_control_policy.py:0
|
|
1448
|
-
#, python-format
|
|
1449
1410
|
msgid "Policy \"<b>%s</b>\" has not generated any Credit Control Lines.<br/>"
|
|
1450
1411
|
msgstr ""
|
|
1451
1412
|
|
|
@@ -1454,12 +1415,6 @@ msgstr ""
|
|
|
1454
1415
|
msgid "Policy Levels"
|
|
1455
1416
|
msgstr ""
|
|
1456
1417
|
|
|
1457
|
-
#. module: account_credit_control
|
|
1458
|
-
#: model_terms:ir.ui.view,arch_db:account_credit_control.credit_control_policy_form
|
|
1459
|
-
#: model_terms:ir.ui.view,arch_db:account_credit_control.credit_mangement_policy_level_form
|
|
1460
|
-
msgid "Policy level"
|
|
1461
|
-
msgstr ""
|
|
1462
|
-
|
|
1463
1418
|
#. module: account_credit_control
|
|
1464
1419
|
#: model_terms:ir.ui.view,arch_db:account_credit_control.credit_control_policy_form
|
|
1465
1420
|
msgid "Policy levels"
|
|
@@ -1541,6 +1496,12 @@ msgstr ""
|
|
|
1541
1496
|
msgid "Runs"
|
|
1542
1497
|
msgstr ""
|
|
1543
1498
|
|
|
1499
|
+
#. module: account_credit_control
|
|
1500
|
+
#: model:ir.model.fields,field_description:account_credit_control.field_credit_control_communication__message_has_sms_error
|
|
1501
|
+
#: model:ir.model.fields,field_description:account_credit_control.field_credit_control_line__message_has_sms_error
|
|
1502
|
+
msgid "SMS Delivery error"
|
|
1503
|
+
msgstr ""
|
|
1504
|
+
|
|
1544
1505
|
#. module: account_credit_control
|
|
1545
1506
|
#: model:ir.model.fields,field_description:account_credit_control.field_credit_control_line__partner_user_id
|
|
1546
1507
|
#: model_terms:ir.ui.view,arch_db:account_credit_control.credit_control_communication_search_view
|
|
@@ -1647,7 +1608,6 @@ msgstr ""
|
|
|
1647
1608
|
#. module: account_credit_control
|
|
1648
1609
|
#: model:ir.model.fields,help:account_credit_control.field_account_bank_statement_line__credit_policy_id
|
|
1649
1610
|
#: model:ir.model.fields,help:account_credit_control.field_account_move__credit_policy_id
|
|
1650
|
-
#: model:ir.model.fields,help:account_credit_control.field_account_payment__credit_policy_id
|
|
1651
1611
|
msgid ""
|
|
1652
1612
|
"The Credit Control Policy used for this invoice. If nothing is defined, it "
|
|
1653
1613
|
"will use the account setting or the partner setting."
|
|
@@ -1672,7 +1632,6 @@ msgstr ""
|
|
|
1672
1632
|
#. module: account_credit_control
|
|
1673
1633
|
#. odoo-python
|
|
1674
1634
|
#: code:addons/account_credit_control/models/credit_control_run.py:0
|
|
1675
|
-
#, python-format
|
|
1676
1635
|
msgid "The emails will be sent in the background"
|
|
1677
1636
|
msgstr ""
|
|
1678
1637
|
|
|
@@ -1689,7 +1648,6 @@ msgstr ""
|
|
|
1689
1648
|
#. module: account_credit_control
|
|
1690
1649
|
#. odoo-python
|
|
1691
1650
|
#: code:addons/account_credit_control/models/credit_control_policy.py:0
|
|
1692
|
-
#, python-format
|
|
1693
1651
|
msgid "The smallest level can not be of type Previous Reminder"
|
|
1694
1652
|
msgstr ""
|
|
1695
1653
|
|
|
@@ -1764,7 +1722,6 @@ msgstr ""
|
|
|
1764
1722
|
#. module: account_credit_control
|
|
1765
1723
|
#. odoo-python
|
|
1766
1724
|
#: code:addons/account_credit_control/models/credit_control_line.py:0
|
|
1767
|
-
#, python-format
|
|
1768
1725
|
msgid ""
|
|
1769
1726
|
"You are not allowed to delete a credit control line that is not in draft "
|
|
1770
1727
|
"state."
|
|
@@ -1773,7 +1730,6 @@ msgstr ""
|
|
|
1773
1730
|
#. module: account_credit_control
|
|
1774
1731
|
#. odoo-python
|
|
1775
1732
|
#: code:addons/account_credit_control/models/credit_control_policy.py:0
|
|
1776
|
-
#, python-format
|
|
1777
1733
|
msgid ""
|
|
1778
1734
|
"You can only use a policy set on account %(account_name)s.\n"
|
|
1779
1735
|
"Please choose one of the following policies:\n"
|
|
@@ -1783,7 +1739,6 @@ msgstr ""
|
|
|
1783
1739
|
#. module: account_credit_control
|
|
1784
1740
|
#. odoo-python
|
|
1785
1741
|
#: code:addons/account_credit_control/models/account_move.py:0
|
|
1786
|
-
#, python-format
|
|
1787
1742
|
msgid ""
|
|
1788
1743
|
"You cannot cancel this invoice.\n"
|
|
1789
1744
|
"A payment reminder has already been sent to the customer.\n"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
|
+
<odoo>
|
|
3
|
+
<record id="credit_control_run_rule" model="ir.rule">
|
|
4
|
+
<field name="domain_force">[('company_id','in',company_ids + [False])]</field>
|
|
5
|
+
</record>
|
|
6
|
+
<record id="credit_control_communication_rule" model="ir.rule">
|
|
7
|
+
<field name="domain_force">[('company_id','in',company_ids)]</field>
|
|
8
|
+
</record>
|
|
9
|
+
<record id="credit_control_line_rule" model="ir.rule">
|
|
10
|
+
<field name="domain_force">[('company_id','in',company_ids + [False])]</field>
|
|
11
|
+
</record>
|
|
12
|
+
<record id="credit_control_policy_rule" model="ir.rule">
|
|
13
|
+
<field name="domain_force">[('company_id','in',company_ids + [False])]</field>
|
|
14
|
+
</record>
|
|
15
|
+
<record id="credit_control_analysis_rule" model="ir.rule">
|
|
16
|
+
<field name="domain_force">[('company_id','in',company_ids + [False])]</field>
|
|
17
|
+
</record>
|
|
18
|
+
<record id="credit_control_partner_payment_action_type_rule" model="ir.rule">
|
|
19
|
+
<field name="domain_force">[('company_id','in',company_ids + [False])]</field>
|
|
20
|
+
</record>
|
|
21
|
+
</odoo>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Copyright 2025 Tecnativa - Carlos Lopez
|
|
2
|
+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
3
|
+
|
|
4
|
+
from openupgradelib import openupgrade
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
@openupgrade.migrate()
|
|
8
|
+
def migrate(env, version):
|
|
9
|
+
openupgrade.load_data(
|
|
10
|
+
env, "account_credit_control", "migrations/18.0.1.0.0/noupdate_changes.xml"
|
|
11
|
+
)
|
|
@@ -119,7 +119,7 @@ class CreditControlLine(models.Model):
|
|
|
119
119
|
store=True,
|
|
120
120
|
)
|
|
121
121
|
level = fields.Integer(
|
|
122
|
-
related="policy_level_id.level",
|
|
122
|
+
related="policy_level_id.level", aggregator="max", store=True
|
|
123
123
|
)
|
|
124
124
|
manually_overridden = fields.Boolean()
|
|
125
125
|
run_id = fields.Many2one(comodel_name="credit.control.run", string="Source")
|
|
@@ -6,6 +6,7 @@ from collections import defaultdict
|
|
|
6
6
|
|
|
7
7
|
from odoo import _, api, fields, models
|
|
8
8
|
from odoo.exceptions import UserError, ValidationError
|
|
9
|
+
from odoo.osv import expression
|
|
9
10
|
|
|
10
11
|
CHANNEL_LIST = [("letter", "Letter"), ("email", "Email"), ("phone", "Phone")]
|
|
11
12
|
|
|
@@ -270,7 +271,7 @@ class CreditControlPolicy(models.Model):
|
|
|
270
271
|
return policy_lines_generated
|
|
271
272
|
|
|
272
273
|
@api.model
|
|
273
|
-
def
|
|
274
|
+
def _search_display_name(self, operator, value):
|
|
274
275
|
"""Alternative implementation for domain on account, equivalent to
|
|
275
276
|
domain="[('account_ids', 'in', property_account_receivable_id)]"
|
|
276
277
|
"""
|
|
@@ -280,15 +281,12 @@ class CreditControlPolicy(models.Model):
|
|
|
280
281
|
self.env.context["account_receivable_partner_id"]
|
|
281
282
|
)
|
|
282
283
|
account_receivable = partner.property_account_receivable_id
|
|
283
|
-
|
|
284
|
-
ids = super()._name_search(name, domain, operator, limit, order)
|
|
285
|
-
policies = self.browse(ids)
|
|
286
|
-
policy_ids = []
|
|
284
|
+
domain = super()._search_display_name(operator, value)
|
|
287
285
|
if account_receivable:
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
return
|
|
286
|
+
domain = expression.AND(
|
|
287
|
+
[domain, [("account_ids", "in", account_receivable.ids)]]
|
|
288
|
+
)
|
|
289
|
+
return domain
|
|
292
290
|
|
|
293
291
|
|
|
294
292
|
class CreditControlPolicyLevel(models.Model):
|