diff --git a/l10n_id_djbc_bc40/README.rst b/l10n_id_djbc_bc40/README.rst new file mode 100644 index 0000000..e52a618 --- /dev/null +++ b/l10n_id_djbc_bc40/README.rst @@ -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.0 for DJBC Reporting +======================================= + +Form BC 4.0 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.0 for DJBC Reporting* +6. Install the module + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 +* Andhitia Rama + +Maintainer +---------- + +.. image:: https://opensynergy-indonesia.com/logo.png + :alt: OpenSynergy Indonesia + :target: https://opensynergy-indonesia.com + +This module is maintained by the OpenSynergy Indonesia. diff --git a/l10n_id_djbc_bc40/__init__.py b/l10n_id_djbc_bc40/__init__.py new file mode 100644 index 0000000..814c523 --- /dev/null +++ b/l10n_id_djbc_bc40/__init__.py @@ -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 diff --git a/l10n_id_djbc_bc40/__openerp__.py b/l10n_id_djbc_bc40/__openerp__.py new file mode 100644 index 0000000..f1ea9c5 --- /dev/null +++ b/l10n_id_djbc_bc40/__openerp__.py @@ -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.0 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_bc40_views.xml", + ], +} diff --git a/l10n_id_djbc_bc40/data/djbc_document_type.xml b/l10n_id_djbc_bc40/data/djbc_document_type.xml new file mode 100644 index 0000000..3182229 --- /dev/null +++ b/l10n_id_djbc_bc40/data/djbc_document_type.xml @@ -0,0 +1,14 @@ + + + + + + + + BC 4.0 + BC 4.0 + + + + diff --git a/l10n_id_djbc_bc40/models/__init__.py b/l10n_id_djbc_bc40/models/__init__.py new file mode 100644 index 0000000..591f20a --- /dev/null +++ b/l10n_id_djbc_bc40/models/__init__.py @@ -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_bc40 diff --git a/l10n_id_djbc_bc40/models/djbc_bc40.py b/l10n_id_djbc_bc40/models/djbc_bc40.py new file mode 100644 index 0000000..022df24 --- /dev/null +++ b/l10n_id_djbc_bc40/models/djbc_bc40.py @@ -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 DjbcForm40(models.Model): + _name = "l10n_id.djbc_bc40" + _description = "Form 4.0 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", + ) diff --git a/l10n_id_djbc_bc40/security/ir.model.access.csv b/l10n_id_djbc_bc40/security/ir.model.access.csv new file mode 100644 index 0000000..32d0711 --- /dev/null +++ b/l10n_id_djbc_bc40/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_all_djbc_bc40,all user l10n_id.djbc_bc40,model_l10n_id_djbc_bc40,,1,0,0,0 +access_user_djbc_bc40,all user l10n_id.djbc_bc40,model_l10n_id_djbc_bc40,l10n_id_djbc_app.group_djbc_user,1,1,1,1 diff --git a/l10n_id_djbc_bc40/static/description/icon.png b/l10n_id_djbc_bc40/static/description/icon.png new file mode 100644 index 0000000..0f884a8 Binary files /dev/null and b/l10n_id_djbc_bc40/static/description/icon.png differ diff --git a/l10n_id_djbc_bc40/views/djbc_bc40_views.xml b/l10n_id_djbc_bc40/views/djbc_bc40_views.xml new file mode 100644 index 0000000..2cbd1ca --- /dev/null +++ b/l10n_id_djbc_bc40/views/djbc_bc40_views.xml @@ -0,0 +1,51 @@ + + + + + + + tree l10n_id.djbc_bc40 + l10n_id.djbc_bc40 + + + + + + + + + + + form l10n_id.djbc_bc40 + l10n_id.djbc_bc40 + +
+ + + + + + + +
+
+
+ + + BC 4.0 + ir.actions.act_window + l10n_id.djbc_bc40 + form + tree,form + + + + +
+