Skip to content

Commit

Permalink
[8.0.1.0.0] l10n_id_djbc_plb_lap_posisi_barang
Browse files Browse the repository at this point in the history
  • Loading branch information
andhit-r committed Jan 15, 2019
1 parent ea68903 commit 2e18914
Show file tree
Hide file tree
Showing 9 changed files with 161 additions and 0 deletions.
49 changes: 49 additions & 0 deletions l10n_id_djbc_plb_lap_posisi_barang/README.rst
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. Posisi Barang for DJBC's Pusat Logistik Berikat
================================================================



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. Posisi Barang for DJBC's Pusat Logistik Berikat*
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.
5 changes: 5 additions & 0 deletions l10n_id_djbc_plb_lap_posisi_barang/__init__.py
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 wizards, reports
21 changes: 21 additions & 0 deletions l10n_id_djbc_plb_lap_posisi_barang/__openerp__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# Copyright 2018 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
# pylint: disable=locally-disabled, manifest-required-author
{
"name": "Indonesia - Lap. Posisi Barang for DJBC's "
"Pusat Logistik Berikat",
"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_plb_common",
"l10n_id_djbc_lap_posisi_barang_common",
],
"data": [
"wizards/cetak_lap_posisi_barang_plb.xml",
],
}
5 changes: 5 additions & 0 deletions l10n_id_djbc_plb_lap_posisi_barang/reports/__init__.py
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_posisi_barang_helper_plb
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
# Copyright 2018 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from openerp import models


class LapPosisiBarangHelperPlb(models.AbstractModel):
_name = "l10n_id.djbc_lap_posisi_barang_helper_plb"
_inherit = "l10n_id.djbc_lap_posisi_barang_helper_common"
_auto = False

def _where(self):
_super = super(LapPosisiBarangHelperPlb, self)
where_str = _super._where()
where_str += """
AND e.djbc_plb_ok = TRUE
"""
return where_str

def _join(self):
_super = super(LapPosisiBarangHelperPlb, self)
join_str = _super._join()
join_str += """
JOIN product_product AS d
ON a.product_id = d.id
JOIN product_template AS e
ON d.product_tmpl_id = e.id
"""
return join_str
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions l10n_id_djbc_plb_lap_posisi_barang/wizards/__init__.py
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 cetak_lap_posisi_barang_plb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
# Copyright 2018 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from openerp import models


class CetakLapPosisiBarangPlb(models.TransientModel):
_name = "l10n_id.cetak_lap_posisi_barang_plb"
_inherit = ["l10n_id.cetak_lap_posisi_barang_common"]
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="cetak_lap_posisi_barang_plb_view_form" model="ir.ui.view">
<field name="name">l10n_id.cetak_lap_posisi_barang_plb form</field>
<field name="model">l10n_id.cetak_lap_posisi_barang_plb</field>
<field name="inherit_id" ref="l10n_id_djbc_lap_posisi_barang_common.cetak_lap_posisi_barang_common_view_form"/>
<field name="mode">primary</field>
<field name="arch" type="xml">
<data>
</data>
</field>
</record>

<record id="cetak_lap_posisi_barang_plb_action" model="ir.actions.act_window">
<field name="name">Cetak Lap. Posisi Barang PLB</field>
<field name="res_model">l10n_id.cetak_lap_posisi_barang_plb</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="view_id" ref="cetak_lap_posisi_barang_plb_view_form"/>
<field name="target">new</field>
</record>

<menuitem
id="cetak_lap_posisi_barang_plb_menu"
name="Posisi Barang"
parent="l10n_id_djbc_plb_common.djbc_reporting_plb_menu"
action="cetak_lap_posisi_barang_plb_action"
sequence="5"
/>
</data>
</openerp>

0 comments on commit 2e18914

Please sign in to comment.