Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions awesome_dashboard/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-

from . import controllers
from . import models
39 changes: 19 additions & 20 deletions awesome_dashboard/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
# -*- coding: utf-8 -*-
{
'name': "Awesome Dashboard",

'summary': """
"name": "Awesome Dashboard",
"summary": """
Starting module for "Discover the JS framework, chapter 2: Build a dashboard"
""",

'description': """
"description": """
Starting module for "Discover the JS framework, chapter 2: Build a dashboard"
""",

'author': "Odoo",
'website': "https://www.odoo.com/",
'category': 'Tutorials/AwesomeDashboard',
'version': '0.1',
'application': True,
'installable': True,
'depends': ['base', 'web', 'mail', 'crm'],

'data': [
'views/views.xml',
"author": "Odoo",
"website": "https://www.odoo.com/",
"category": "Tutorials/AwesomeDashboard",
"version": "0.1",
"application": True,
"installable": True,
"depends": ["base", "web", "mail", "crm"],
"data": [
"security/ir.model.access.csv",
"views/views.xml",
],
'assets': {
'web.assets_backend': [
'awesome_dashboard/static/src/**/*',
"assets": {
"web.assets_backend": [
"awesome_dashboard/static/src/**/*",
("remove", "awesome_dashboard/static/src/dashboard/**/*"),
],
"awesome_dashboard.dashboard": ["awesome_dashboard/static/src/dashboard/**/*"],
},
'license': 'AGPL-3'
"license": "AGPL-3",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Be careful with this I think you're formatter is turning every ' into a ". That shouldn't happen it should preserve the quotes

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll look into it ty

}
124 changes: 124 additions & 0 deletions awesome_dashboard/i18n/en_US.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * awesome_dashboard
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-09-26 14:52+0000\n"
"PO-Revision-Date: 2025-09-26 16:54+0200\n"
"Last-Translator: odoo <odoo@nosir-laptop>\n"
"Language-Team: English\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Language: en_US\n"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_items.js:0
msgid "Average amount of t-shirt"
msgstr "Average amount of t-shirt"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_items.js:0
msgid "Average amount of t-shirt by order this month"
msgstr "Average amount of t-shirt by order this month"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_items.js:0
msgid "Average time for an order"
msgstr "Average time for an order"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_items.js:0
msgid "Average time for an order to go from 'new' to 'sent' or 'cancelled'"
msgstr "Average time for an order to go from 'new' to 'sent' or 'cancelled'"

#. module: awesome_dashboard
#: model:ir.ui.menu,name:awesome_dashboard.menu_root
msgid "Awesome Dashboard"
msgstr "Awesome Dashboard"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_dialog/dashboard_dialog.xml:0
msgid "Cancel"
msgstr "Cancel"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_items.js:0
msgid "Cancelled orders this month"
msgstr "Cancelled orders this month"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_dialog/dashboard_dialog.xml:0
msgid "Confirm"
msgstr "Confirm"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard.xml:0
msgid "Customers"
msgstr "Customers"

#. module: awesome_dashboard
#: model:ir.actions.client,name:awesome_dashboard.dashboard
#: model:ir.ui.menu,name:awesome_dashboard.dashboard_menu
msgid "Dashboard"
msgstr "Dashboard"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_dialog/dashboard_dialog.js:0
msgid "Dashboard Configuration"
msgstr "Dashboard Configuration"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard.xml:0
msgid "Leads"
msgstr "Leads"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_items.js:0
msgid "New orders this month"
msgstr "New orders this month"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_items.js:0
msgid "Number of cancelled orders this month"
msgstr "Number of cancelled orders this month"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_items.js:0
msgid "Number of new orders this month"
msgstr "Number of new orders this month"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_items.js:0
msgid "Shirt orders by size"
msgstr "Shirt orders by size"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_items.js:0
msgid "Total amount of new orders this month"
msgstr "Total amount of new orders this month"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_items.js:0
msgid "amount orders this month"
msgstr "amount orders this month"
124 changes: 124 additions & 0 deletions awesome_dashboard/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * awesome_dashboard
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-09-26 14:52+0000\n"
"PO-Revision-Date: 2025-09-26 16:54+0200\n"
"Last-Translator: odoo <odoo@nosir-laptop>\n"
"Language-Team: French <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"Language: fr\n"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_items.js:0
msgid "Average amount of t-shirt"
msgstr "Nombre moyen de t-shirt"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_items.js:0
msgid "Average amount of t-shirt by order this month"
msgstr "Nombre moyen de t-shirt par commande ce mois"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_items.js:0
msgid "Average time for an order"
msgstr "Temps moyen pour une commande"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_items.js:0
msgid "Average time for an order to go from 'new' to 'sent' or 'cancelled'"
msgstr "Temps moyen pour qu'une commande passe de 'nouveau' à 'envoyée' ou 'annulée'"

#. module: awesome_dashboard
#: model:ir.ui.menu,name:awesome_dashboard.menu_root
msgid "Awesome Dashboard"
msgstr "Awesome Dashboard"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_dialog/dashboard_dialog.xml:0
msgid "Cancel"
msgstr "Annuler"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_items.js:0
msgid "Cancelled orders this month"
msgstr "Commandes annulées ce mois"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_dialog/dashboard_dialog.xml:0
msgid "Confirm"
msgstr "Confirmer"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard.xml:0
msgid "Customers"
msgstr "Clients"

#. module: awesome_dashboard
#: model:ir.actions.client,name:awesome_dashboard.dashboard
#: model:ir.ui.menu,name:awesome_dashboard.dashboard_menu
msgid "Dashboard"
msgstr "Dashboard"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_dialog/dashboard_dialog.js:0
msgid "Dashboard Configuration"
msgstr "Configuration du Dashboard"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard.xml:0
msgid "Leads"
msgstr "Pistes"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_items.js:0
msgid "New orders this month"
msgstr "Nouvelles commandes ce mois"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_items.js:0
msgid "Number of cancelled orders this month"
msgstr "Nombre de commandes annulées ce mois"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_items.js:0
msgid "Number of new orders this month"
msgstr "Nombre de nouvelles commandes ce mois"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_items.js:0
msgid "Shirt orders by size"
msgstr "Commandes de T-Shirt par taille"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_items.js:0
msgid "Total amount of new orders this month"
msgstr "Nombre total de nouvelles commandes ce mois"

#. module: awesome_dashboard
#. odoo-javascript
#: code:addons/awesome_dashboard/static/src/dashboard/dashboard_items.js:0
msgid "amount orders this month"
msgstr "Quantitées de commandes ce mois"
3 changes: 3 additions & 0 deletions awesome_dashboard/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from . import (
res_users
)
7 changes: 7 additions & 0 deletions awesome_dashboard/models/res_users.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from odoo import models, fields

class ResUsers(models.Model):
_inherit = "res.users"

dashboard_config = fields.Text("Dashboard Configuration")

2 changes: 2 additions & 0 deletions awesome_dashboard/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_res_users,res.users,model_res_users,base.group_user,1,1,1,1
10 changes: 0 additions & 10 deletions awesome_dashboard/static/src/dashboard.js

This file was deleted.

Loading