Skip to content

Commit

Permalink
fix: ignore permissions while creating reposts
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed Nov 25, 2021
1 parent ed94f0f commit 0a2964d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/controllers/stock_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ def create_item_wise_repost_entries(voucher_type, voucher_no, allow_zero_rate=Fa
repost_entry.posting_time = sle.posting_time
repost_entry.allow_zero_rate = allow_zero_rate
repost_entry.flags.ignore_links = True
repost_entry.flags.ignore_permissions = True
repost_entry.submit()
repost_entries.append(repost_entry)

Expand Down

0 comments on commit 0a2964d

Please sign in to comment.