mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-20 15:25:13 +00:00
fix: asset image field updation issue (#47615)
(cherry picked from commit ff2ccf9bce)
Co-authored-by: Khushi Rawat <142375893+khushi8112@users.noreply.github.com>
This commit is contained in:
@@ -154,6 +154,7 @@
|
|||||||
{
|
{
|
||||||
"allow_on_submit": 1,
|
"allow_on_submit": 1,
|
||||||
"fetch_from": "item_code.image",
|
"fetch_from": "item_code.image",
|
||||||
|
"fetch_if_empty": 1,
|
||||||
"fieldname": "image",
|
"fieldname": "image",
|
||||||
"fieldtype": "Attach Image",
|
"fieldtype": "Attach Image",
|
||||||
"hidden": 1,
|
"hidden": 1,
|
||||||
@@ -595,7 +596,7 @@
|
|||||||
"link_fieldname": "target_asset"
|
"link_fieldname": "target_asset"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"modified": "2025-04-24 15:31:47.373274",
|
"modified": "2025-05-20 00:44:06.229177",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Assets",
|
"module": "Assets",
|
||||||
"name": "Asset",
|
"name": "Asset",
|
||||||
|
|||||||
@@ -42,16 +42,15 @@ from erpnext.controllers.accounts_controller import AccountsController
|
|||||||
|
|
||||||
class Asset(AccountsController):
|
class Asset(AccountsController):
|
||||||
# begin: auto-generated types
|
# begin: auto-generated types
|
||||||
# ruff: noqa
|
|
||||||
|
|
||||||
# This code is auto-generated. Do not modify anything in this block.
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from erpnext.assets.doctype.asset_finance_book.asset_finance_book import AssetFinanceBook
|
|
||||||
from frappe.types import DF
|
from frappe.types import DF
|
||||||
|
|
||||||
|
from erpnext.assets.doctype.asset_finance_book.asset_finance_book import AssetFinanceBook
|
||||||
|
|
||||||
additional_asset_cost: DF.Currency
|
additional_asset_cost: DF.Currency
|
||||||
amended_from: DF.Link | None
|
amended_from: DF.Link | None
|
||||||
asset_category: DF.Link | None
|
asset_category: DF.Link | None
|
||||||
@@ -118,7 +117,6 @@ class Asset(AccountsController):
|
|||||||
total_asset_cost: DF.Currency
|
total_asset_cost: DF.Currency
|
||||||
total_number_of_depreciations: DF.Int
|
total_number_of_depreciations: DF.Int
|
||||||
value_after_depreciation: DF.Currency
|
value_after_depreciation: DF.Currency
|
||||||
# ruff: noqa
|
|
||||||
# end: auto-generated types
|
# end: auto-generated types
|
||||||
|
|
||||||
def validate(self):
|
def validate(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user