diff --git a/base_accounting_kit/__manifest__.py b/base_accounting_kit/__manifest__.py
index f636bbaaa..c9858c887 100644
--- a/base_accounting_kit/__manifest__.py
+++ b/base_accounting_kit/__manifest__.py
@@ -21,7 +21,7 @@
#############################################################################
{
'name': 'Odoo 18 Full Accounting Kit for Community',
- 'version': '18.0.2.0.4',
+ 'version': '18.0.3.0.5',
'category': 'Accounting',
'live_test_url': 'https://kit.easyinstance.com/web/login?redirect=/odoo/accounting',
'summary': """Odoo 18 Accounting, Odoo 18 Accounting Reports, Odoo18 Accounting, Odoo Accounting, Odoo18 Financial Reports, Odoo18 Asset, Odoo18 Profit and Loss, PDC, Followups, Odoo18, Accounting, Odoo Apps, Reports""",
diff --git a/base_accounting_kit/doc/RELEASE_NOTES.md b/base_accounting_kit/doc/RELEASE_NOTES.md
index 63804391f..34afce5f2 100644
--- a/base_accounting_kit/doc/RELEASE_NOTES.md
+++ b/base_accounting_kit/doc/RELEASE_NOTES.md
@@ -25,8 +25,13 @@
#### FIX
- Fixed qifparse external dependency (python) issue.
-#### 09.06.2025
+#### 06.06.2025
#### Version 18.0.2.0.5
#### FIX
- Fixed computed depreciation edit issue.
+#### 09.06.2025
+#### Version 18.0.3.0.5
+#### UPDT
+- Updated the generation of asset entry when the confim button click.
+
diff --git a/base_accounting_kit/models/account_asset_asset.py b/base_accounting_kit/models/account_asset_asset.py
index 4ea837e1a..cd8eb67f3 100644
--- a/base_accounting_kit/models/account_asset_asset.py
+++ b/base_accounting_kit/models/account_asset_asset.py
@@ -23,6 +23,7 @@ import calendar
from datetime import date, datetime
from dateutil.relativedelta import relativedelta
from odoo import api, fields, models, _
+from odoo.fields import Date
from odoo.tools import DEFAULT_SERVER_DATE_FORMAT as DF, float_is_zero
from odoo.exceptions import UserError, ValidationError
@@ -147,6 +148,7 @@ class AccountAssetAsset(models.Model):
('category_id.group_entries', '=', False)])
created_move_ids += ungrouped_assets._compute_entries(date,
group_entries=False)
+ print("created_move_ids",created_move_ids)
for grouped_category in self.env['account.asset.category'].search(
type_domain + [('group_entries', '=', True)]):
@@ -353,6 +355,18 @@ class AccountAssetAsset(models.Model):
fields))
asset.message_post(subject=_('Asset created'),
tracking_value_ids=tracking_value_ids)
+ return {
+ 'name': _('Asset Depreciation Confirmation'),
+ 'type': 'ir.actions.act_window',
+ 'res_model': 'asset.depreciation.confirmation',
+ 'view_mode': 'form',
+ 'target': 'new',
+ 'context': {
+ 'default_date': Date.today(),
+ 'asset_type': self.type,
+ },
+ }
+
def _get_disposal_moves(self):
"""Get the disposal moves for the asset."""
diff --git a/base_accounting_kit/wizard/asset_depreciation_confirmation.py b/base_accounting_kit/wizard/asset_depreciation_confirmation.py
index b968df15f..b2cf498e3 100644
--- a/base_accounting_kit/wizard/asset_depreciation_confirmation.py
+++ b/base_accounting_kit/wizard/asset_depreciation_confirmation.py
@@ -35,6 +35,9 @@ class AssetDepreciationConfirmationWizard(models.TransientModel):
self.ensure_one()
context = self._context
created_move_ids = self.env['account.asset.asset'].sudo().compute_generated_entries(self.date, asset_type=context.get('asset_type'))
+ moves = self.env['account.move'].browse(created_move_ids)
+ auto_post_draft_moves = moves.filtered(lambda move: move.state == 'draft' and move.auto_post)
+ auto_post_draft_moves.write({'auto_post': 'at_date'})
return {
'name': _('Created Asset Moves') if context.get('asset_type') == 'purchase' else _('Created Revenue Moves'),
'view_mode': 'list,form',
diff --git a/base_accounting_kit/wizard/asset_depreciation_confirmation_views.xml b/base_accounting_kit/wizard/asset_depreciation_confirmation_views.xml
index 78fb67cc3..7cdb6715c 100644
--- a/base_accounting_kit/wizard/asset_depreciation_confirmation_views.xml
+++ b/base_accounting_kit/wizard/asset_depreciation_confirmation_views.xml
@@ -32,13 +32,13 @@
{'asset_type': 'purchase'}
-
-
+
+
+
+
+
+
+
+
+