Browse Source

Apr 4 : [UPDT] Bug Fixed 'base_accounting_kit'

pull/254/head
AjmalCybro 2 years ago
parent
commit
feb8972df2
  1. 2
      base_accounting_kit/__manifest__.py
  2. 5
      base_accounting_kit/doc/RELEASE_NOTES.md
  3. 4
      base_accounting_kit/models/account_asset.py
  4. 1
      base_accounting_kit/models/account_move.py

2
base_accounting_kit/__manifest__.py

@ -22,7 +22,7 @@
{
'name': 'Odoo 15 Full Accounting Kit',
'version': '15.0.2.2.3',
'version': '15.0.2.2.4',
'category': 'Accounting',
'live_test_url': 'https://www.youtube.com/watch?v=peAp2Tx_XIs',
'summary': """ Asset and Budget Management,

5
base_accounting_kit/doc/RELEASE_NOTES.md

@ -20,3 +20,8 @@
#### Version 15.0.2.2.3
#### FIX
- Profit and Loss report issue fix
#### 28.04.2023
#### Version 15.0.2.2.4
#### FIX
- asset closing issue is fixed

4
base_accounting_kit/models/account_asset.py

@ -694,7 +694,7 @@ class AccountAssetDepreciationLine(models.Model):
if post_move and created_moves:
created_moves.filtered(lambda m: any(
m.asset_depreciation_ids.mapped(
'asset_id.category_id.open_asset'))).post()
'asset_id.category_id.open_asset'))).action_post()
return [x.id for x in created_moves]
def create_grouped_move(self, post_move=True):
@ -742,7 +742,7 @@ class AccountAssetDepreciationLine(models.Model):
if post_move and created_moves:
self.post_lines_and_close_asset()
created_moves.post()
created_moves.action_post()
return [x.id for x in created_moves]
def post_lines_and_close_asset(self):

1
base_accounting_kit/models/account_move.py

@ -65,6 +65,7 @@ class AccountMove(models.Model):
return res
def action_post(self):
self.mapped('asset_depreciation_ids').post_lines_and_close_asset()
result = super(AccountMove, self).action_post()
for inv in self:

Loading…
Cancel
Save