Skip to content

Commit

Permalink
[8.0.1.0.0][l10n_id_djbc_bc41]
Browse files Browse the repository at this point in the history
  • Loading branch information
mikevhe18 committed Jul 30, 2018
1 parent 8f6c724 commit 2d65abb
Show file tree
Hide file tree
Showing 9 changed files with 168 additions and 0 deletions.
50 changes: 50 additions & 0 deletions l10n_id_djbc_bc41/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
.. 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 - Form 4.1 for DJBC Reporting
=======================================

Form BC 4.1 for Direktorat Jendral Bea & Cukai IT Inventory


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 - Form 4.1 for DJBC 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.
5 changes: 5 additions & 0 deletions l10n_id_djbc_bc41/__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 models
20 changes: 20 additions & 0 deletions l10n_id_djbc_bc41/__openerp__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Copyright 2018 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Indonesia - Form BC 4.1 for DJBC 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_app",
],
"data": [
"security/ir.model.access.csv",
"data/djbc_document_type.xml",
"views/djbc_bc41_views.xml",
],
}
14 changes: 14 additions & 0 deletions l10n_id_djbc_bc41/data/djbc_document_type.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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="djbc_document_type_bc41" model="l10n_id.djbc_document_type">
<field name="name">BC 4.1</field>
<field name="code">BC 4.1</field>
</record>

</data>
</openerp>
5 changes: 5 additions & 0 deletions l10n_id_djbc_bc41/models/__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 djbc_bc41
20 changes: 20 additions & 0 deletions l10n_id_djbc_bc41/models/djbc_bc41.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Copyright 2018 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from openerp import models, fields


class DjbcForm41(models.Model):
_name = "l10n_id.djbc_bc41"
_description = "Form 4.1 DJBC"
_inherits = {
"l10n_id.djbc_custom_document": "custom_document_id",
}

custom_document_id = fields.Many2one(
string="Custom Document",
comodel_name="l10n_id.djbc_custom_document",
required=True,
ondelete="restrict",
)
3 changes: 3 additions & 0 deletions l10n_id_djbc_bc41/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_all_djbc_bc41,all user l10n_id.djbc_bc41,model_l10n_id_djbc_bc41,,1,0,0,0
access_user_djbc_bc41,all user l10n_id.djbc_bc41,model_l10n_id_djbc_bc41,l10n_id_djbc_app.group_djbc_user,1,1,1,1
Binary file added l10n_id_djbc_bc41/static/description/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions l10n_id_djbc_bc41/views/djbc_bc41_views.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?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="djbc_bc41_view_tree" model="ir.ui.view">
<field name="name">tree l10n_id.djbc_bc41</field>
<field name="model">l10n_id.djbc_bc41</field>
<field name="arch" type="xml">
<tree>
<field name="name"/>
<field name="date"/>
<field name="type_id" invisible="context.get('hide_type', True)"/>
</tree>
</field>
</record>

<record id="djbc_bc41_view_form" model="ir.ui.view">
<field name="name">form l10n_id.djbc_bc41</field>
<field name="model">l10n_id.djbc_bc41</field>
<field name="arch" type="xml">
<form>
<sheet>
<group name="group_main_1" colspan="4" col="2">
<field name="name"/>
<field name="date"/>
<field name="type_id" widget="selection" invisible="context.get('hide_type', True)"/>
</group>
</sheet>
</form>
</field>
</record>

<record id="djbc_bc41_action" model="ir.actions.act_window">
<field name="name">BC 4.1</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">l10n_id.djbc_bc41</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="context" eval="{'hide_type':True, 'default_type_id':ref('djbc_document_type_bc41')}"/>
</record>

<menuitem
id="djbc_bc41_menu"
name="BC 4.1"
parent="l10n_id_djbc_app.djbc_custom_document_menu"
groups="l10n_id_djbc_app.group_djbc_user"
action="djbc_bc41_action"/>
</data>
</openerp>

0 comments on commit 2d65abb

Please sign in to comment.