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) (#37870)

* 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 <sagarsharma.s312@gmail.com>
  • Loading branch information
mergify[bot] and s-aga-r authored Nov 3, 2023
1 parent 15308c9 commit 1a3dae0
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 frappe.utils.data import nowtime

Expand Down Expand Up @@ -219,7 +219,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 1a3dae0

Please sign in to comment.