[Minor] Is fixed asset checkbox not set at server side if duplicate
This commit is contained in:
parent
b749acf3fb
commit
a02640e249
@ -13,7 +13,7 @@ from erpnext.accounts.party import get_party_account_currency, validate_party_fr
|
|||||||
from erpnext.exceptions import InvalidCurrency
|
from erpnext.exceptions import InvalidCurrency
|
||||||
from six import text_type
|
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):
|
class AccountsController(TransactionBase):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
|
@ -586,6 +586,7 @@ class BuyingController(StockController):
|
|||||||
asset.supplier = None
|
asset.supplier = None
|
||||||
|
|
||||||
asset.flags.ignore_validate_update_after_submit = True
|
asset.flags.ignore_validate_update_after_submit = True
|
||||||
|
asset.flags.ignore_mandatory = True
|
||||||
if asset.docstatus == 0:
|
if asset.docstatus == 0:
|
||||||
asset.flags.ignore_validate = True
|
asset.flags.ignore_validate = True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user