Skip to content

Commit

Permalink
[8.0.1.0.0][l10n_id_taxform_bukti_potong_pph_f113304
Browse files Browse the repository at this point in the history
  • Loading branch information
andhit-r committed Jun 11, 2017
1 parent 45e6373 commit e23b1a9
Show file tree
Hide file tree
Showing 11 changed files with 313 additions and 0 deletions.
64 changes: 64 additions & 0 deletions l10n_id_taxform_bukti_potong_pph_f113304/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@

.. 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 - Bukti Potong PPh 22 (f.1.1.33.04)
=============================================

This module add feature to manage bukti potong PPh 22 (f.1.33.04)


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 - Bukti Potong PPh 22 (f.1.1.33.04)*
6. Install the module

Configuration
=============


Usage
=====


Known issues / Roadmap
======================

* Printed form will be provided on other 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
------------

* 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_taxform_bukti_potong_pph_f113304/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright 2017 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
22 changes: 22 additions & 0 deletions l10n_id_taxform_bukti_potong_pph_f113304/__openerp__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Copyright 2017 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Indonesia - Bukti Potong PPh 22 (F.1.1.33.04)",
"version": "8.0.1.0.0",
"category": "localization",
"website": "https://opensynergy-indonesia.com/",
"author": "OpenSynergy Indonesia",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": [
"l10n_id_taxform_bukti_potong_pph_common",
],
"data": [
"security/ir.model.access.csv",
"data/l10n_id_bukti_potong_type.xml",
"views/bukti_potong_pph_f113304_in_views.xml",
"views/bukti_potong_pph_f113304_out_views.xml",
],
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?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 model="l10n_id.bukti_potong_pph_type" id="bukti_potong_pph_type_f113304_out">
<field name="name">Bukti Potong PPh 22 - Out</field>
<field name="code">f.1.1.33.04 - Out</field>
<field name="direction">out</field>
<field name="active" eval="1"/>
</record>

<record model="l10n_id.bukti_potong_pph_type" id="bukti_potong_pph_type_f113304_in">
<field name="name">Bukti Potong PPh 22 - In</field>
<field name="code">f.1.1.33.04 - In</field>
<field name="direction">in</field>
<field name="active" eval="1"/>
</record>
</data>
</openerp>
6 changes: 6 additions & 0 deletions l10n_id_taxform_bukti_potong_pph_f113304/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2017 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import bukti_potong_pph_f113304_in
from . import bukti_potong_pph_f113304_out
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
# Copyright 2017 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from openerp import models, fields, api


class BuktiPotongPPhF113304In(models.Model):
_name = "l10n_id.bukti_potong_pph_f113304_in"
_inherit = "l10n_id.bukti_potong_pph"
_table = "l10n_id_bukti_potong_pph"
_description = "Bukti Potong PPh f.1.1.33.04 In"

@api.model
def _default_type_id(self):
return self.env.ref(
"l10n_id_taxform_bukti_potong_pph_f113304."
"bukti_potong_pph_type_f113304_in").id

type_id = fields.Many2one(
default=lambda self: self._default_type_id(),
)

@api.model
def search(self, args, offset=0, limit=None, order=None):
type_id = self.env.ref(
"l10n_id_taxform_bukti_potong_pph_f113304."
"bukti_potong_pph_type_f113304_in")
args.append(("type_id", "=", type_id.id))
return super(BuktiPotongPPhF113304In, self).\
search(args, offset, limit, order)
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
# Copyright 2017 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from openerp import models, fields, api


class BuktiPotongPPhF113304Out(models.Model):
_name = "l10n_id.bukti_potong_pph_f113304_out"
_inherit = "l10n_id.bukti_potong_pph"
_table = "l10n_id_bukti_potong_pph"
_description = "Bukti Potong PPh f.1.1.33.04 Out"

@api.model
def _default_type_id(self):
return self.env.ref(
"l10n_id_taxform_bukti_potong_pph_f113304."
"bukti_potong_pph_type_f113304_out").id

type_id = fields.Many2one(
default=lambda self: self._default_type_id(),
)

@api.model
def search(self, args, offset=0, limit=None, order=None):
type_id = self.env.ref(
"l10n_id_taxform_bukti_potong_pph_f113304."
"bukti_potong_pph_type_f113304_out")
args.append(("type_id", "=", type_id.id))
return super(BuktiPotongPPhF113304Out, self).\
search(args, offset, limit, order)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_bukpot_pph_f113304_in,Bukti Potong PPh (f.1.1.33.04) In - All User,model_l10n_id_bukti_potong_pph_f113304_in,base.group_user,1,0,0,0
access_bukpot_pph_f113304_in_taxform_user,Bukti Potong PPh (f.1.1.33.04) In - Taxform User,model_l10n_id_bukti_potong_pph_f113304_in,l10n_id_taxform.user_group_taxform,1,1,1,1
access_bukpot_pph_f113304_out,Bukti Potong PPh (f.1.1.33.04) Out - All User,model_l10n_id_bukti_potong_pph_f113304_out,base.group_user,1,0,0,0
access_bukpot_pph_f113304_out_taxform_user,Bukti Potong PPh (f.1.1.33.04) Out - Taxform User,model_l10n_id_bukti_potong_pph_f113304_out,l10n_id_taxform.user_group_taxform,1,1,1,1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?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="bukti_potong_pph_f113304_in_view_tree" model="ir.ui.view">
<field name="name">Bukti Potong PPh f.11.33.04 In Tree</field>
<field name="model">l10n_id.bukti_potong_pph_f113304_in</field>
<field name="mode">primary</field>
<field name="inherit_id" ref="l10n_id_taxform_bukti_potong_pph_common.bukti_potong_pph_view_tree"/>
<field name="arch" type="xml">
<data/>
</field>
</record>

<record id="bukti_potong_pph_f113304_in_view_form" model="ir.ui.view">
<field name="name">Bukti Potong PPh f.11.33.04 In Form</field>
<field name="model">l10n_id.bukti_potong_pph_f113304_in</field>
<field name="mode">primary</field>
<field name="inherit_id" ref="l10n_id_taxform_bukti_potong_pph_common.bukti_potong_pph_view_form"/>
<field name="arch" type="xml">
<data>
<xpath expr="//h1[@name='form_name']" attributes="inside">
<label string="Bukti Potong PPh 22 (f.1.1.33.04) - In"/>
</xpath>
<xpath expr="//field[@name='wajib_pajak_id']" position="attributes">
<attribute name="domain">[('is_company','=',True),('parent_id','=',False)]</attribute>
</xpath>
</data>
</field>
</record>

<record id="bukti_potong_pph_f113304_in_view_search" model="ir.ui.view">
<field name="name">Bukti Potong PPh f.11.33.04 In Search</field>
<field name="model">l10n_id.bukti_potong_pph_f113304_in</field>
<field name="mode">primary</field>
<field name="inherit_id" ref="l10n_id_taxform_bukti_potong_pph_common.bukti_potong_pph_view_search"/>
<field name="arch" type="xml">
<data/>
</field>
</record>

<record id="bukti_potong_pph_f113304_in_action" model="ir.actions.act_window">
<field name="name">Bukti Potong PPh 22 (f.1.33.04) In</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">l10n_id.bukti_potong_pph_f113304_in</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="bukti_potong_pph_f113304_in_view_search"/>
<field name="context">{'default_filter_draft':1, 'default_filter_confirm':1}</field>
</record>

<menuitem
id="bukti_potong_pph_f113304_in_menu"
name="PPh 22 (f.1.33.04) In"
parent="l10n_id_taxform.taxform_bukti_potong_menu"
groups="l10n_id_taxform.user_group_taxform"
action="bukti_potong_pph_f113304_in_action"
sequence="22"
/>

</data>
</openerp>
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?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="bukti_potong_pph_f113304_out_view_tree" model="ir.ui.view">
<field name="name">Bukti Potong PPh f.11.33.04 Out Tree</field>
<field name="model">l10n_id.bukti_potong_pph_f113304_out</field>
<field name="mode">primary</field>
<field name="inherit_id" ref="l10n_id_taxform_bukti_potong_pph_common.bukti_potong_pph_view_tree"/>
<field name="arch" type="xml">
<data/>
</field>
</record>

<record id="bukti_potong_pph_f113304_out_view_form" model="ir.ui.view">
<field name="name">Bukti Potong PPh f.11.33.04 Out Form</field>
<field name="model">l10n_id.bukti_potong_pph_f113304_out</field>
<field name="mode">primary</field>
<field name="inherit_id" ref="l10n_id_taxform_bukti_potong_pph_common.bukti_potong_pph_view_form"/>
<field name="arch" type="xml">
<data>
<xpath expr="//h1[@name='form_name']" attributes="inside">
<label string="Bukti Potong PPh 22 (f.1.1.33.04) - Out"/>
</xpath>
<xpath expr="//field[@name='wajib_pajak_id']" position="attributes">
<attribute name="domain">[('is_company','=',True),('parent_id','=',False)]</attribute>
</xpath>
</data>
</field>
</record>

<record id="bukti_potong_pph_f113304_out_view_search" model="ir.ui.view">
<field name="name">Bukti Potong PPh f.11.33.04 Out Search</field>
<field name="model">l10n_id.bukti_potong_pph_f113304_out</field>
<field name="mode">primary</field>
<field name="inherit_id" ref="l10n_id_taxform_bukti_potong_pph_common.bukti_potong_pph_view_search"/>
<field name="arch" type="xml">
<data/>
</field>
</record>

<record id="bukti_potong_pph_f113304_out_action" model="ir.actions.act_window">
<field name="name">Bukti Potong PPh 22 (f.1.33.04) Out</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">l10n_id.bukti_potong_pph_f113304_out</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="bukti_potong_pph_f113304_out_view_search"/>
<field name="context">{'default_filter_draft':1, 'default_filter_confirm':1}</field>
</record>

<menuitem
id="bukti_potong_pph_f113304_out_menu"
name="PPh 22 (f.1.33.04) Out"
parent="l10n_id_taxform.taxform_bukti_potong_menu"
groups="l10n_id_taxform.user_group_taxform"
action="bukti_potong_pph_f113304_out_action"
sequence="22"
/>

</data>
</openerp>

0 comments on commit e23b1a9

Please sign in to comment.