Skip to content

Commit

Permalink
fix: permission get to get_list child
Browse files Browse the repository at this point in the history
  • Loading branch information
anhilmy authored Aug 19, 2024
1 parent f54fb81 commit 87278dd
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/
# -*- coding: utf-8 -*-
# Copyright (c) 2020, Core Initiative and contributors
# For license information, please see license.txt
Expand Down Expand Up @@ -64,6 +65,7 @@ def post_individual_room_charges(parent_id, tobe_posted_list):
PROFIT_SHARING_ACCOUNT = room_post_settings.profit_sharing_account
COMMISION_TRANSACTION_TYPE = room_post_settings.profit_sharing_transaction_type
channel_exclude_tax = frappe.get_list("Inn Channel Tax Exclude",
parent_doctype='Inn Hotels Setting',
filters = {
"parenttype": "Inn Hotels Setting",
"parent": "Inn Hotels Setting",
Expand Down Expand Up @@ -360,7 +362,8 @@ def post_room_charges(parent_id, tobe_posted_list):
PROFIT_SHARING_ACCOUNT = room_post_settings.profit_sharing_account
COMMISION_TRANSACTION_TYPE = room_post_settings.profit_sharing_transaction_type
channel_exclude_tax = frappe.get_list("Inn Channel Tax Exclude",
{
parent_doctype='Inn Hotels Setting',
{
"parenttype": "Inn Hotels Setting",
"parent": "Inn Hotels Setting",
"parentfield": "inn_channel_exclude_tax"
Expand Down

0 comments on commit 87278dd

Please sign in to comment.