-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
219 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
|
||
========================================================================= | ||
Indonesia - Lap. Mutasi Barang Jadi for DJBC's Kawasan Berikat Reporting | ||
========================================================================= | ||
|
||
|
||
|
||
Installation | ||
============ | ||
|
||
To install this module, you need to: | ||
|
||
1. Clone the branch 8.0 of the repository https://github.com/open-synergy/opnsynid-l10n-indonesia | ||
2. Add the path to this repository in your configuration (addons-path) | ||
3. Update the module list | ||
4. Go to menu *Setting -> Modules -> Local Modules* | ||
5. Search For *Indonesia - Lap. Mutasi Barang Jadi for DJBC's Kawasan Berikat Reporting* | ||
6. Install the module | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues | ||
<https://github.com/open-synergy/opnsynid-l10n-indonesia/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us smashing it by providing a detailed | ||
and welcomed feedback. | ||
|
||
|
||
Credits | ||
======= | ||
|
||
Contributors | ||
------------ | ||
|
||
* Michael Viriyananda <viriyananda.michael@gmail.com> | ||
* Andhitia Rama <andhitia.r@gmail.com> | ||
|
||
Maintainer | ||
---------- | ||
|
||
.. image:: https://opensynergy-indonesia.com/logo.png | ||
:alt: OpenSynergy Indonesia | ||
:target: https://opensynergy-indonesia.com | ||
|
||
This module is maintained by the OpenSynergy Indonesia. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2018 OpenSynergy Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from . import reports, wizards |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2017 OpenSynergy Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
{ | ||
"name": "Indonesia - Lap. Mutasi Barang Jadi " | ||
"for DJBC's Kawasan Berikat Reporting", | ||
"version": "8.0.1.0.0", | ||
"category": "localization", | ||
"website": "https://opensynergy-indonesia.com", | ||
"author": "OpenSynergy Indonesia", | ||
"license": "AGPL-3", | ||
"installable": True, | ||
"depends": [ | ||
"l10n_id_djbc_kb_lap_common", | ||
], | ||
"data": [ | ||
"security/ir.model.access.csv", | ||
"wizards/date_range_selector_views.xml", | ||
"reports/lap_kb_mutasi_barang_jadi_views.xml", | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2018 OpenSynergy Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from . import lap_kb_mutasi_barang_jadi |
30 changes: 30 additions & 0 deletions
30
l10n_id_djbc_kb_lap_mutasi_barang_jadi/reports/lap_kb_mutasi_barang_jadi.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2017 OpenSynergy Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from openerp import models | ||
|
||
|
||
class LapKbMutasiBarangJadi(models.Model): | ||
_name = "l10n_id.djbc_kb_lap_mutasi_barang_jadi" | ||
_inherit = "l10n_id.djbc_kb_lap_mutasi_common" | ||
_description = "Laporan Mutasi Barang Jadi Untuk Kawasan Berikat" | ||
_auto = False | ||
|
||
def _join(self): | ||
_super = super(LapKbMutasiBarangJadi, self) | ||
join_str = _super._join() + """ | ||
JOIN product_categ_rel AS c ON | ||
b.id = c.product_id | ||
JOIN product_category AS d ON | ||
c.categ_id = d.id | ||
JOIN ( | ||
SELECT res_id | ||
FROM ir_model_data AS e1 | ||
WHERE | ||
e1.module = 'l10n_id_djbc_kb_lap_common' AND | ||
e1.name = 'product_categ_kb_barang_jadi' | ||
) as e ON | ||
d.id = e.res_id | ||
""" | ||
return join_str |
42 changes: 42 additions & 0 deletions
42
l10n_id_djbc_kb_lap_mutasi_barang_jadi/reports/lap_kb_mutasi_barang_jadi_views.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright 2017 OpenSynergy Indonesia | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> | ||
|
||
<openerp> | ||
<data> | ||
<record id="djbc_kb_lap_mutasi_barang_jadi_view_tree" model="ir.ui.view"> | ||
<field name="name">tree l10n_id.djbc_kb_lap_mutasi_barang_jadi</field> | ||
<field name="model">l10n_id.djbc_kb_lap_mutasi_barang_jadi</field> | ||
<field name="inherit_id" ref="l10n_id_djbc_kb_lap_common.djbc_lap_kb_mutasi_common_view_tree"/> | ||
<field name="arch" type="xml"> | ||
<data> | ||
<xpath expr="//tree" position="attributes"> | ||
<attribute name="string">tree l10n_id.djbc_kb_lap_mutasi_barang_jadi</attribute> | ||
</xpath> | ||
</data> | ||
</field> | ||
</record> | ||
|
||
<record id="djbc_kb_lap_mutasi_barang_jadi_view_search" model="ir.ui.view"> | ||
<field name="name">search l10n_id.djbc_kb_lap_mutasi_barang_jadi</field> | ||
<field name="model">l10n_id.djbc_kb_lap_mutasi_barang_jadi</field> | ||
<field name="inherit_id" ref="l10n_id_djbc_kb_lap_common.djbc_lap_kb_mutasi_common_view_search"/> | ||
<field name="arch" type="xml"> | ||
<data> | ||
<xpath expr="//search" position="attributes"> | ||
<attribute name="string">tree l10n_id.djbc_kb_lap_mutasi_barang_jadi</attribute> | ||
</xpath> | ||
</data> | ||
</field> | ||
</record> | ||
|
||
<record id="djbc_kb_lap_mutasi_barang_jadi_action" model="ir.actions.act_window"> | ||
<field name="name">Lap. Mutasi Barang Jadi</field> | ||
<field name="type">ir.actions.act_window</field> | ||
<field name="res_model">l10n_id.djbc_kb_lap_mutasi_barang_jadi</field> | ||
<field name="view_type">form</field> | ||
<field name="view_mode">tree</field> | ||
<field name="view_id" ref="djbc_kb_lap_mutasi_barang_jadi_view_tree"/> | ||
</record> | ||
</data> | ||
</openerp> |
2 changes: 2 additions & 0 deletions
2
l10n_id_djbc_kb_lap_mutasi_barang_jadi/security/ir.model.access.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_all_djbc_kb_lap_mutasi_barang_jadi,all user l10n_id.djbc_kb_lap_mutasi_barang_jadi,model_l10n_id_djbc_kb_lap_mutasi_barang_jadi,,1,0,0,0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2018 OpenSynergy Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from . import date_range_selector |
25 changes: 25 additions & 0 deletions
25
l10n_id_djbc_kb_lap_mutasi_barang_jadi/wizards/date_range_selector.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2018 OpenSynergy Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from openerp import api, models, fields | ||
|
||
|
||
class KBLapMutasiBarangJadiWizard(models.TransientModel): | ||
_name = "l10n_id.kb_lap_mutasi_barang_jadi_wizard" | ||
_inherit = ["l10n_id.date_range_selector"] | ||
|
||
warehouse_ids = fields.Many2many( | ||
string="Warehouse", | ||
comodel_name="stock.warehouse", | ||
relation="rel_djbc_barang_jadi_2_warehouse", | ||
column1="wizard_id", | ||
column2="warehouse_id" | ||
) | ||
|
||
@api.multi | ||
def action_print_sreen(self): | ||
waction = self.env.ref( | ||
"l10n_id_djbc_kb_lap_mutasi_barang_jadi." | ||
"djbc_kb_lap_mutasi_barang_jadi_action") | ||
return waction.read()[0] |
35 changes: 35 additions & 0 deletions
35
l10n_id_djbc_kb_lap_mutasi_barang_jadi/wizards/date_range_selector_views.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright 2018 OpenSynergy Indonesia | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> | ||
|
||
<openerp> | ||
<data> | ||
<record id="kb_lap_mutasi_barang_jadi_wizard_view_form" model="ir.ui.view"> | ||
<field name="name">l10n_id.kb_lap_mutasi_barang_jadi_wizard form</field> | ||
<field name="model">l10n_id.kb_lap_mutasi_barang_jadi_wizard</field> | ||
<field name="inherit_id" ref="l10n_id_djbc_app.date_range_selector_view_form"/> | ||
<field name="mode">primary</field> | ||
<field name="arch" type="xml"> | ||
<data> | ||
</data> | ||
</field> | ||
</record> | ||
|
||
<record id="kb_lap_mutasi_barang_jadi_wizard_action" model="ir.actions.act_window"> | ||
<field name="name">Mutasi Barang Jadi</field> | ||
<field name="res_model">l10n_id.kb_lap_mutasi_barang_jadi_wizard</field> | ||
<field name="view_type">form</field> | ||
<field name="view_mode">form</field> | ||
<field name="view_id" ref="kb_lap_mutasi_barang_jadi_wizard_view_form"/> | ||
<field name="target">new</field> | ||
</record> | ||
|
||
<menuitem | ||
id="kb_lap_mutasi_barang_jadi_menu" | ||
name="Mutasi Barang Jadi" | ||
parent="l10n_id_djbc_kb_lap_common.djbc_reporting_kb_menu" | ||
action="kb_lap_mutasi_barang_jadi_wizard_action" | ||
sequence="2" | ||
/> | ||
</data> | ||
</openerp> |