Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
odoo-dev
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5bfdf150
authored
Dec 08, 2021
by
Kunto Bregananta Adi
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
main dashboard
1 parent
7a1e7fb9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
90 additions
and
0 deletions
idg_board/__manifest__.py
idg_board/models/idg_region_tax_actual.py
idg_board/views/main_board.xml
idg_board/__manifest__.py
View file @
5bfdf15
...
...
@@ -23,6 +23,7 @@ RI Goverment Dashboard
'views/region_tax_plan.xml'
,
'views/region_tax_actual.xml'
,
'views/menus.xml'
,
'views/main_board.xml'
,
# 'views/portal_templates.xml',
"demo/idg.region.tax.potency.csv"
,
"demo/idg.region.tax.plan.csv"
,
...
...
idg_board/models/idg_region_tax_actual.py
View file @
5bfdf15
...
...
@@ -33,3 +33,4 @@ class IdgRegionTaxActual(models.Model):
row
.
year
=
row
.
date
.
year
row
.
month
=
row
.
date
.
month
row
.
day
=
row
.
date
.
day
idg_board/views/main_board.xml
0 → 100644
View file @
5bfdf15
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record
id=
"idg_region_tax_actual_graph"
model=
"ir.actions.act_window"
>
<field
name=
"name"
>
idg.region.tax.actual.tree
</field>
<field
name=
"res_model"
>
idg.region.tax.actual
</field>
<field
name=
"view_mode"
>
graph
</field>
<!-- <field name="view_id" ref="idg_board.idg_board_tax_actual_graph_view"/> -->
</record>
<record
id=
"idg_region_tax_actual_tree"
model=
"ir.actions.act_window"
>
<field
name=
"name"
>
idg.region.tax.actual.tree
</field>
<field
name=
"res_model"
>
idg.region.tax.actual
</field>
<field
name=
"view_mode"
>
tree
</field>
<!-- <field name="view_id" ref="idg_board.idg_board_tax_actual_graph_view"/> -->
</record>
<record
id=
"idg_region_tax_plan_tree"
model=
"ir.actions.act_window"
>
<field
name=
"name"
>
idg.region.tax.plan.tree
</field>
<field
name=
"res_model"
>
idg.region.tax.plan
</field>
<field
name=
"view_mode"
>
graph
</field>
<!-- <field name="view_id" ref="idg_board.idg_board_tax_plan_graph_view"/> -->
</record>
<record
id=
"idg_region_tax_potency_tree"
model=
"ir.actions.act_window"
>
<field
name=
"name"
>
idg.region.tax.potency.tree
</field>
<field
name=
"res_model"
>
idg.region.tax.potency
</field>
<field
name=
"view_mode"
>
graph
</field>
<!-- <field name="view_id" ref="idg_board.idg_board_tax_potency_graph_view"/> -->
</record>
<record
model=
"ir.ui.view"
id=
"tax_main_board"
>
<field
name=
"name"
>
Dashboard Pajak Daerah
</field>
<field
name=
"model"
>
board.board
</field>
<field
name=
"type"
>
form
</field>
<field
name=
"arch"
type=
"xml"
>
<form
string=
"Dashboard Pajak Daerah"
>
<board
style=
"1-1-1"
>
<column>
<action
string=
"Potensi"
name=
"%(idg_region_tax_potency_tree)d"
/>
</column>
<column>
<action
string=
"Rencana"
name=
"%(idg_region_tax_plan_tree)d"
/>
</column>
<column>
<action
string=
"Realisasi"
name=
"%(idg_region_tax_actual_graph)d"
/>
</column>
</board>
<board
style=
"2-1"
>
<column>
<action
string=
"Potensi"
name=
"%(idg_region_tax_potency_tree)d"
/>
<action
string=
"Rencana"
name=
"%(idg_region_tax_plan_tree)d"
/>
</column>
<column>
<action
string=
"Realisasi"
name=
"%(idg_region_tax_actual_tree)d"
/>
</column>
</board>
</form>
</field>
</record>
<record
model=
"ir.actions.act_window"
id=
"open_board_tax"
>
<field
name=
"name"
>
Dashboard Pajak Daerah
</field>
<field
name=
"res_model"
>
board.board
</field>
<field
name=
"view_mode"
>
form
</field>
<field
name=
"usage"
>
menu
</field>
<field
name=
"view_id"
ref=
"tax_main_board"
/>
</record>
<menuitem
name=
"Dashboard Pajak Daerah"
parent=
"base.menu_reporting_dashboard"
action=
"open_board_tax"
sequence=
"1"
id=
"menu_board_tax"
/>
</odoo>
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment