[minor] setup wizard language fix and no submit messages for gl/sl entry

This commit is contained in:
Rushabh Mehta 2015-05-25 11:29:37 +05:30
parent a5c9cff38a
commit c4d38e2183
3 changed files with 3 additions and 2 deletions

View File

@ -10,8 +10,8 @@ from frappe import _
from frappe.model.document import Document
class GLEntry(Document):
def validate(self):
self.flags.ignore_submit_comment = True
self.check_mandatory()
self.pl_must_have_cost_center()
self.validate_posting_date()

View File

@ -28,7 +28,7 @@ def setup_account(args=None):
args = frappe._dict(args)
if args.language != "english":
if args.language and args.language != "english":
set_default_language(args.language)
install_fixtures.install(args.get("country"))

View File

@ -14,6 +14,7 @@ class StockFreezeError(frappe.ValidationError): pass
class StockLedgerEntry(Document):
def validate(self):
self.flags.ignore_submit_comment = True
from erpnext.stock.utils import validate_warehouse_company
self.validate_mandatory()
self.validate_item()