odoo-addon-account-dashboard-banner 16.0.1.0.1.1__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.
Files changed (29) hide show
  1. odoo/addons/account_dashboard_banner/README.rst +151 -0
  2. odoo/addons/account_dashboard_banner/__init__.py +2 -0
  3. odoo/addons/account_dashboard_banner/__manifest__.py +29 -0
  4. odoo/addons/account_dashboard_banner/i18n/account_dashboard_banner.pot +259 -0
  5. odoo/addons/account_dashboard_banner/i18n/fr.po +287 -0
  6. odoo/addons/account_dashboard_banner/i18n/it.po +274 -0
  7. odoo/addons/account_dashboard_banner/models/__init__.py +1 -0
  8. odoo/addons/account_dashboard_banner/models/account_dashboard_banner_cell.py +331 -0
  9. odoo/addons/account_dashboard_banner/post_install.py +28 -0
  10. odoo/addons/account_dashboard_banner/readme/CONFIGURE.md +33 -0
  11. odoo/addons/account_dashboard_banner/readme/CONTRIBUTORS.md +1 -0
  12. odoo/addons/account_dashboard_banner/readme/DESCRIPTION.md +13 -0
  13. odoo/addons/account_dashboard_banner/readme/USAGE.md +3 -0
  14. odoo/addons/account_dashboard_banner/security/ir.model.access.csv +4 -0
  15. odoo/addons/account_dashboard_banner/static/description/account_dashboard_banner.png +0 -0
  16. odoo/addons/account_dashboard_banner/static/description/banner_cell_config.png +0 -0
  17. odoo/addons/account_dashboard_banner/static/description/cell_form_with_warning.png +0 -0
  18. odoo/addons/account_dashboard_banner/static/description/icon.png +0 -0
  19. odoo/addons/account_dashboard_banner/static/description/index.html +483 -0
  20. odoo/addons/account_dashboard_banner/static/src/views/account_dashboard_kanban_banner.esm.js +47 -0
  21. odoo/addons/account_dashboard_banner/static/src/views/account_dashboard_kanban_banner.xml +49 -0
  22. odoo/addons/account_dashboard_banner/tests/__init__.py +1 -0
  23. odoo/addons/account_dashboard_banner/tests/test_banner.py +56 -0
  24. odoo/addons/account_dashboard_banner/views/account_dashboard_banner_cell.xml +92 -0
  25. odoo/addons/account_dashboard_banner/views/account_journal_dashboard.xml +19 -0
  26. odoo_addon_account_dashboard_banner-16.0.1.0.1.1.dist-info/METADATA +168 -0
  27. odoo_addon_account_dashboard_banner-16.0.1.0.1.1.dist-info/RECORD +29 -0
  28. odoo_addon_account_dashboard_banner-16.0.1.0.1.1.dist-info/WHEEL +5 -0
  29. odoo_addon_account_dashboard_banner-16.0.1.0.1.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,151 @@
1
+ .. image:: https://odoo-community.org/readme-banner-image
2
+ :target: https://odoo-community.org/get-involved?utm_source=readme
3
+ :alt: Odoo Community Association
4
+
5
+ ========================
6
+ Account Dashboard Banner
7
+ ========================
8
+
9
+ ..
10
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
11
+ !! This file is generated by oca-gen-addon-readme !!
12
+ !! changes will be overwritten. !!
13
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14
+ !! source digest: sha256:e802752b049f891ea4c459b60097080416380c8c6115bdbd57801d7edbbc8a09
15
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16
+
17
+ .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
18
+ :target: https://odoo-community.org/page/development-status
19
+ :alt: Beta
20
+ .. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
21
+ :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
22
+ :alt: License: AGPL-3
23
+ .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github
24
+ :target: https://github.com/OCA/account-financial-tools/tree/16.0/account_dashboard_banner
25
+ :alt: OCA/account-financial-tools
26
+ .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27
+ :target: https://translation.odoo-community.org/projects/account-financial-tools-16-0/account-financial-tools-16-0-account_dashboard_banner
28
+ :alt: Translate me on Weblate
29
+ .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/account-financial-tools&target_branch=16.0
31
+ :alt: Try me on Runboat
32
+
33
+ |badge1| |badge2| |badge3| |badge4| |badge5|
34
+
35
+ The development of this module started with a simple analysis:
36
+ accountants tend to forget to update the lock dates. Part of the problem
37
+ lies in the fact that the lock dates can be seen in the wizard to update
38
+ the lock dates, but accountants have no incentive to start this wizard
39
+ regularly to check the lock dates. The idea was to display the lock
40
+ dates in a banner at the top of the accounting dashboard, so that
41
+ accountants have the value of the lock dates in front of their eyes.
42
+
43
+ With such a banner in the accounting dashboard to display the lock
44
+ dates, there was a great temptation to display other interesting
45
+ information in that banner, such as some key figures of the accounting:
46
+ liquidity, turnover, customer overdue, etc. It gave birth to the idea to
47
+ have a configurable banner in the accounting dashboard!
48
+
49
+ **Table of contents**
50
+
51
+ .. contents::
52
+ :local:
53
+
54
+ Configuration
55
+ =============
56
+
57
+ Go to the menu **Invoicing > Configuration > Dashboard > Dashboard
58
+ Banner Cells**: in this menu, you can add or remove cells from the
59
+ banner, change the cell type, modify the order via drag-and-drop,
60
+ customize the labels if necessary.
61
+
62
+ |Cell configuration menu|
63
+
64
+ Many cell types are available:
65
+
66
+ - **Income** with 4 options: *Fiscal Year-to-date Income*, *Year-to-date
67
+ Income*, *Quarter-to-date Income* and *Month-to-date Income*. It
68
+ displays the period balance of the accounts with type *Income* and
69
+ *Other Income*.
70
+ - **Liquidity**: it display the ending balance of the accounts linked to
71
+ a bank or cash or credit journal.
72
+ - **Customer Debt**: it displays the ending balance of the default
73
+ *Account Receivable* and, if the point of sale is installed, the
74
+ intermediary account used for unidentified customers.
75
+ - **Customer Overdue**: same as the *Customer Debt*, but limited to
76
+ journal items with a due date in the past.
77
+ - **Supplier Debt**: it displays the ending balance of the default
78
+ *Account Payable*.
79
+ - **Lock dates**: all the lock dates are available: *Tax Return Lock
80
+ Date*, *Journals Entries Lock Date* and *All Users Lock Date*.
81
+
82
+ The module is designed to allow the modification of the computation of
83
+ the different cell types by inheriting the method
84
+ *\_prepare_cell_data\_<cell_type>()* or *\_prepare_cell_data()*. It is
85
+ also easy for a developper to add more cell types.
86
+
87
+ It is possible to display a cell as a warning cell (yellow background
88
+ color instead of light grey): click on the *Warning* option and
89
+ customize the conditions to trigger the warning.
90
+
91
+ |Cell form with warning|
92
+
93
+ .. |Cell configuration menu| image:: https://raw.githubusercontent.com/OCA/account-financial-tools/16.0/account_dashboard_banner/static/description/banner_cell_config.png
94
+ .. |Cell form with warning| image:: https://raw.githubusercontent.com/OCA/account-financial-tools/16.0/account_dashboard_banner/static/description/cell_form_with_warning.png
95
+
96
+ Usage
97
+ =====
98
+
99
+ Enjoy the accounting dashboard with the banner at the top:
100
+
101
+ |Accounting dashboard with banner|
102
+
103
+ .. |Accounting dashboard with banner| image:: https://raw.githubusercontent.com/OCA/account-financial-tools/16.0/account_dashboard_banner/static/description/account_dashboard_banner.png
104
+
105
+ Bug Tracker
106
+ ===========
107
+
108
+ Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-financial-tools/issues>`_.
109
+ In case of trouble, please check there if your issue has already been reported.
110
+ If you spotted it first, help us to smash it by providing a detailed and welcomed
111
+ `feedback <https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_dashboard_banner%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
112
+
113
+ Do not contact contributors directly about support or help with technical issues.
114
+
115
+ Credits
116
+ =======
117
+
118
+ Authors
119
+ -------
120
+
121
+ * Akretion
122
+
123
+ Contributors
124
+ ------------
125
+
126
+ - Alexis de Lattre <alexis.delattre@akretion.com>
127
+
128
+ Maintainers
129
+ -----------
130
+
131
+ This module is maintained by the OCA.
132
+
133
+ .. image:: https://odoo-community.org/logo.png
134
+ :alt: Odoo Community Association
135
+ :target: https://odoo-community.org
136
+
137
+ OCA, or the Odoo Community Association, is a nonprofit organization whose
138
+ mission is to support the collaborative development of Odoo features and
139
+ promote its widespread use.
140
+
141
+ .. |maintainer-alexis-via| image:: https://github.com/alexis-via.png?size=40px
142
+ :target: https://github.com/alexis-via
143
+ :alt: alexis-via
144
+
145
+ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
146
+
147
+ |maintainer-alexis-via|
148
+
149
+ This module is part of the `OCA/account-financial-tools <https://github.com/OCA/account-financial-tools/tree/16.0/account_dashboard_banner>`_ project on GitHub.
150
+
151
+ You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
@@ -0,0 +1,2 @@
1
+ from . import models
2
+ from .post_install import create_default_account_dashboard_cells
@@ -0,0 +1,29 @@
1
+ # Copyright 2025 Akretion France (https://www.akretion.com/)
2
+ # @author: Alexis de Lattre <alexis.delattre@akretion.com>
3
+ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
4
+
5
+ {
6
+ "name": "Account Dashboard Banner",
7
+ "version": "16.0.1.0.1",
8
+ "category": "Accounting",
9
+ "license": "AGPL-3",
10
+ "summary": "Add a configurable banner on the accounting dashboard",
11
+ "author": "Akretion,Odoo Community Association (OCA)",
12
+ "maintainers": ["alexis-via"],
13
+ "development_status": "Beta",
14
+ "website": "https://github.com/OCA/account-financial-tools",
15
+ "depends": ["account"],
16
+ "data": [
17
+ "security/ir.model.access.csv",
18
+ "views/account_journal_dashboard.xml",
19
+ "views/account_dashboard_banner_cell.xml",
20
+ ],
21
+ "assets": {
22
+ "web.assets_backend": [
23
+ "account_dashboard_banner/static/src/views/account_dashboard_kanban_banner.esm.js",
24
+ "account_dashboard_banner/static/src/views/account_dashboard_kanban_banner.xml",
25
+ ],
26
+ },
27
+ "post_init_hook": "create_default_account_dashboard_cells",
28
+ "installable": True,
29
+ }
@@ -0,0 +1,259 @@
1
+ # Translation of Odoo Server.
2
+ # This file contains the translation of the following modules:
3
+ # * account_dashboard_banner
4
+ #
5
+ msgid ""
6
+ msgstr ""
7
+ "Project-Id-Version: Odoo Server 16.0\n"
8
+ "Report-Msgid-Bugs-To: \n"
9
+ "Last-Translator: \n"
10
+ "Language-Team: \n"
11
+ "MIME-Version: 1.0\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+ "Content-Transfer-Encoding: \n"
14
+ "Plural-Forms: \n"
15
+
16
+ #. module: account_dashboard_banner
17
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__warn_type__above
18
+ msgid "Above Maximum"
19
+ msgstr ""
20
+
21
+ #. module: account_dashboard_banner
22
+ #: model:ir.model,name:account_dashboard_banner.model_account_dashboard_banner_cell
23
+ msgid "Accounting Dashboard Banner Cell"
24
+ msgstr ""
25
+
26
+ #. module: account_dashboard_banner
27
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__fiscalyear_lock_date
28
+ msgid "All Users Lock Date"
29
+ msgstr ""
30
+
31
+ #. module: account_dashboard_banner
32
+ #. odoo-python
33
+ #: code:addons/account_dashboard_banner/models/account_dashboard_banner_cell.py:0
34
+ #, python-format
35
+ msgid "Balance of account(s) {account_codes} since %s."
36
+ msgstr ""
37
+
38
+ #. module: account_dashboard_banner
39
+ #. odoo-python
40
+ #: code:addons/account_dashboard_banner/models/account_dashboard_banner_cell.py:0
41
+ #, python-format
42
+ msgid "Balance of account(s) {account_codes}."
43
+ msgstr ""
44
+
45
+ #. module: account_dashboard_banner
46
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__warn_type__inside
47
+ msgid "Between Minimum and Maximum"
48
+ msgstr ""
49
+
50
+ #. module: account_dashboard_banner
51
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__cell_type
52
+ msgid "Cell Type"
53
+ msgstr ""
54
+
55
+ #. module: account_dashboard_banner
56
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__create_uid
57
+ msgid "Created by"
58
+ msgstr ""
59
+
60
+ #. module: account_dashboard_banner
61
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__create_date
62
+ msgid "Created on"
63
+ msgstr ""
64
+
65
+ #. module: account_dashboard_banner
66
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__custom_label
67
+ msgid "Custom Label"
68
+ msgstr ""
69
+
70
+ #. module: account_dashboard_banner
71
+ #: model_terms:ir.ui.view,arch_db:account_dashboard_banner.account_dashboard_banner_cell_form
72
+ #: model_terms:ir.ui.view,arch_db:account_dashboard_banner.account_dashboard_banner_cell_list
73
+ msgid "Custom Label (optional)"
74
+ msgstr ""
75
+
76
+ #. module: account_dashboard_banner
77
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__custom_tooltip
78
+ msgid "Custom Tooltip"
79
+ msgstr ""
80
+
81
+ #. module: account_dashboard_banner
82
+ #: model_terms:ir.ui.view,arch_db:account_dashboard_banner.account_dashboard_banner_cell_form
83
+ msgid "Custom Tooltip (optional)"
84
+ msgstr ""
85
+
86
+ #. module: account_dashboard_banner
87
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__customer_debt
88
+ msgid "Customer Debt"
89
+ msgstr ""
90
+
91
+ #. module: account_dashboard_banner
92
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__customer_overdue
93
+ msgid "Customer Overdue"
94
+ msgstr ""
95
+
96
+ #. module: account_dashboard_banner
97
+ #: model:ir.ui.menu,name:account_dashboard_banner.account_dashboard_config
98
+ msgid "Dashboard"
99
+ msgstr ""
100
+
101
+ #. module: account_dashboard_banner
102
+ #: model:ir.actions.act_window,name:account_dashboard_banner.account_dashboard_banner_cell_action
103
+ #: model:ir.ui.menu,name:account_dashboard_banner.account_dashboard_banner_cell_menu
104
+ msgid "Dashboard Banner Cells"
105
+ msgstr ""
106
+
107
+ #. module: account_dashboard_banner
108
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__display_name
109
+ msgid "Display Name"
110
+ msgstr ""
111
+
112
+ #. module: account_dashboard_banner
113
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__income_fiscalyear
114
+ msgid "Fiscal Year-to-date Income"
115
+ msgstr ""
116
+
117
+ #. module: account_dashboard_banner
118
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__id
119
+ msgid "ID"
120
+ msgstr ""
121
+
122
+ #. module: account_dashboard_banner
123
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__period_lock_date
124
+ msgid "Journals Entries Lock Date"
125
+ msgstr ""
126
+
127
+ #. module: account_dashboard_banner
128
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell____last_update
129
+ msgid "Last Modified on"
130
+ msgstr ""
131
+
132
+ #. module: account_dashboard_banner
133
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__write_uid
134
+ msgid "Last Updated by"
135
+ msgstr ""
136
+
137
+ #. module: account_dashboard_banner
138
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__write_date
139
+ msgid "Last Updated on"
140
+ msgstr ""
141
+
142
+ #. module: account_dashboard_banner
143
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__liquidity
144
+ msgid "Liquidity"
145
+ msgstr ""
146
+
147
+ #. module: account_dashboard_banner
148
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__warn_max
149
+ msgid "Maximum"
150
+ msgstr ""
151
+
152
+ #. module: account_dashboard_banner
153
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__warn_min
154
+ msgid "Minimum"
155
+ msgstr ""
156
+
157
+ #. module: account_dashboard_banner
158
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__income_month
159
+ msgid "Month-to-date Income"
160
+ msgstr ""
161
+
162
+ #. module: account_dashboard_banner
163
+ #. odoo-python
164
+ #: code:addons/account_dashboard_banner/models/account_dashboard_banner_cell.py:0
165
+ #, python-format
166
+ msgid "None"
167
+ msgstr ""
168
+
169
+ #. module: account_dashboard_banner
170
+ #. odoo-python
171
+ #: code:addons/account_dashboard_banner/models/account_dashboard_banner_cell.py:0
172
+ #, python-format
173
+ msgid ""
174
+ "On cell '%(cell_type)s' with warning enabled, the minimum (%(warn_min)s) "
175
+ "must be under the maximum (%(warn_max)s)."
176
+ msgstr ""
177
+
178
+ #. module: account_dashboard_banner
179
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__income_quarter
180
+ msgid "Quarter-to-date Income"
181
+ msgstr ""
182
+
183
+ #. module: account_dashboard_banner
184
+ #. odoo-python
185
+ #: code:addons/account_dashboard_banner/models/account_dashboard_banner_cell.py:0
186
+ #, python-format
187
+ msgid ""
188
+ "Residual amount of account(s) {account_codes} with due date in the past."
189
+ msgstr ""
190
+
191
+ #. module: account_dashboard_banner
192
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__sequence
193
+ msgid "Sequence"
194
+ msgstr ""
195
+
196
+ #. module: account_dashboard_banner
197
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__supplier_debt
198
+ msgid "Supplier Debt"
199
+ msgstr ""
200
+
201
+ #. module: account_dashboard_banner
202
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__tax_lock_date
203
+ msgid "Tax Return Lock Date"
204
+ msgstr ""
205
+
206
+ #. module: account_dashboard_banner
207
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__warn_type__under
208
+ msgid "Under Minimum"
209
+ msgstr ""
210
+
211
+ #. module: account_dashboard_banner
212
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__warn_type__outside
213
+ msgid "Under Minimum or Above Maximum"
214
+ msgstr ""
215
+
216
+ #. module: account_dashboard_banner
217
+ #: model_terms:ir.ui.view,arch_db:account_dashboard_banner.account_dashboard_banner_cell_form
218
+ msgid "Warn If"
219
+ msgstr ""
220
+
221
+ #. module: account_dashboard_banner
222
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__warn_lock_date_days
223
+ msgid "Warn Lock Date Days"
224
+ msgstr ""
225
+
226
+ #. module: account_dashboard_banner
227
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__warn_type
228
+ msgid "Warn Type"
229
+ msgstr ""
230
+
231
+ #. module: account_dashboard_banner
232
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__warn_type_show
233
+ msgid "Warn Type Show"
234
+ msgstr ""
235
+
236
+ #. module: account_dashboard_banner
237
+ #: model_terms:ir.ui.view,arch_db:account_dashboard_banner.account_dashboard_banner_cell_form
238
+ msgid "Warn if lock date is older than"
239
+ msgstr ""
240
+
241
+ #. module: account_dashboard_banner
242
+ #: model:ir.model.constraint,message:account_dashboard_banner.constraint_account_dashboard_banner_cell_warn_lock_date_days_positive
243
+ msgid "Warn if lock date is older than N days must be positive or null."
244
+ msgstr ""
245
+
246
+ #. module: account_dashboard_banner
247
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__warn
248
+ msgid "Warning"
249
+ msgstr ""
250
+
251
+ #. module: account_dashboard_banner
252
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__income_year
253
+ msgid "Year-to-date Income"
254
+ msgstr ""
255
+
256
+ #. module: account_dashboard_banner
257
+ #: model_terms:ir.ui.view,arch_db:account_dashboard_banner.account_dashboard_banner_cell_form
258
+ msgid "days"
259
+ msgstr ""