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

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 +152 -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 +246 -0
  5. odoo/addons/account_dashboard_banner/i18n/fr.po +263 -0
  6. odoo/addons/account_dashboard_banner/models/__init__.py +1 -0
  7. odoo/addons/account_dashboard_banner/models/account_dashboard_banner_cell.py +327 -0
  8. odoo/addons/account_dashboard_banner/post_install.py +18 -0
  9. odoo/addons/account_dashboard_banner/readme/CONFIGURE.md +34 -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 +484 -0
  19. odoo/addons/account_dashboard_banner/static/src/views/account_dashboard_kanban_banner.esm.js +36 -0
  20. odoo/addons/account_dashboard_banner/static/src/views/account_dashboard_kanban_banner.xml +27 -0
  21. odoo/addons/account_dashboard_banner/tests/__init__.py +1 -0
  22. odoo/addons/account_dashboard_banner/tests/test_banner.py +58 -0
  23. odoo/addons/account_dashboard_banner/views/account_dashboard_banner_cell.xml +59 -0
  24. odoo/addons/account_dashboard_banner/views/account_journal_dashboard.xml +20 -0
  25. odoo_addon_account_dashboard_banner-18.0.1.0.0.2.dist-info/METADATA +169 -0
  26. odoo_addon_account_dashboard_banner-18.0.1.0.0.2.dist-info/RECORD +28 -0
  27. odoo_addon_account_dashboard_banner-18.0.1.0.0.2.dist-info/WHEEL +5 -0
  28. odoo_addon_account_dashboard_banner-18.0.1.0.0.2.dist-info/top_level.txt +1 -0
@@ -0,0 +1,152 @@
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:5e9e2774ec8cb77a588da7487088b41f701b5f7d1dd0f16fdb8c10b85a99bf6e
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/18.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-18-0/account-financial-tools-18-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=18.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*, *Sales Lock Date*, *Purchase Lock Date*, *Global Lock Date* and
81
+ *Hard Lock Date*.
82
+
83
+ The module is designed to allow the modification of the computation of
84
+ the different cell types by inheriting the method
85
+ *\_prepare_cell_data\_<cell_type>()* or *\_prepare_cell_data()*. It is
86
+ also easy for a developper to add more cell types.
87
+
88
+ It is possible to display a cell as a warning cell (yellow background
89
+ color instead of light grey): click on the *Warning* option and
90
+ customize the conditions to trigger the warning.
91
+
92
+ |Cell form with warning|
93
+
94
+ .. |Cell configuration menu| image:: https://raw.githubusercontent.com/OCA/account-financial-tools/18.0/account_dashboard_banner/static/description/banner_cell_config.png
95
+ .. |Cell form with warning| image:: https://raw.githubusercontent.com/OCA/account-financial-tools/18.0/account_dashboard_banner/static/description/cell_form_with_warning.png
96
+
97
+ Usage
98
+ =====
99
+
100
+ Enjoy the accounting dashboard with the banner at the top:
101
+
102
+ |Accounting dashboard with banner|
103
+
104
+ .. |Accounting dashboard with banner| image:: https://raw.githubusercontent.com/OCA/account-financial-tools/18.0/account_dashboard_banner/static/description/account_dashboard_banner.png
105
+
106
+ Bug Tracker
107
+ ===========
108
+
109
+ Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-financial-tools/issues>`_.
110
+ In case of trouble, please check there if your issue has already been reported.
111
+ If you spotted it first, help us to smash it by providing a detailed and welcomed
112
+ `feedback <https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_dashboard_banner%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
113
+
114
+ Do not contact contributors directly about support or help with technical issues.
115
+
116
+ Credits
117
+ =======
118
+
119
+ Authors
120
+ -------
121
+
122
+ * Akretion
123
+
124
+ Contributors
125
+ ------------
126
+
127
+ - Alexis de Lattre <alexis.delattre@akretion.com>
128
+
129
+ Maintainers
130
+ -----------
131
+
132
+ This module is maintained by the OCA.
133
+
134
+ .. image:: https://odoo-community.org/logo.png
135
+ :alt: Odoo Community Association
136
+ :target: https://odoo-community.org
137
+
138
+ OCA, or the Odoo Community Association, is a nonprofit organization whose
139
+ mission is to support the collaborative development of Odoo features and
140
+ promote its widespread use.
141
+
142
+ .. |maintainer-alexis-via| image:: https://github.com/alexis-via.png?size=40px
143
+ :target: https://github.com/alexis-via
144
+ :alt: alexis-via
145
+
146
+ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
147
+
148
+ |maintainer-alexis-via|
149
+
150
+ This module is part of the `OCA/account-financial-tools <https://github.com/OCA/account-financial-tools/tree/18.0/account_dashboard_banner>`_ project on GitHub.
151
+
152
+ 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": "18.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,246 @@
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 18.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__warn_type__inside
28
+ msgid "Between Minimum and Maximum"
29
+ msgstr ""
30
+
31
+ #. module: account_dashboard_banner
32
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__cell_type
33
+ msgid "Cell Type"
34
+ msgstr ""
35
+
36
+ #. module: account_dashboard_banner
37
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__create_uid
38
+ msgid "Created by"
39
+ msgstr ""
40
+
41
+ #. module: account_dashboard_banner
42
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__create_date
43
+ msgid "Created on"
44
+ msgstr ""
45
+
46
+ #. module: account_dashboard_banner
47
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__custom_label
48
+ msgid "Custom Label"
49
+ msgstr ""
50
+
51
+ #. module: account_dashboard_banner
52
+ #: model_terms:ir.ui.view,arch_db:account_dashboard_banner.account_dashboard_banner_cell_form
53
+ #: model_terms:ir.ui.view,arch_db:account_dashboard_banner.account_dashboard_banner_cell_list
54
+ msgid "Custom Label (optional)"
55
+ msgstr ""
56
+
57
+ #. module: account_dashboard_banner
58
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__custom_tooltip
59
+ msgid "Custom Tooltip"
60
+ msgstr ""
61
+
62
+ #. module: account_dashboard_banner
63
+ #: model_terms:ir.ui.view,arch_db:account_dashboard_banner.account_dashboard_banner_cell_form
64
+ msgid "Custom Tooltip (optional)"
65
+ msgstr ""
66
+
67
+ #. module: account_dashboard_banner
68
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__customer_debt
69
+ msgid "Customer Debt"
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_overdue
74
+ msgid "Customer Overdue"
75
+ msgstr ""
76
+
77
+ #. module: account_dashboard_banner
78
+ #: model:ir.ui.menu,name:account_dashboard_banner.account_dashboard_config
79
+ msgid "Dashboard"
80
+ msgstr ""
81
+
82
+ #. module: account_dashboard_banner
83
+ #: model:ir.actions.act_window,name:account_dashboard_banner.account_dashboard_banner_cell_action
84
+ #: model:ir.ui.menu,name:account_dashboard_banner.account_dashboard_banner_cell_menu
85
+ msgid "Dashboard Banner Cells"
86
+ msgstr ""
87
+
88
+ #. module: account_dashboard_banner
89
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__display_name
90
+ msgid "Display Name"
91
+ msgstr ""
92
+
93
+ #. module: account_dashboard_banner
94
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__income_fiscalyear
95
+ msgid "Fiscal Year-to-date Income"
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__fiscalyear_lock_date
100
+ msgid "Global Lock Date"
101
+ msgstr ""
102
+
103
+ #. module: account_dashboard_banner
104
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__hard_lock_date
105
+ msgid "Hard Lock Date"
106
+ msgstr ""
107
+
108
+ #. module: account_dashboard_banner
109
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__id
110
+ msgid "ID"
111
+ msgstr ""
112
+
113
+ #. module: account_dashboard_banner
114
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__write_uid
115
+ msgid "Last Updated by"
116
+ msgstr ""
117
+
118
+ #. module: account_dashboard_banner
119
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__write_date
120
+ msgid "Last Updated on"
121
+ msgstr ""
122
+
123
+ #. module: account_dashboard_banner
124
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__liquidity
125
+ msgid "Liquidity"
126
+ msgstr ""
127
+
128
+ #. module: account_dashboard_banner
129
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__warn_max
130
+ msgid "Maximum"
131
+ msgstr ""
132
+
133
+ #. module: account_dashboard_banner
134
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__warn_min
135
+ msgid "Minimum"
136
+ msgstr ""
137
+
138
+ #. module: account_dashboard_banner
139
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__income_month
140
+ msgid "Month-to-date Income"
141
+ msgstr ""
142
+
143
+ #. module: account_dashboard_banner
144
+ #. odoo-python
145
+ #: code:addons/account_dashboard_banner/models/account_dashboard_banner_cell.py:0
146
+ msgid ""
147
+ "On cell '%(cell_type)s' with warning enabled, the minimum (%(warn_min)s) "
148
+ "must be under the maximum (%(warn_max)s)."
149
+ msgstr ""
150
+
151
+ #. module: account_dashboard_banner
152
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__purchase_lock_date
153
+ msgid "Purchase Lock Date"
154
+ msgstr ""
155
+
156
+ #. module: account_dashboard_banner
157
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__income_quarter
158
+ msgid "Quarter-to-date Income"
159
+ msgstr ""
160
+
161
+ #. module: account_dashboard_banner
162
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__sale_lock_date
163
+ msgid "Sales Lock Date"
164
+ msgstr ""
165
+
166
+ #. module: account_dashboard_banner
167
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__sequence
168
+ msgid "Sequence"
169
+ msgstr ""
170
+
171
+ #. module: account_dashboard_banner
172
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__supplier_debt
173
+ msgid "Supplier Debt"
174
+ msgstr ""
175
+
176
+ #. module: account_dashboard_banner
177
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__tax_lock_date
178
+ msgid "Tax Return Lock Date"
179
+ msgstr ""
180
+
181
+ #. module: account_dashboard_banner
182
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__warn_type__under
183
+ msgid "Under Minimum"
184
+ msgstr ""
185
+
186
+ #. module: account_dashboard_banner
187
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__warn_type__outside
188
+ msgid "Under Minimum or Above Maximum"
189
+ msgstr ""
190
+
191
+ #. module: account_dashboard_banner
192
+ #: model_terms:ir.ui.view,arch_db:account_dashboard_banner.account_dashboard_banner_cell_form
193
+ msgid "Warn If"
194
+ msgstr ""
195
+
196
+ #. module: account_dashboard_banner
197
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__warn_lock_date_days
198
+ msgid "Warn Lock Date Days"
199
+ msgstr ""
200
+
201
+ #. module: account_dashboard_banner
202
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__warn_type
203
+ msgid "Warn Type"
204
+ msgstr ""
205
+
206
+ #. module: account_dashboard_banner
207
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__warn_type_show
208
+ msgid "Warn Type Show"
209
+ msgstr ""
210
+
211
+ #. module: account_dashboard_banner
212
+ #: model_terms:ir.ui.view,arch_db:account_dashboard_banner.account_dashboard_banner_cell_form
213
+ msgid "Warn if lock date is older than"
214
+ msgstr ""
215
+
216
+ #. module: account_dashboard_banner
217
+ #: model:ir.model.constraint,message:account_dashboard_banner.constraint_account_dashboard_banner_cell_warn_lock_date_days_positive
218
+ msgid "Warn if lock date is older than N days must be positive or null."
219
+ msgstr ""
220
+
221
+ #. module: account_dashboard_banner
222
+ #: model:ir.model.fields,field_description:account_dashboard_banner.field_account_dashboard_banner_cell__warn
223
+ msgid "Warning"
224
+ msgstr ""
225
+
226
+ #. module: account_dashboard_banner
227
+ #: model:ir.model.fields.selection,name:account_dashboard_banner.selection__account_dashboard_banner_cell__cell_type__income_year
228
+ msgid "Year-to-date Income"
229
+ msgstr ""
230
+
231
+ #. module: account_dashboard_banner
232
+ #: model_terms:ir.ui.view,arch_db:account_dashboard_banner.account_dashboard_banner_cell_form
233
+ msgid "days"
234
+ msgstr ""
235
+
236
+ #. module: account_dashboard_banner
237
+ #. odoo-python
238
+ #: code:addons/account_dashboard_banner/models/account_dashboard_banner_cell.py:0
239
+ msgid "from %s"
240
+ msgstr ""
241
+
242
+ #. module: account_dashboard_banner
243
+ #. odoo-python
244
+ #: code:addons/account_dashboard_banner/models/account_dashboard_banner_cell.py:0
245
+ msgid "with due date before %s"
246
+ msgstr ""