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,92 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <!--
3
+ Copyright 2025 Akretion France (https://www.akretion.com/)
4
+ @author: Alexis de Lattre <alexis.delattre@akretion.com>
5
+ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
6
+ -->
7
+ <odoo>
8
+
9
+ <record id="account_dashboard_banner_cell_form" model="ir.ui.view">
10
+ <field name="model">account.dashboard.banner.cell</field>
11
+ <field name="arch" type="xml">
12
+ <form>
13
+ <group name="main">
14
+ <group name="main-left">
15
+ <field name="cell_type" />
16
+ <field name="warn_type_show" invisible="1" />
17
+ <field name="warn" />
18
+ <label
19
+ for="warn_lock_date_days"
20
+ string="Warn if lock date is older than"
21
+ attrs="{'invisible': ['|', ('warn', '=', False), ('cell_type', 'not in', ('tax_lock_date', 'period_lock_date', 'fiscalyear_lock_date'))]}"
22
+ />
23
+ <div
24
+ name="warn_lock_date_days"
25
+ attrs="{'invisible': ['|', ('warn', '=', False), ('cell_type', 'not in', ('tax_lock_date', 'period_lock_date', 'fiscalyear_lock_date'))]}"
26
+ >
27
+ <field name="warn_lock_date_days" class="oe_inline" /> days
28
+ </div>
29
+ <field
30
+ name="warn_type"
31
+ attrs="{'invisible': [('warn_type_show', '=', False)], 'required': [('warn_type_show', '=', True)]}"
32
+ string="Warn If"
33
+ />
34
+ <field
35
+ name="warn_min"
36
+ attrs="{'invisible': ['|', ('warn_type_show', '=', False), ('warn_type', '=', 'above')]}"
37
+ />
38
+ <field
39
+ name="warn_max"
40
+ attrs="{'invisible': ['|', ('warn_type_show', '=', False), ('warn_type', '=', 'under')]}"
41
+ />
42
+ </group>
43
+ <group name="main-right">
44
+ <field name="custom_label" string="Custom Label (optional)" />
45
+ <field
46
+ name="custom_tooltip"
47
+ string="Custom Tooltip (optional)"
48
+ />
49
+ </group>
50
+ </group>
51
+ </form>
52
+ </field>
53
+ </record>
54
+
55
+ <record id="account_dashboard_banner_cell_list" model="ir.ui.view">
56
+ <field name="model">account.dashboard.banner.cell</field>
57
+ <field name="arch" type="xml">
58
+ <tree>
59
+ <field name="sequence" widget="handle" />
60
+ <field name="cell_type" />
61
+ <field name="warn" optional="show" />
62
+ <field
63
+ name="custom_label"
64
+ string="Custom Label (optional)"
65
+ optional="show"
66
+ />
67
+ <field name="custom_tooltip" optional="hide" />
68
+ </tree>
69
+ </field>
70
+ </record>
71
+
72
+ <record id="account_dashboard_banner_cell_action" model="ir.actions.act_window">
73
+ <field name="name">Dashboard Banner Cells</field>
74
+ <field name="res_model">account.dashboard.banner.cell</field>
75
+ <field name="view_mode">tree,form</field>
76
+ </record>
77
+
78
+ <menuitem
79
+ id="account_dashboard_config"
80
+ name="Dashboard"
81
+ parent="account.menu_finance_configuration"
82
+ sequence="200"
83
+ />
84
+
85
+ <menuitem
86
+ id="account_dashboard_banner_cell_menu"
87
+ action="account_dashboard_banner_cell_action"
88
+ sequence="10"
89
+ parent="account_dashboard_config"
90
+ />
91
+
92
+ </odoo>
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <!--
3
+ Copyright 2025 Akretion France (https://www.akretion.com/)
4
+ @author: Alexis de Lattre <alexis.delattre@akretion.com>
5
+ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
6
+ -->
7
+ <odoo>
8
+
9
+ <record id="account_journal_dashboard_kanban_view" model="ir.ui.view">
10
+ <field name="model">account.journal</field>
11
+ <field name="inherit_id" ref="account.account_journal_dashboard_kanban_view" />
12
+ <field name="arch" type="xml">
13
+ <kanban position="attributes">
14
+ <attribute name="js_class">account_dashboard_kanban_banner</attribute>
15
+ </kanban>
16
+ </field>
17
+ </record>
18
+
19
+ </odoo>
@@ -0,0 +1,168 @@
1
+ Metadata-Version: 2.1
2
+ Name: odoo-addon-account_dashboard_banner
3
+ Version: 16.0.1.0.1.1
4
+ Requires-Python: >=3.10
5
+ Requires-Dist: odoo>=16.0a,<16.1dev
6
+ Summary: Add a configurable banner on the accounting dashboard
7
+ Home-page: https://github.com/OCA/account-financial-tools
8
+ License: AGPL-3
9
+ Author: Akretion,Odoo Community Association (OCA)
10
+ Author-email: support@odoo-community.org
11
+ Classifier: Programming Language :: Python
12
+ Classifier: Framework :: Odoo
13
+ Classifier: Framework :: Odoo :: 16.0
14
+ Classifier: License :: OSI Approved :: GNU Affero General Public License v3
15
+ Classifier: Development Status :: 4 - Beta
16
+ Description-Content-Type: text/x-rst
17
+
18
+ .. image:: https://odoo-community.org/readme-banner-image
19
+ :target: https://odoo-community.org/get-involved?utm_source=readme
20
+ :alt: Odoo Community Association
21
+
22
+ ========================
23
+ Account Dashboard Banner
24
+ ========================
25
+
26
+ ..
27
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
28
+ !! This file is generated by oca-gen-addon-readme !!
29
+ !! changes will be overwritten. !!
30
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
31
+ !! source digest: sha256:e802752b049f891ea4c459b60097080416380c8c6115bdbd57801d7edbbc8a09
32
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
33
+
34
+ .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
35
+ :target: https://odoo-community.org/page/development-status
36
+ :alt: Beta
37
+ .. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
38
+ :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
39
+ :alt: License: AGPL-3
40
+ .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github
41
+ :target: https://github.com/OCA/account-financial-tools/tree/16.0/account_dashboard_banner
42
+ :alt: OCA/account-financial-tools
43
+ .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
44
+ :target: https://translation.odoo-community.org/projects/account-financial-tools-16-0/account-financial-tools-16-0-account_dashboard_banner
45
+ :alt: Translate me on Weblate
46
+ .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
47
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/account-financial-tools&target_branch=16.0
48
+ :alt: Try me on Runboat
49
+
50
+ |badge1| |badge2| |badge3| |badge4| |badge5|
51
+
52
+ The development of this module started with a simple analysis:
53
+ accountants tend to forget to update the lock dates. Part of the problem
54
+ lies in the fact that the lock dates can be seen in the wizard to update
55
+ the lock dates, but accountants have no incentive to start this wizard
56
+ regularly to check the lock dates. The idea was to display the lock
57
+ dates in a banner at the top of the accounting dashboard, so that
58
+ accountants have the value of the lock dates in front of their eyes.
59
+
60
+ With such a banner in the accounting dashboard to display the lock
61
+ dates, there was a great temptation to display other interesting
62
+ information in that banner, such as some key figures of the accounting:
63
+ liquidity, turnover, customer overdue, etc. It gave birth to the idea to
64
+ have a configurable banner in the accounting dashboard!
65
+
66
+ **Table of contents**
67
+
68
+ .. contents::
69
+ :local:
70
+
71
+ Configuration
72
+ =============
73
+
74
+ Go to the menu **Invoicing > Configuration > Dashboard > Dashboard
75
+ Banner Cells**: in this menu, you can add or remove cells from the
76
+ banner, change the cell type, modify the order via drag-and-drop,
77
+ customize the labels if necessary.
78
+
79
+ |Cell configuration menu|
80
+
81
+ Many cell types are available:
82
+
83
+ - **Income** with 4 options: *Fiscal Year-to-date Income*, *Year-to-date
84
+ Income*, *Quarter-to-date Income* and *Month-to-date Income*. It
85
+ displays the period balance of the accounts with type *Income* and
86
+ *Other Income*.
87
+ - **Liquidity**: it display the ending balance of the accounts linked to
88
+ a bank or cash or credit journal.
89
+ - **Customer Debt**: it displays the ending balance of the default
90
+ *Account Receivable* and, if the point of sale is installed, the
91
+ intermediary account used for unidentified customers.
92
+ - **Customer Overdue**: same as the *Customer Debt*, but limited to
93
+ journal items with a due date in the past.
94
+ - **Supplier Debt**: it displays the ending balance of the default
95
+ *Account Payable*.
96
+ - **Lock dates**: all the lock dates are available: *Tax Return Lock
97
+ Date*, *Journals Entries Lock Date* and *All Users Lock Date*.
98
+
99
+ The module is designed to allow the modification of the computation of
100
+ the different cell types by inheriting the method
101
+ *\_prepare_cell_data\_<cell_type>()* or *\_prepare_cell_data()*. It is
102
+ also easy for a developper to add more cell types.
103
+
104
+ It is possible to display a cell as a warning cell (yellow background
105
+ color instead of light grey): click on the *Warning* option and
106
+ customize the conditions to trigger the warning.
107
+
108
+ |Cell form with warning|
109
+
110
+ .. |Cell configuration menu| image:: https://raw.githubusercontent.com/OCA/account-financial-tools/16.0/account_dashboard_banner/static/description/banner_cell_config.png
111
+ .. |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
112
+
113
+ Usage
114
+ =====
115
+
116
+ Enjoy the accounting dashboard with the banner at the top:
117
+
118
+ |Accounting dashboard with banner|
119
+
120
+ .. |Accounting dashboard with banner| image:: https://raw.githubusercontent.com/OCA/account-financial-tools/16.0/account_dashboard_banner/static/description/account_dashboard_banner.png
121
+
122
+ Bug Tracker
123
+ ===========
124
+
125
+ Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-financial-tools/issues>`_.
126
+ In case of trouble, please check there if your issue has already been reported.
127
+ If you spotted it first, help us to smash it by providing a detailed and welcomed
128
+ `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**>`_.
129
+
130
+ Do not contact contributors directly about support or help with technical issues.
131
+
132
+ Credits
133
+ =======
134
+
135
+ Authors
136
+ -------
137
+
138
+ * Akretion
139
+
140
+ Contributors
141
+ ------------
142
+
143
+ - Alexis de Lattre <alexis.delattre@akretion.com>
144
+
145
+ Maintainers
146
+ -----------
147
+
148
+ This module is maintained by the OCA.
149
+
150
+ .. image:: https://odoo-community.org/logo.png
151
+ :alt: Odoo Community Association
152
+ :target: https://odoo-community.org
153
+
154
+ OCA, or the Odoo Community Association, is a nonprofit organization whose
155
+ mission is to support the collaborative development of Odoo features and
156
+ promote its widespread use.
157
+
158
+ .. |maintainer-alexis-via| image:: https://github.com/alexis-via.png?size=40px
159
+ :target: https://github.com/alexis-via
160
+ :alt: alexis-via
161
+
162
+ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
163
+
164
+ |maintainer-alexis-via|
165
+
166
+ 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.
167
+
168
+ You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
@@ -0,0 +1,29 @@
1
+ odoo/addons/account_dashboard_banner/README.rst,sha256=GcT1Jw11yN8mLVFXItzQDyJOCw_0pngB-bMXZeURkpg,6444
2
+ odoo/addons/account_dashboard_banner/__init__.py,sha256=9omvQVHTvIdJiWUPKF_5RsE7NHJbLXOX1s5LKkU3z5A,86
3
+ odoo/addons/account_dashboard_banner/__manifest__.py,sha256=AYQCX1IWLlHDdqPlciqVPC3gxgvHXbfJIwAsEaZsVMU,1109
4
+ odoo/addons/account_dashboard_banner/post_install.py,sha256=ru1MhxTH8LfV9LPTSE9vkgghZy4AoIIAE5eL4F3oX9k,1101
5
+ odoo/addons/account_dashboard_banner/i18n/account_dashboard_banner.pot,sha256=kOjjWLURQ3JTAGUjNog9lk34Dy3kGA9ouv4FAka7hKc,9464
6
+ odoo/addons/account_dashboard_banner/i18n/fr.po,sha256=g7pbxkwzEyjPD_We0BSYKdP2yih1unPRmWGsQzkDfDg,11447
7
+ odoo/addons/account_dashboard_banner/i18n/it.po,sha256=wIarxThTgkFreYyhhX-XDpLbOskXxDUqcZZJ3hTn1oU,10796
8
+ odoo/addons/account_dashboard_banner/models/__init__.py,sha256=vZDWdXpC5wVgQc-YYyTFEfDuUXeO5W1BFwiPnotkU8E,44
9
+ odoo/addons/account_dashboard_banner/models/account_dashboard_banner_cell.py,sha256=StATosKFdK-8_mj14wNY1mBKPaG0eeQpGbOrlCzg1nQ,12940
10
+ odoo/addons/account_dashboard_banner/readme/CONFIGURE.md,sha256=oQBbondFpzx6gAtjofsJZDtvCqM7AzYn6Tnh2I247PU,1710
11
+ odoo/addons/account_dashboard_banner/readme/CONTRIBUTORS.md,sha256=gFP604njgvkxmsr2ZQAuYi0khBJEdMTwduFo1dgG0wE,54
12
+ odoo/addons/account_dashboard_banner/readme/DESCRIPTION.md,sha256=tTBWSU8-vjeSVBVP4J-rWs48XrPKlL_-HXezfUXyFSc,817
13
+ odoo/addons/account_dashboard_banner/readme/USAGE.md,sha256=SCgiVwnGrW19VRT5EWauZ9TuffyqCW6IkcsAK2ISaeA,148
14
+ odoo/addons/account_dashboard_banner/security/ir.model.access.csv,sha256=812nv84Zl7ZDY8VU7OrEaANqFXLmHdyjoliBmz4Gu-c,564
15
+ odoo/addons/account_dashboard_banner/static/description/account_dashboard_banner.png,sha256=-SsT4H5JntVFGpmcgnNQZDRNnBJ16vVugbcdqaqarYY,77126
16
+ odoo/addons/account_dashboard_banner/static/description/banner_cell_config.png,sha256=SXBuq2wiyo_xxiSUr8pIm8i7-Rw8cf2K9qWt11HIO1U,42021
17
+ odoo/addons/account_dashboard_banner/static/description/cell_form_with_warning.png,sha256=8H9Vnp4e8Gam5eO9UKuFGLwMpH0iYZooNsdQAsiHQ7s,34532
18
+ odoo/addons/account_dashboard_banner/static/description/icon.png,sha256=CgnOEZCwoe6f1vlLwkqFVfc2q_uwBMU0UnXN8j6X5ag,10254
19
+ odoo/addons/account_dashboard_banner/static/description/index.html,sha256=gVpJV3ZacJi_r_9_oaGXTn36t6LcSuT2XcZGcUvDWG0,16448
20
+ odoo/addons/account_dashboard_banner/static/src/views/account_dashboard_kanban_banner.esm.js,sha256=E5lnxyhMaPLDr978kTTaSNTp1hTDHJrRhQmGMzBPPR4,1385
21
+ odoo/addons/account_dashboard_banner/static/src/views/account_dashboard_kanban_banner.xml,sha256=9_kgOqBeKsZN3zHNs8G_ilkJs45riYIucSdkyHWhLnk,1950
22
+ odoo/addons/account_dashboard_banner/tests/__init__.py,sha256=qTAN3lxvySaOwrEw-5SXJQVGsf4lIpxBmJQbMy86AXk,26
23
+ odoo/addons/account_dashboard_banner/tests/test_banner.py,sha256=_IRZsnUHtoB0corXn7UBnLAJProAhlEP3c2JaB_5m1c,2241
24
+ odoo/addons/account_dashboard_banner/views/account_dashboard_banner_cell.xml,sha256=amD2yt2F1l9kXMvNxnuOOpgaC3pCQESrfOLfWAvHPN0,3869
25
+ odoo/addons/account_dashboard_banner/views/account_journal_dashboard.xml,sha256=6vOt6lwq352Y_Vu5GyLqxgxLl2c0EuaAN3yB91E_LlQ,687
26
+ odoo_addon_account_dashboard_banner-16.0.1.0.1.1.dist-info/METADATA,sha256=eZgKJGM_Iko1oFR8Nnw40CdZORDxlmFQrcqdfr-h8HU,7086
27
+ odoo_addon_account_dashboard_banner-16.0.1.0.1.1.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
28
+ odoo_addon_account_dashboard_banner-16.0.1.0.1.1.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
29
+ odoo_addon_account_dashboard_banner-16.0.1.0.1.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: Whool 1.3
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+