Skip to content

Commit

Permalink
[8.0.2.0.2][l10n_id_taxform_bukti_potong_pph_common]
Browse files Browse the repository at this point in the history
  • Loading branch information
andhit-r committed Jul 24, 2017
1 parent 465c70b commit 77a601d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
2 changes: 1 addition & 1 deletion l10n_id_taxform_bukti_potong_pph_common/__openerp__.py
Expand Up @@ -3,7 +3,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Indonesia - Common Feature for Bukti Potong",
"version": "8.0.2.0.1",
"version": "8.0.2.0.2",
"category": "localization",
"website": "https://opensynergy-indonesia.com/",
"author": "OpenSynergy Indonesia",
Expand Down
19 changes: 5 additions & 14 deletions l10n_id_taxform_bukti_potong_pph_common/models/bukti_potong_pph.py
Expand Up @@ -625,22 +625,13 @@ def _prepare_move_line_data(self, data):
@api.multi
def _select_tax_account(self):
self.ensure_one()
bukpot = self.bukti_potong_id
tax = self.tax_id
if bukpot.direction == "in":
if tax.account_paid_id:
return tax.account_paid_id
else:
raise UserWarning(
_("Please configure refund tax account for %" %
(tax.name)))
if tax.account_collected_id:
return tax.account_collected_id
else:
if tax.account_collected_id:
return tax.account_collected_id
else:
raise UserWarning(
_("Please configure invoice tax account for %" %
(tax.name)))
raise UserWarning(
_("Please configure invoice tax account for %s" %
(tax.name)))

@api.onchange("tax_code_id")
def onchange_tax_code(self):
Expand Down

0 comments on commit 77a601d

Please sign in to comment.