mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
fix: Replace asset.schedules with asset.get('schedules')
This commit is contained in:
@@ -187,7 +187,7 @@ class Asset(AccountsController):
|
|||||||
d.precision("rate_of_depreciation"))
|
d.precision("rate_of_depreciation"))
|
||||||
|
|
||||||
def make_depreciation_schedule(self, date_of_sale):
|
def make_depreciation_schedule(self, date_of_sale):
|
||||||
if 'Manual' not in [d.depreciation_method for d in self.finance_books] and not self.schedules:
|
if 'Manual' not in [d.depreciation_method for d in self.finance_books] and not self.get('schedules'):
|
||||||
self.schedules = []
|
self.schedules = []
|
||||||
|
|
||||||
if not self.available_for_use_date:
|
if not self.available_for_use_date:
|
||||||
|
|||||||
Reference in New Issue
Block a user