[fix] exclude gl entry and stock ledger entry in linked with. Depends on frappe/frappe#1339

This commit is contained in:
Anand Doshi 2015-10-14 16:49:15 +05:30
parent ba5b0e8458
commit 1d23ebb51d
2 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,8 @@ from erpnext.accounts.utils import get_account_currency
from erpnext.setup.doctype.company.company import get_company_currency
from erpnext.exceptions import InvalidAccountCurrency, CustomerFrozen
exclude_from_linked_with = True
class GLEntry(Document):
def validate(self):
self.flags.ignore_submit_comment = True

View File

@ -12,6 +12,8 @@ from erpnext.controllers.item_variant import ItemTemplateCannotHaveStock
class StockFreezeError(frappe.ValidationError): pass
exclude_from_linked_with = True
class StockLedgerEntry(Document):
def validate(self):
self.flags.ignore_submit_comment = True