[minor] setup wizard language fix and no submit messages for gl/sl entry
This commit is contained in:
parent
a5c9cff38a
commit
c4d38e2183
@ -10,8 +10,8 @@ from frappe import _
|
|||||||
from frappe.model.document import Document
|
from frappe.model.document import Document
|
||||||
|
|
||||||
class GLEntry(Document):
|
class GLEntry(Document):
|
||||||
|
|
||||||
def validate(self):
|
def validate(self):
|
||||||
|
self.flags.ignore_submit_comment = True
|
||||||
self.check_mandatory()
|
self.check_mandatory()
|
||||||
self.pl_must_have_cost_center()
|
self.pl_must_have_cost_center()
|
||||||
self.validate_posting_date()
|
self.validate_posting_date()
|
||||||
|
@ -28,7 +28,7 @@ def setup_account(args=None):
|
|||||||
|
|
||||||
args = frappe._dict(args)
|
args = frappe._dict(args)
|
||||||
|
|
||||||
if args.language != "english":
|
if args.language and args.language != "english":
|
||||||
set_default_language(args.language)
|
set_default_language(args.language)
|
||||||
|
|
||||||
install_fixtures.install(args.get("country"))
|
install_fixtures.install(args.get("country"))
|
||||||
|
@ -14,6 +14,7 @@ class StockFreezeError(frappe.ValidationError): pass
|
|||||||
|
|
||||||
class StockLedgerEntry(Document):
|
class StockLedgerEntry(Document):
|
||||||
def validate(self):
|
def validate(self):
|
||||||
|
self.flags.ignore_submit_comment = True
|
||||||
from erpnext.stock.utils import validate_warehouse_company
|
from erpnext.stock.utils import validate_warehouse_company
|
||||||
self.validate_mandatory()
|
self.validate_mandatory()
|
||||||
self.validate_item()
|
self.validate_item()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user