Browse Source

[IMP] Dashboard added 'base_accounting_kit'

Ajmal JK 6 years ago
parent
commit
aac650d04e
  1. 7
      base_accounting_kit/__manifest__.py
  2. 5
      base_accounting_kit/doc/changelog.md
  3. 1
      base_accounting_kit/models/__init__.py
  4. 1806
      base_accounting_kit/models/account_dashboard.py
  5. BIN
      base_accounting_kit/static/description/banner.gif
  6. BIN
      base_accounting_kit/static/description/images/accounting_kit_window.gif
  7. BIN
      base_accounting_kit/static/description/images/accounting_kit_window.png
  8. BIN
      base_accounting_kit/static/description/images/base_accounting_kit_dashboard-1.png
  9. BIN
      base_accounting_kit/static/description/images/base_accounting_kit_dashboard-2.png
  10. 43
      base_accounting_kit/static/description/index.html
  11. 1985
      base_accounting_kit/static/src/js/account_dashboard.js
  12. 1164
      base_accounting_kit/static/src/scss/style.scss
  13. 324
      base_accounting_kit/static/src/xml/template.xml
  14. 17
      base_accounting_kit/views/assets.xml
  15. 14
      base_accounting_kit/views/dashboard_views.xml

7
base_accounting_kit/__manifest__.py

@ -22,7 +22,7 @@
{
'name': 'Odoo 13 Full Accounting Kit',
'version': '13.0.3.4.3',
'version': '13.0.4.4.3',
'category': 'Accounting',
'summary': """ Asset and Budget Management,
Accounting Reports, PDC, Lock dates,
@ -54,6 +54,8 @@
'data/followup_levels.xml',
'data/account_asset_data.xml',
'data/recurring_entry_cron.xml',
'views/assets.xml',
'views/dashboard_views.xml',
'views/reports_config_view.xml',
'views/accounting_menu.xml',
'views/credit_limit_view.xml',
@ -95,6 +97,9 @@
'report/account_asset_report_views.xml',
'report/report.xml',
],
'qweb': [
'static/src/xml/template.xml'
],
'license': 'LGPL-3',
'images': ['static/description/banner.gif'],
'installable': True,

5
base_accounting_kit/doc/changelog.md

@ -39,3 +39,8 @@
#### Version 13.0.3.4.3
#### FIX
- Asset depreciation date issue
#### 12.02.2020
#### Version 13.0.4.4.3
#### UPDT
- Dashboard Added

1
base_accounting_kit/models/__init__.py

@ -32,3 +32,4 @@ from . import product_template
from . import recurring_payments
from . import res_config_settings
from . import res_partner
from . import account_dashboard

1806
base_accounting_kit/models/account_dashboard.py

File diff suppressed because it is too large

BIN
base_accounting_kit/static/description/banner.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 94 KiB

BIN
base_accounting_kit/static/description/images/accounting_kit_window.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 712 KiB

BIN
base_accounting_kit/static/description/images/accounting_kit_window.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 257 KiB

BIN
base_accounting_kit/static/description/images/base_accounting_kit_dashboard-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

BIN
base_accounting_kit/static/description/images/base_accounting_kit_dashboard-2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

43
base_accounting_kit/static/description/index.html

@ -10,10 +10,17 @@
<div class="col-md-7 col-sm-12 col-xs-12" style="padding: 0px">
<div style=" margin: 0 0 0px;padding: 20px 0 10;font-size: 23px;line-height: 35px;font-weight: 400;color: #000;border-top: 1px solid rgba(255,255,255,0.1);border-bottom: 1px solid rgba(255,255,255,0.11);text-align: left;">
<h1 style="font-size: 39px;font-weight: 600;margin: 0px !important;">Odoo 13 Accounting</h1>
<h3 style="font-size: 21px;margin-top: 8px;position: relative;">Asset Management, Accounting Reports, PDC Management,
<h3 style="font-size: 21px;margin-top: 8px;position: relative;">Dashboard, Asset Management, Accounting Reports, PDC Management,
Account Lock dates, Customer Credit Limit and Follow Ups, Day book,
Bank book and Cash book reports in Odoo 13 community edition.</h3>
</div>
<h2 style="font-weight: 600;font-size: 1.8rem;margin-top: 15px;">New Feature</h2>
<ul style=" padding: 0 1px; list-style: none;">
<li style="display: flex;align-items: center;padding: 8px 0;font-size: 18px;"><img src="images/checked.png" style=" width: 22px; margin-right: 6px; " alt="check">
Accounting Dashboard.
</li>
<li style="display: flex;align-items: center;padding: 8px 0;font-size: 18px;"></li>
</ul>
<h2 style="font-weight: 600;font-size: 1.8rem;margin-top: 15px;">Key Highlights</h2>
<ul style=" padding: 0 1px; list-style: none; ">
<li style="display: flex;align-items: center;padding: 8px 0;font-size: 18px;"><img src="images/checked.png" style=" width: 22px; margin-right: 6px; " alt="check">
@ -40,7 +47,7 @@
</ul>
</div>
<div class="col-md-5 col-sm-12 col-xs-12"><img src="images/accounting_kit_window.png" class="img-responsive" alt=""></div>
<div class="col-md-5 col-sm-12 col-xs-12"><img src="images/accounting_kit_window.gif" class="img-responsive" alt=""></div>
</div>
<div>
@ -93,6 +100,34 @@
<section class="oe_container">
<div id="demo" class="row carousel slide mb32" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active" style="min-height: 0px;">
<div class="col-xs-12 col-sm-12 col-md-12 mb16 mt16" style="float: left;">
<h3 class="alert"
style="font-weight:400;color: #091E42;background: #fff;text-align: left;border-radius: 0; font-size: 18px;">
<img src="images/checked.png"
style=" width: 22px; margin-right: 6px; " alt="check">
Dashboard with Necessary Details.
</h3>
<div style="">
<img class="img img-responsive center-block" style="border-top-left-radius: 10px;border-top-right-radius: 10px;"
src="images/base_accounting_kit_dashboard-1.png">
</div>
</div>
</div>
<div class="carousel-item active" style="min-height: 0px;">
<div class="col-xs-12 col-sm-12 col-md-12 mb16 mt16" style="float: left;">
<h3 class="alert"
style="font-weight:400;color: #091E42;background: #fff;text-align: left;border-radius: 0; font-size: 18px;">
<img src="images/checked.png"
style=" width: 22px; margin-right: 6px; " alt="check">
Aged Receivable, Payable and Top Customer Details in Dashboard.
</h3>
<div style="">
<img class="img img-responsive center-block" style="border-top-left-radius: 10px;border-top-right-radius: 10px;"
src="images/base_accounting_kit_dashboard-2.png">
</div>
</div>
</div>
<div class="carousel-item active" style="min-height: 0px;">
<div class="col-xs-12 col-sm-12 col-md-12 mb16 mt16" style="float: left;">
<h3 class="alert"
@ -494,6 +529,10 @@
<h2 style="font-weight: 600;text-align: center;width: 100%;">Odoo 13 Accounting</h2>
<hr style="margin-top: 0px;margin-bottom: 2%;border: 0;text-align: center;border-top: 3px solid #d21c22;width: 5%;">
<ul>
<li class="mb8" style="font-family: Roboto;color: #000;list-style-type: square;font-size: 19px;line-height: 50px; background-color: #3a34380d;padding-left: 20px;border-radius: 7px;list-style: none;">
<img src="images/checked.png" style=" width: 22px; margin-right: 6px; " alt="check">
Accounting Dashboard with all necessary details.
</li>
<li class="mb8" style="font-family: Roboto;color: #000;list-style-type: square;font-size: 19px;line-height: 50px; background-color: #3a34380d;padding-left: 20px;border-radius: 7px;list-style: none;">
<img src="images/checked.png" style=" width: 22px; margin-right: 6px; " alt="check">
Asset management system for Odoo 13 community edition.

1985
base_accounting_kit/static/src/js/account_dashboard.js

File diff suppressed because it is too large

1164
base_accounting_kit/static/src/scss/style.scss

File diff suppressed because it is too large

324
base_accounting_kit/static/src/xml/template.xml

@ -0,0 +1,324 @@
<?xml version="1.0" encoding="UTF-8" ?>
<templates id="template" xml:space="preserve">
<t t-name="Invoicedashboard">
<div class="accounts-dashboard-wrap">
<div class="o_dashboards col-xs-12 col-sm-12 col-lg-12 col-md-12" style="background-color: #e1e1e1;overflow: scroll; !important; ">
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-12">
<div class="dash-header">
<h1 class="custom-h1 dashboard-h1">Dashboard </h1>
<input type="checkbox" style="display:none" data-toggle="toggle" data-on="" data-off="">
<input type="checkbox" id="toggle-two"></input>
</input>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row" style="margin:0px">
<div class="col-xs-12 col-sm-12 col-lg-12 col-md-12">
<div class="">
<div class="row account-details" style="margin:0px">
<div class="col-md-3">
<!-- Net Profit or Loss -->
<div class="tile wide invoice box-1">
<div class="headers">
<div class="main-title">Net Profit or Loss</div>
<div id="monthly_invoice">
<div class="left">
<div class="count">
<span id="net_profit_current_year" />
</div>
</div>
<div class="right">
<div class="count">
<span id="net_profit_current_months" />
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Total Income -->
<div class="col-md-3">
<div class="tile wide invoice box-2">
<div class="header">
<div class="main-title">Total Income</div>
<div id="monthly_income">
<div class="left">
<div class="count">
<span id="total_incomes_this_year" />
</div>
</div>
<div class="right">
<div class="count">
<span id="total_incomes_" />
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Total Expense -->
<div class="col-md-3">
<div class="tile wide invoice box-3">
<div class="header">
<div class="main-title">Total Expenses</div>
<div id="monthly_expense">
<div class="left">
<div class="count">
<span id="total_expense_this_year" />
</div>
</div>
<div class="right">
<div class="count">
<span id="total_expenses_" />
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Unreconciled items -->
<div class="col-md-3">
<div class="tile wide invoice box-4">
<div class="header">
<div class="main-title">Unreconciled items</div>
<div id="monthly_unreconciled">
<div class="left">
<div class="count">
<span id="unreconciled_counts_this_year" />
</div>
</div>
<div class="right">
<div class="count">
<span id="unreconciled_items_" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- <div class="row" style="margin:0px">-->
<div class="col-xs-12 col-sm-12 col-lg-12 col-md-12">
<div class="row" style="margin:0px">
<div class="col-md-4" id="col-graph">
<div class="card">
<div class="card-header">
<div class="card-title">
<b>
<h3 class="custom-h3">Income/Expense</h3>
</b>
</div>
<div class="card-tools">
<select>
<option id="income_this_year">This Year</option>
<option id="income_this_month">This Month</option>
<div role="separator" class="dropdown-divider" />
<option id="income_last_month">Last Month</option>
<option id="income_last_year">Last Year</option>
</select>
</div>
</div>
<div class="card-body mt-3" id="in_ex_body_hide">
<div class="row">
<div class="col-md-12">
<p id="myelement1"></p>
<div class="chart">
<canvas id="canvas" width="300" height="200"></canvas>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4" id="col-graph">
<div class="card">
<div class="card-header">
<div class="card-title">
<b>
<h3 class="custom-h3">INVOICES</h3>
</b>
</div>
<div class="card-tools">
<select>
<option id="invoice_this_month">This Month</option>
<option id="invoice_this_year">This Year</option>
</select>
</div>
</div>
<!-- /.card-header -->
<div class="card-body" id="">
<div class="row">
<div class="col-md-12 mt-3">
<h1 class="custom-h1" style="margin-bottom: 0;">Customer Invoice</h1>
<ul class="skill-list">
<li class="skill" style="display: flex;justify-content: space-between;color: #000;">
<p id="total_customer_invoice_paid" />
<p id="total_customer_invoice" />
<p id="total_customer_invoice_paid_current_year" />
<p id="total_customer_invoice_current_year" />
<p id="total_customer_invoice_paid_current_month" />
<p id="total_customer_invoice_current_month" />
</li>
<li>
<progress id="tot_invoice" class="skill-1" max="" value="">
<strong>Skill Level: 50%</strong>
</progress>
</li>
<li>
<progress id="tot_invoice_current_year" class="skill-1" max="" value="">
<strong>Skill Level: 50%</strong>
</progress>
</li>
<li>
<progress id="tot_invoice_current_month" class="skill-1" max="" value="">
<strong>Skill Level: 50%</strong>
</progress>
</li>
</ul>
<div role="separator" class="dropdown-divider" />
<h1 class="custom-h1" style="margin-bottom: 0;">Supplier Invoice</h1>
<ul class="skill-list">
<li class="skill" style="display: flex;justify-content: space-between;color: #000;">
<p id="total_supplier_invoice_paid" />
<p id="total_supplier_invoice" />
<p id="total_supplier_invoice_paid_current_year" />
<p id="total_supplier_invoice_current_year" />
<p id="total_supplier_invoice_paid_current_month" />
<p id="total_supplier_invoice_current_month" />
</li>
<li>
<progress id="tot_supplier_inv" class="skill-1" max="" value="">
<strong>Skill Level: 50%</strong>
</progress>
</li>
<li>
<progress id="tot_supplier_inv_current_year" class="skill-1" max="" value="">
<strong>Skill Level: 50%</strong>
</progress>
</li>
<li>
<progress id="tot_supplier_inv_current_month" class="skill-1" max="" value="">
<strong>Skill Level: 50%</strong>
</progress>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4" id="col-graph">
<div class="card">
<div class="card-body p-0" style=" height: 287px; overflow-y: auto; ">
<div class="card-header" style=" padding: 17px 1.5rem !important; display: flex !IMPORTANT; justify-content: space-between; align-items: center; ">
<h3 class="custom-h3 card-title">
<b>BANK AND CASH BALANCE</b>
</h3>
</div>
<div class="card-body p-0" style=" height: 100px; " id="bank_balance_body_hide">
<ul id="current_bank_balance"></ul>
</div>
</div>
</div>
</div>
<div class="col-md-4" id="col-graph">
<div class="card">
<div class="card-header">
<div class="card-title">
<b>
<h3 class="custom-h3">Aged Receivable</h3>
</b>
</div>
<div class="card-tools">
<select>
<option id="aged_payable_this_month">This Month</option>
<option id="aged_payable_this_year">This Year</option>
</select>
</div>
</div>
<!-- /.card-header -->
<div class="card-body" id="ex_body">
<div class="row">
<div class="col-md-12">
<div>
<canvas id="canvas1" height="250px" width="400px"></canvas>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4" id="col-graph">
<div class="card">
<div class="card-header">
<div class="card-title">
<b>
<h3 class="custom-h3">Aged Payable</h3>
</b>
</div>
<div class="card-tools">
<select>
<option id="aged_receivable_this_month">This Month</option>
<option id="aged_receivable_this_year">This Year</option>
</select>
</div>
</div>
<!-- /.card-header -->
<div class="card-body" id="aged_payable_body_hide">
<div class="row">
<div class="col-md-12">
<div id="chart">
<canvas id="horizontalbarChart" width="400" height="250"></canvas>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card" style="height:366px;">
<div class="card-header" style=" padding: 17px 1.5rem !important; display: flex !IMPORTANT; justify-content: space-between; align-items: center; ">
<h3 class="custom-h3 card-title">
<b>TOP 10 CUSTOMERS</b>
</h3>
<div class="card-tools">
<select>
<option id="top_10_customer_this_month">This Month</option>
<div role="separator" class="dropdown-divider" />
<option id="top_10_customer_last_month">Last Month</option>
</select>
</div>
</div>
<div class="card-body p-0" style=" height: 287px; overflow-y: auto; " id="top_10_body">
<ul class="users-list clearfix" id="top_10_customers"></ul>
<ul class="users-list clearfix" id="top_10_customers_this_month"></ul>
<ul class="users-list clearfix" id="top_10_customers_last_month"></ul>
</div>
</div>
</div>
</div>
</div>
<!-- </div>-->
<div class="container-fluid o_hr_dashboard">
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3" id="invoice_grapg" />
<div class="dashboard-header-filter">
<div class="manager_filter_class" />
</div>
</div>
<div id="chart-container"></div>
</div>
</t>
</templates>

17
base_accounting_kit/views/assets.xml

@ -0,0 +1,17 @@
<odoo>
<template id="assets_invoice_dashboard" name="Invoice Dashboard" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet"/>
<link rel="stylesheet" type="text/scss" href="/base_accounting_kit/static/src/scss/style.scss"/>
<link rel="stylesheet" type="text/scss" href="/base_accounting_kit/static/lib/loading-bar-master/dist/loading-bar.css"/>
<link rel="stylesheet" type="text/scss" href="/base_accounting_kit/static/lib/bootstrap-toggle-master/css/bootstrap-toggle.min.css"/>
<script type="text/javascript" src="/base_accounting_kit/static/src/js/account_dashboard.js"/>
<script type="text/javascript" src="/base_accounting_kit/static/lib/Chart.bundle.js"/>
<script type="text/javascript" src="/base_accounting_kit/static/lib/Chart.bundle.min.js"/>
<script type="text/javascript" src="/base_accounting_kit/static/lib/Chart.min.js"/>
<script type="text/javascript" src="/base_accounting_kit/static/lib/Chart.js"/>
<script type="text/javascript" src="/base_accounting_kit/static/lib/bootstrap-toggle-master/js/bootstrap-toggle.min.js"/>
<script type="text/javascript" src="/base_accounting_kit/static/lib/loading-bar-master/lib/loading-bar.js"/>
</xpath>
</template>
</odoo>

14
base_accounting_kit/views/dashboard_views.xml

@ -0,0 +1,14 @@
<odoo>
<data>
<record id="action_account_invoice_report_all" model="ir.actions.client">
<field name="name">Account Report</field>
<field name="tag">invoice_dashboard</field>
</record>
<menuitem name="Dashboard" id="menu_accounting_dashboard" parent="account.menu_finance"
sequence="0"
groups="account.group_account_manager"
action="action_account_invoice_report_all"/>
</data>
</odoo>
Loading…
Cancel
Save