mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-16 16:15:02 +00:00
Merge pull request #43301 from blaggacao/fix/undue-db-write-on-payment-entry
chore: cant write in (potential) read-only mode
This commit is contained in:
@@ -524,7 +524,10 @@ class PaymentEntry(AccountsController):
|
||||
continue
|
||||
|
||||
if field == "exchange_rate" or not d.get(field) or force:
|
||||
d.db_set(field, value)
|
||||
if self.get("_action") in ("submit", "cancel"):
|
||||
d.db_set(field, value)
|
||||
else:
|
||||
d.set(field, value)
|
||||
|
||||
def validate_payment_type(self):
|
||||
if self.payment_type not in ("Receive", "Pay", "Internal Transfer"):
|
||||
|
||||
Reference in New Issue
Block a user