Skip to content

Commit

Permalink
fix: permission error while creating Supplier Quotation from Portal (…
Browse files Browse the repository at this point in the history
…backport #37864) (#37872)

* fix: permission error while creating Supplier Quotation from Portal

(cherry picked from commit e019d43)

# Conflicts:
#	erpnext/controllers/buying_controller.py

* chore: `conflicts`

---------

Co-authored-by: s-aga-r <[email protected]>
  • Loading branch information
mergify[bot] and s-aga-r authored Nov 3, 2023
1 parent 8f4ded6 commit 6952f0f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions erpnext/controllers/buying_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import frappe
from frappe import ValidationError, _, msgprint
from frappe.contacts.doctype.address.address import get_address_display
from frappe.contacts.doctype.address.address import render_address
from frappe.utils import cint, cstr, flt, getdate

from erpnext.accounts.doctype.budget.budget import validate_expense_against_budget
Expand Down Expand Up @@ -187,7 +187,9 @@ def set_supplier_address(self):

for address_field, address_display_field in address_dict.items():
if self.get(address_field):
self.set(address_display_field, get_address_display(self.get(address_field)))
self.set(
address_display_field, render_address(self.get(address_field), check_permissions=False)
)

def set_total_in_words(self):
from frappe.utils import money_in_words
Expand Down

0 comments on commit 6952f0f

Please sign in to comment.