Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

permission issue in process_gstr_1_returns_info #2935

Open
ljain112 opened this issue Jan 8, 2025 — with Huly for GitHub · 0 comments
Open

permission issue in process_gstr_1_returns_info #2935

ljain112 opened this issue Jan 8, 2025 — with Huly for GitHub · 0 comments

Comments

Copy link
Collaborator

ljain112 commented Jan 8, 2025

Traceback with variables (most recent call last):
File "apps/frappe/frappe/utils/background_jobs.py", line 191, in execute_job
retval = method(**kwargs)
site = 'goapaints.frappe.cloud'
method = <function process_gstr_1_returns_info at 0x7fcc3248a5f0>
event = None
job_name = '<function process_gstr_1_returns_info at 0x7f167eb1e440>'
kwargs = {'company': 'Goa Paints & Allied Products Pvt. Ltd.', 'gstin': '30AACCG3336Q1ZL', 'response': {'EFiledlist': [{'valid': 'Y', 'mof': 'ONLINE', 'dof': '19-10-2024', 'rtntype': 'GSTR3B', 'ret_prd': '092024', 'arn': 'AA300924054116I', 'status': 'Filed'}, {'valid': 'Y', 'mof': 'ONLINE', 'dof': '19-09-2024', 'rtntype': 'GSTR3B', 'ret_prd': '082024', 'arn': 'AA300824035412P', 'status': 'Filed'}, {'valid': 'Y', 'mof': 'ONLINE', 'dof': '19-06-2024', 'rtntype': 'GSTR3B', 'ret_prd': '052024', 'arn': 'AA300524036219K', 'status': 'Filed'}, {'valid': 'Y', 'mof': 'ONLINE', 'dof': '18-12-2024', 'rtntype': 'GSTR3B', 'ret_prd': '112024', 'arn': 'AA301124035667J', 'status': 'Filed'}, {'valid': 'Y', 'mof': 'ONLINE', 'dof': '18-11-2024', 'rtntype': 'GSTR3B', 'ret_prd': '102024', 'arn': 'AA301024034346W', 'status': 'Filed'}, {'valid': 'Y', 'mof': 'ONLINE', 'dof': '18-07-2024', 'rtntype': 'GSTR3B', 'ret_prd': '062024', 'arn': 'AA300624047162Q', 'status': 'Filed'}, {'valid': 'Y', 'mof': 'ONLINE', 'dof': '17-0...
user = '[email protected]'
is_async = True
retry = 0
retval = None
method_name = 'process_gstr_1_returns_info'
before_job_task = 'frappe.monitor.start'
File "apps/india_compliance/india_compliance/gst_india/doctype/gst_return_log/gst_return_log.py", line 238, in process_gstr_1_returns_info
_update_gstr_1_filed_upto(filed_upto)
company = 'Goa Paints & Allied Products Pvt. Ltd.'
gstin = '30AACCG3336Q1ZL'
response = {'EFiledlist': [{'valid': 'Y', 'mof': 'ONLINE', 'dof': '19-10-2024', 'rtntype': 'GSTR3B', 'ret_prd': '092024', 'arn': 'AA300924054116I', 'status': 'Filed'}, {'valid': 'Y', 'mof': 'ONLINE', 'dof': '19-09-2024', 'rtntype': 'GSTR3B', 'ret_prd': '082024', 'arn': 'AA300824035412P', 'status': 'Filed'}, {'valid': 'Y', 'mof': 'ONLINE', 'dof': '19-06-2024', 'rtntype': 'GSTR3B', 'ret_prd': '052024', 'arn': 'AA300524036219K', 'status': 'Filed'}, {'valid': 'Y', 'mof': 'ONLINE', 'dof': '18-12-2024', 'rtntype': 'GSTR3B', 'ret_prd': '112024', 'arn': 'AA301124035667J', 'status': 'Filed'}, {'valid': 'Y', 'mof': 'ONLINE', 'dof': '18-11-2024', 'rtntype': 'GSTR3B', 'ret_prd': '102024', 'arn': 'AA301024034346W', 'status': 'Filed'}, {'valid': 'Y', 'mof': 'ONLINE', 'dof': '18-07-2024', 'rtntype': 'GSTR3B', 'ret_prd': '062024', 'arn': 'AA300624047162Q', 'status': 'Filed'}, {'valid': 'Y', 'mof': 'ONLINE', 'dof': '17-05-2024', 'rtntype': 'GSTR3B', 'ret_prd': '042024', 'arn': 'AA300424031638J', 'status': 'Filed'...
return_info = {'GSTR1-092024-30AACCG3336Q1ZL': {'valid': 'Y', 'mof': 'ONLINE', 'dof': '11-10-2024', 'rtntype': 'GSTR1', 'ret_prd': '092024', 'arn': 'AA3009240237775', 'status': 'Filed'}, 'GSTR1-082024-30AACCG3336Q1ZL': {'valid': 'Y', 'mof': 'ONLINE', 'dof': '11-09-2024', 'rtntype': 'GSTR1', 'ret_prd': '082024', 'arn': 'AA300824019783A', 'status': 'Filed'}, 'GSTR1-112024-30AACCG3336Q1ZL': {'valid': 'Y', 'mof': 'ONLINE', 'dof': '10-12-2024', 'rtntype': 'GSTR1', 'ret_prd': '112024', 'arn': 'AA3011240163630', 'status': 'Filed'}, 'GSTR1-052024-30AACCG3336Q1ZL': {'valid': 'Y', 'mof': 'ONLINE', 'dof': '10-06-2024', 'rtntype': 'GSTR1', 'ret_prd': '052024', 'arn': 'AA300524014678E', 'status': 'Filed'}, 'GSTR1-072024-30AACCG3336Q1ZL': {'valid': 'Y', 'mof': 'ONLINE', 'dof': '09-08-2024', 'rtntype': 'GSTR1', 'ret_prd': '072024', 'arn': 'AA300724012385N', 'status': 'Filed'}, 'GSTR1-062024-30AACCG3336Q1ZL': {'valid': 'Y', 'mof': 'ONLINE', 'dof': '09-07-2024', 'rtntype': 'GSTR1', 'ret_prd': '062024', 'arn': 'AA300...
info = {'valid': 'Y', 'mof': 'ONLINE', 'dof': '11-10-2024', 'rtntype': 'GSTR1', 'ret_prd': '092024', 'arn': 'AA3009240237775', 'status': 'Filed'}
gstr1_logs = {'GSTR1-102024-30AACCG3336Q1ZL': None, 'GSTR1-092024-30AACCG3336Q1ZL': None, 'GSTR1-082024-30AACCG3336Q1ZL': None, 'GSTR1-072024-30AACCG3336Q1ZL': None, 'GSTR1-062024-30AACCG3336Q1ZL': None, 'GSTR1-052024-30AACCG3336Q1ZL': None}
_update_gstr_1_filed_upto = <function process_gstr_1_returns_info.._update_gstr_1_filed_upto at 0x7fcc283afd00>
key = ********
filing_details = {'return_type': 'GSTR1', 'filing_status': 'Filed', 'acknowledgement_number': 'AA3009240237775', 'filing_date': datetime.date(2024, 10, 11), 'modified': '2025-01-08 11:20:01.179756', 'modified_by': '[email protected]'}
filed_upto = datetime.date(2024, 9, 30)
gstin_doc = <GSTIN: 30AACCG3336Q1ZL>
File "apps/india_compliance/india_compliance/gst_india/doctype/gst_return_log/gst_return_log.py", line 220, in _update_gstr_1_filed_upto
gstin_doc.save()
filing_date = datetime.date(2024, 9, 30)
gstin_doc = <GSTIN: 30AACCG3336Q1ZL>
File "apps/frappe/frappe/model/document.py", line 310, in save
return self._save(*args, **kwargs)
self = <GSTIN: 30AACCG3336Q1ZL>
args = ()
kwargs = {}
File "apps/frappe/frappe/model/document.py", line 335, in _save
self.check_permission("write", "save")
self = <GSTIN: 30AACCG3336Q1ZL>
ignore_permissions = None
ignore_version = None
File "apps/frappe/frappe/model/document.py", line 199, in check_permission
self.raise_no_permission_to(permtype)
self = <GSTIN: 30AACCG3336Q1ZL>
permtype = 'write'
permlevel = 'save'
File "apps/frappe/frappe/model/document.py", line 221, in raise_no_permission_to
raise frappe.PermissionError
self = <GSTIN: 30AACCG3336Q1ZL>
perm_type = 'write'
frappe.exceptions.PermissionError:

Huly®: IC-3062

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant