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 d0c924cf
authored
Nov 23, 2021
by
aa.gusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
penambahan search dan group di master
1 parent
b9f862e9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
10 deletions
.gitignore
id_gov/__manifest__.py
id_gov/views/district.xml
start.sh
.gitignore
View file @
d0c924c
...
@@ -103,4 +103,5 @@ ENV/
...
@@ -103,4 +103,5 @@ ENV/
.DS_Store
.DS_Store
# Ignore PDF signature
# Ignore PDF signature
opensipkd/aset/pemda/pdf_signature/*.pdf
\ No newline at end of file
\ No newline at end of file
opensipkd/aset/pemda/pdf_signature/*.pdf
*.sh
\ No newline at end of file
\ No newline at end of file
id_gov/__manifest__.py
View file @
d0c924c
...
@@ -26,7 +26,7 @@ Module yang sering digunakan dalam aplikasi pemerintah
...
@@ -26,7 +26,7 @@ Module yang sering digunakan dalam aplikasi pemerintah
'demo'
:
[],
'demo'
:
[],
'qweb'
:
[],
'qweb'
:
[],
'installable'
:
True
,
'installable'
:
True
,
'application'
:
Tru
e
,
'application'
:
Fals
e
,
'auto_install'
:
False
,
'auto_install'
:
False
,
'license'
:
'LGPL-3'
,
'license'
:
'LGPL-3'
,
'module'
:
'id_gov'
'module'
:
'id_gov'
...
...
id_gov/views/district.xml
View file @
d0c924c
...
@@ -11,7 +11,8 @@
...
@@ -11,7 +11,8 @@
</p>
</p>
</field>
</field>
</record>
</record>
<!--District-->
<!--District-->
<record
id=
"district_template_tree"
model=
"ir.ui.view"
>
<record
id=
"district_template_tree"
model=
"ir.ui.view"
>
<field
name=
"name"
>
district.template.tree
</field>
<field
name=
"name"
>
district.template.tree
</field>
<field
name=
"model"
>
res.district
</field>
<field
name=
"model"
>
res.district
</field>
...
@@ -20,11 +21,23 @@
...
@@ -20,11 +21,23 @@
<field
name=
"name"
string=
"Nama"
/>
<field
name=
"name"
string=
"Nama"
/>
<field
name=
"typ"
string=
"Jenis"
/>
<field
name=
"typ"
string=
"Jenis"
/>
<field
name=
"code"
string=
"Kode"
/>
<field
name=
"code"
string=
"Kode"
/>
<field
name=
"state_id"
options=
"{'no_create': True}"
/>
<field
name=
"state_id"
/>
</tree>
</tree>
</field>
</field>
</record>
</record>
<record
id=
"district_view_search"
model=
"ir.ui.view"
>
<field
name=
"name"
>
district.view.search
</field>
<field
name=
"model"
>
res.district
</field>
<field
name=
"arch"
type=
"xml"
>
<search
string=
"Nama Provinsi"
>
<field
name=
"name"
/>
<field
name=
"state_id"
/>
<group
string=
"Group By"
>
<filter
name=
"groupby_state"
string=
"Provinsi"
context=
"{'group_by': 'state_id'}"
/>
</group>
</search>
</field>
</record>
<record
id=
"action_district_config_id"
model=
"ir.actions.act_window"
>
<record
id=
"action_district_config_id"
model=
"ir.actions.act_window"
>
<field
name=
"name"
>
Kabupaten/Kota
</field>
<field
name=
"name"
>
Kabupaten/Kota
</field>
<field
name=
"res_model"
>
res.district
</field>
<field
name=
"res_model"
>
res.district
</field>
...
@@ -44,7 +57,7 @@
...
@@ -44,7 +57,7 @@
<field
name=
"arch"
type=
"xml"
>
<field
name=
"arch"
type=
"xml"
>
<form>
<form>
<group>
<group>
<field
name=
"state_id"
string=
"Provinsi"
/>
<field
name=
"state_id"
string=
"Provinsi"
options=
"{'no_create': True}"
/>
<field
name=
"typ"
string=
"Jenis"
/>
<field
name=
"typ"
string=
"Jenis"
/>
<field
name=
"code"
string=
"Kode"
/>
<field
name=
"code"
string=
"Kode"
/>
<field
name=
"name"
string=
"Nama"
/>
<field
name=
"name"
string=
"Nama"
/>
...
@@ -52,7 +65,8 @@
...
@@ -52,7 +65,8 @@
</form>
</form>
</field>
</field>
</record>
</record>
<!--Sub District-->
<!--Sub District-->
<record
id=
"sub_district_template_tree"
model=
"ir.ui.view"
>
<record
id=
"sub_district_template_tree"
model=
"ir.ui.view"
>
<field
name=
"name"
>
sub.district.template.tree
</field>
<field
name=
"name"
>
sub.district.template.tree
</field>
<field
name=
"model"
>
res.district.sub
</field>
<field
name=
"model"
>
res.district.sub
</field>
...
@@ -65,6 +79,20 @@
...
@@ -65,6 +79,20 @@
</tree>
</tree>
</field>
</field>
</record>
</record>
<record
id=
"sub_district_view_search"
model=
"ir.ui.view"
>
<field
name=
"name"
>
sub.district.view.search
</field>
<field
name=
"model"
>
res.district.sub
</field>
<field
name=
"arch"
type=
"xml"
>
<search
string=
"Nama Kabupaten/Kota"
>
<field
name=
"name"
/>
<field
name=
"district_id"
/>
<group
string=
"Group By"
>
<filter
name=
"groupby_district"
string=
"Kabupaten/Kota"
context=
"{'group_by': 'district_id'}"
/>
</group>
</search>
</field>
</record>
<record
id=
"action_sub_district_config_id"
model=
"ir.actions.act_window"
>
<record
id=
"action_sub_district_config_id"
model=
"ir.actions.act_window"
>
<field
name=
"name"
>
Kecamatan
</field>
<field
name=
"name"
>
Kecamatan
</field>
...
@@ -93,8 +121,22 @@
...
@@ -93,8 +121,22 @@
</form>
</form>
</field>
</field>
</record>
</record>
<!--Village-->
<!--Village-->
<record
id=
"village_template_tree"
model=
"ir.ui.view"
>
<record
id=
"res_village_view_search"
model=
"ir.ui.view"
>
<field
name=
"name"
>
res.village.view.search
</field>
<field
name=
"model"
>
res.district.village
</field>
<field
name=
"arch"
type=
"xml"
>
<search
string=
"Nama Kecamatan"
>
<field
name=
"name"
/>
<field
name=
"sub_district_id"
/>
<group
string=
"Group By"
>
<filter
name=
"groupby_sub_district"
string=
"Kecamatan"
context=
"{'group_by': 'sub_district_id'}"
/>
</group>
</search>
</field>
</record>
<record
id=
"village_template_tree"
model=
"ir.ui.view"
>
<field
name=
"name"
>
sub.district.template.tree
</field>
<field
name=
"name"
>
sub.district.template.tree
</field>
<field
name=
"model"
>
res.district.village
</field>
<field
name=
"model"
>
res.district.village
</field>
<field
name=
"arch"
type=
"xml"
>
<field
name=
"arch"
type=
"xml"
>
...
...
start.sh
View file @
d0c924c
#!/bin/bash
#!/bin/bash
cd
..
cd
..
source
vodoo/bin/activate
source
vodoo/bin/activate
./odoo-bin -c
odoo.ini
--dev xml
./odoo-bin -c
dev.ini -d odoo_dev -u id_gov,pdl_kab
--dev xml
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