mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
Merge pull request #30690 from frappe/mergify/bp/version-13-hotfix/pr-30686
feat: Ignore permlevel for specific fields (backport #30686)
This commit is contained in:
@@ -22,6 +22,9 @@ class QtyMismatchError(ValidationError):
|
|||||||
|
|
||||||
|
|
||||||
class BuyingController(StockController, Subcontracting):
|
class BuyingController(StockController, Subcontracting):
|
||||||
|
def __setup__(self):
|
||||||
|
self.flags.ignore_permlevel_for_fields = ["buying_price_list", "price_list_currency"]
|
||||||
|
|
||||||
def get_feed(self):
|
def get_feed(self):
|
||||||
if self.get("supplier_name"):
|
if self.get("supplier_name"):
|
||||||
return _("From {0} | {1} {2}").format(self.supplier_name, self.currency, self.grand_total)
|
return _("From {0} | {1} {2}").format(self.supplier_name, self.currency, self.grand_total)
|
||||||
|
|||||||
@@ -16,6 +16,9 @@ from erpnext.stock.utils import get_incoming_rate
|
|||||||
|
|
||||||
|
|
||||||
class SellingController(StockController):
|
class SellingController(StockController):
|
||||||
|
def __setup__(self):
|
||||||
|
self.flags.ignore_permlevel_for_fields = ["selling_price_list", "price_list_currency"]
|
||||||
|
|
||||||
def get_feed(self):
|
def get_feed(self):
|
||||||
return _("To {0} | {1} {2}").format(self.customer_name, self.currency, self.grand_total)
|
return _("To {0} | {1} {2}").format(self.customer_name, self.currency, self.grand_total)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user