odoo-addon-account-dashboard-banner 16.0.1.0.0.4__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.

Potentially problematic release.


This version of odoo-addon-account-dashboard-banner might be problematic. Click here for more details.

Files changed (28) 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 +244 -0
  5. odoo/addons/account_dashboard_banner/i18n/fr.po +270 -0
  6. odoo/addons/account_dashboard_banner/models/__init__.py +1 -0
  7. odoo/addons/account_dashboard_banner/models/account_dashboard_banner_cell.py +324 -0
  8. odoo/addons/account_dashboard_banner/post_install.py +28 -0
  9. odoo/addons/account_dashboard_banner/readme/CONFIGURE.md +33 -0
  10. odoo/addons/account_dashboard_banner/readme/CONTRIBUTORS.md +1 -0
  11. odoo/addons/account_dashboard_banner/readme/DESCRIPTION.md +13 -0
  12. odoo/addons/account_dashboard_banner/readme/USAGE.md +3 -0
  13. odoo/addons/account_dashboard_banner/security/ir.model.access.csv +4 -0
  14. odoo/addons/account_dashboard_banner/static/description/account_dashboard_banner.png +0 -0
  15. odoo/addons/account_dashboard_banner/static/description/banner_cell_config.png +0 -0
  16. odoo/addons/account_dashboard_banner/static/description/cell_form_with_warning.png +0 -0
  17. odoo/addons/account_dashboard_banner/static/description/icon.png +0 -0
  18. odoo/addons/account_dashboard_banner/static/description/index.html +483 -0
  19. odoo/addons/account_dashboard_banner/static/src/views/account_dashboard_kanban_banner.esm.js +47 -0
  20. odoo/addons/account_dashboard_banner/static/src/views/account_dashboard_kanban_banner.xml +49 -0
  21. odoo/addons/account_dashboard_banner/tests/__init__.py +1 -0
  22. odoo/addons/account_dashboard_banner/tests/test_banner.py +56 -0
  23. odoo/addons/account_dashboard_banner/views/account_dashboard_banner_cell.xml +92 -0
  24. odoo/addons/account_dashboard_banner/views/account_journal_dashboard.xml +19 -0
  25. odoo_addon_account_dashboard_banner-16.0.1.0.0.4.dist-info/METADATA +168 -0
  26. odoo_addon_account_dashboard_banner-16.0.1.0.0.4.dist-info/RECORD +28 -0
  27. odoo_addon_account_dashboard_banner-16.0.1.0.0.4.dist-info/WHEEL +5 -0
  28. odoo_addon_account_dashboard_banner-16.0.1.0.0.4.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:c261dd1b22622bcdf2845d425be77ae0a3b5cbed1358ab4dd12e58394018fa50
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.0",
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,244 @@
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
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__warn_type__inside
33
+ msgid "Between Minimum and Maximum"
34
+ msgstr ""
35
+
36
+ #. module: account_dashboard_banner
37
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__cell_type
38
+ msgid "Cell Type"
39
+ msgstr ""
40
+
41
+ #. module: account_dashboard_banner
42
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__create_uid
43
+ msgid "Created by"
44
+ msgstr ""
45
+
46
+ #. module: account_dashboard_banner
47
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__create_date
48
+ msgid "Created on"
49
+ msgstr ""
50
+
51
+ #. module: account_dashboard_banner
52
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__custom_label
53
+ msgid "Custom Label"
54
+ msgstr ""
55
+
56
+ #. module: account_dashboard_banner
57
+ #: model_terms:ir.ui.view,arch_db:account_dashboard_banner.account_dashboard_banner_cell_form
58
+ #: model_terms:ir.ui.view,arch_db:account_dashboard_banner.account_dashboard_banner_cell_list
59
+ msgid "Custom Label (optional)"
60
+ msgstr ""
61
+
62
+ #. module: account_dashboard_banner
63
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__custom_tooltip
64
+ msgid "Custom Tooltip"
65
+ msgstr ""
66
+
67
+ #. module: account_dashboard_banner
68
+ #: model_terms:ir.ui.view,arch_db:account_dashboard_banner.account_dashboard_banner_cell_form
69
+ msgid "Custom Tooltip (optional)"
70
+ msgstr ""
71
+
72
+ #. module: account_dashboard_banner
73
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__customer_debt
74
+ msgid "Customer Debt"
75
+ msgstr ""
76
+
77
+ #. module: account_dashboard_banner
78
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__customer_overdue
79
+ msgid "Customer Overdue"
80
+ msgstr ""
81
+
82
+ #. module: account_dashboard_banner
83
+ #: model:ir.ui.menu,name:account_dashboard_banner.account_dashboard_config
84
+ msgid "Dashboard"
85
+ msgstr ""
86
+
87
+ #. module: account_dashboard_banner
88
+ #: model:ir.actions.act_window,name:account_dashboard_banner.account_dashboard_banner_cell_action
89
+ #: model:ir.ui.menu,name:account_dashboard_banner.account_dashboard_banner_cell_menu
90
+ msgid "Dashboard Banner Cells"
91
+ msgstr ""
92
+
93
+ #. module: account_dashboard_banner
94
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__display_name
95
+ msgid "Display Name"
96
+ msgstr ""
97
+
98
+ #. module: account_dashboard_banner
99
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__income_fiscalyear
100
+ msgid "Fiscal Year-to-date Income"
101
+ msgstr ""
102
+
103
+ #. module: account_dashboard_banner
104
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__id
105
+ msgid "ID"
106
+ msgstr ""
107
+
108
+ #. module: account_dashboard_banner
109
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__period_lock_date
110
+ msgid "Journals Entries Lock Date"
111
+ msgstr ""
112
+
113
+ #. module: account_dashboard_banner
114
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell____last_update
115
+ msgid "Last Modified on"
116
+ msgstr ""
117
+
118
+ #. module: account_dashboard_banner
119
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__write_uid
120
+ msgid "Last Updated by"
121
+ msgstr ""
122
+
123
+ #. module: account_dashboard_banner
124
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__write_date
125
+ msgid "Last Updated on"
126
+ msgstr ""
127
+
128
+ #. module: account_dashboard_banner
129
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__liquidity
130
+ msgid "Liquidity"
131
+ msgstr ""
132
+
133
+ #. module: account_dashboard_banner
134
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__warn_max
135
+ msgid "Maximum"
136
+ msgstr ""
137
+
138
+ #. module: account_dashboard_banner
139
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__warn_min
140
+ msgid "Minimum"
141
+ msgstr ""
142
+
143
+ #. module: account_dashboard_banner
144
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__income_month
145
+ msgid "Month-to-date Income"
146
+ msgstr ""
147
+
148
+ #. module: account_dashboard_banner
149
+ #. odoo-python
150
+ #: code:addons/account_dashboard_banner/models/account_dashboard_banner_cell.py:0
151
+ #, python-format
152
+ msgid ""
153
+ "On cell '%(cell_type)s' with warning enabled, the minimum (%(warn_min)s) "
154
+ "must be under the maximum (%(warn_max)s)."
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_quarter
159
+ msgid "Quarter-to-date Income"
160
+ msgstr ""
161
+
162
+ #. module: account_dashboard_banner
163
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__sequence
164
+ msgid "Sequence"
165
+ msgstr ""
166
+
167
+ #. module: account_dashboard_banner
168
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__supplier_debt
169
+ msgid "Supplier Debt"
170
+ msgstr ""
171
+
172
+ #. module: account_dashboard_banner
173
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__tax_lock_date
174
+ msgid "Tax Return Lock Date"
175
+ msgstr ""
176
+
177
+ #. module: account_dashboard_banner
178
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__warn_type__under
179
+ msgid "Under Minimum"
180
+ msgstr ""
181
+
182
+ #. module: account_dashboard_banner
183
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__warn_type__outside
184
+ msgid "Under Minimum or Above Maximum"
185
+ msgstr ""
186
+
187
+ #. module: account_dashboard_banner
188
+ #: model_terms:ir.ui.view,arch_db:account_dashboard_banner.account_dashboard_banner_cell_form
189
+ msgid "Warn If"
190
+ msgstr ""
191
+
192
+ #. module: account_dashboard_banner
193
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__warn_lock_date_days
194
+ msgid "Warn Lock Date Days"
195
+ msgstr ""
196
+
197
+ #. module: account_dashboard_banner
198
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__warn_type
199
+ msgid "Warn Type"
200
+ msgstr ""
201
+
202
+ #. module: account_dashboard_banner
203
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__warn_type_show
204
+ msgid "Warn Type Show"
205
+ msgstr ""
206
+
207
+ #. module: account_dashboard_banner
208
+ #: model_terms:ir.ui.view,arch_db:account_dashboard_banner.account_dashboard_banner_cell_form
209
+ msgid "Warn if lock date is older than"
210
+ msgstr ""
211
+
212
+ #. module: account_dashboard_banner
213
+ #: model:ir.model.constraint,message:account_dashboard_banner.constraint_account_dashboard_banner_cell_warn_lock_date_days_positive
214
+ msgid "Warn if lock date is older than N days must be positive or null."
215
+ msgstr ""
216
+
217
+ #. module: account_dashboard_banner
218
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__warn
219
+ msgid "Warning"
220
+ msgstr ""
221
+
222
+ #. module: account_dashboard_banner
223
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__income_year
224
+ msgid "Year-to-date Income"
225
+ msgstr ""
226
+
227
+ #. module: account_dashboard_banner
228
+ #: model_terms:ir.ui.view,arch_db:account_dashboard_banner.account_dashboard_banner_cell_form
229
+ msgid "days"
230
+ msgstr ""
231
+
232
+ #. module: account_dashboard_banner
233
+ #. odoo-python
234
+ #: code:addons/account_dashboard_banner/models/account_dashboard_banner_cell.py:0
235
+ #, python-format
236
+ msgid "from %s"
237
+ msgstr ""
238
+
239
+ #. module: account_dashboard_banner
240
+ #. odoo-python
241
+ #: code:addons/account_dashboard_banner/models/account_dashboard_banner_cell.py:0
242
+ #, python-format
243
+ msgid "with due date before %s"
244
+ msgstr ""