[Minor] Is fixed asset checkbox not set at server side if duplicate

This commit is contained in:
Rohit Waghchaure 2018-05-16 10:49:12 +05:30
parent b749acf3fb
commit a02640e249
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