#6755 (Hide dashboard item 'accounting.JournalsOverview' in pronto)
by Luc Saffre · in Developers · assigned to Luc Saffre
Résumé
This requires a new feature Site.is_visible_in_dashboard().
Concepts sous-jacents
Commentaires
- 6 mois ago by Luc Saffre about #6755 (Hide dashboard item 'accounting.JournalsOverview' in pronto) : I'm not sure whether I like this first approach. I now had an idea for a different approach: store the DashboardItem instances in an AttrDict dd.dashboard, similar to dd.plugins, and then the application developer says dd.dashboard.accounting.JournalsOverview.visible = False somewhere during startup...
- 6 mois ago by Luc Saffre about #6755 (Hide dashboard item 'accounting.JournalsOverview' in pronto) : I pushed my changes (in lino, book, tera pronto...)
- 6 mois ago by Luc Saffre about #6755 (Hide dashboard item 'accounting.JournalsOverview' in pronto) : Little side effect: i chose tera1 as the demo project for demonstrating the new feature. En passant I added a startup.py file to tera1 and converted all doctests to use it. This revealed that book/docs/plugins/sheets.rst modifies the database without tidying up.
- 6 mois ago by Luc Saffre about #6755 (Hide dashboard item 'accounting.JournalsOverview' in pronto) : I also extended the demo fixture of tera1 to call update_widgets_for() for robin, and added a code snippet in docs/specs/dashboard.rst to verify that the accounting.JournalsOverview dashboard item is indeed invisible by default.
- 6 mois ago by Luc Saffre about #6755 (Hide dashboard item 'accounting.JournalsOverview' in pronto) : Created new Ticket #6755 (New feature Site.is_dashboard_item_visible()).