Merge pull request #14066 from rohitwaghchaure/minor_asset_fix

[Minor] Is fixed asset checkbox not set at server side if duplicate
This commit is contained in:
rohitwaghchaure 2018-05-16 10:49:52 +05:30 committed by GitHub
commit 915877553a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,7 @@ from erpnext.accounts.party import get_party_account_currency, validate_party_fr
from erpnext.exceptions import InvalidCurrency
from six import text_type
force_item_fields = ("item_group", "brand", "stock_uom")
force_item_fields = ("item_group", "brand", "stock_uom", "is_fixed_asset")
class AccountsController(TransactionBase):
def __init__(self, *args, **kwargs):

View File

@ -586,6 +586,7 @@ class BuyingController(StockController):
asset.supplier = None
asset.flags.ignore_validate_update_after_submit = True
asset.flags.ignore_mandatory = True
if asset.docstatus == 0:
asset.flags.ignore_validate = True