Skip to content

Commit

Permalink
fix: standard submit perm in repost ledger for editable invoices (bac…
Browse files Browse the repository at this point in the history
…kport #37826) (#37854)

fix: standard submit perm in repost ledger for editable invoices (#37826)

* fix: ignore perm while reposting ledger

* fix: use flag in save

* fix: remove unnecessary save

(cherry picked from commit 1b808e1)

Co-authored-by: Gursheen Kaur Anand <40693548+GursheenK@users.noreply.github.com>
  • Loading branch information
mergify[bot] and GursheenK authored Nov 2, 2023
1 parent a07d58b commit 69b569d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/controllers/accounts_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -2249,6 +2249,7 @@ def repost_accounting_entries(self):
repost_ledger = frappe.new_doc("Repost Accounting Ledger")
repost_ledger.company = self.company
repost_ledger.append("vouchers", {"voucher_type": self.doctype, "voucher_no": self.name})
repost_ledger.flags.ignore_permissions = True
repost_ledger.insert()
repost_ledger.submit()
self.db_set("repost_required", 0)
Expand Down

0 comments on commit 69b569d

Please sign in to comment.