Browse Source

May 13: [FIX] Bug Fixed 'base_accounting_kit'

pull/320/head
RisvanaCybro 12 months ago
parent
commit
791dea379b
  1. 8
      base_accounting_kit/doc/RELEASE_NOTES.md
  2. 4
      base_accounting_kit/models/account_asset.py
  3. 1
      base_accounting_kit/report/report_financial.py

8
base_accounting_kit/doc/RELEASE_NOTES.md

@ -71,3 +71,11 @@
### UPDT
- Automatic Asset Creation Bug Fix
### 13.04.2024
### Version 16.0.2.0.13
### UPDT
- Invalid Field Attributes Bug Fix

4
base_accounting_kit/models/account_asset.py

@ -45,7 +45,7 @@ class AccountAssetCategory(models.Model):
default=lambda self: self.env[
'res.currency'].search(
[('name', '=', 'USD')]).id,
readonly=True, hide=True)
readonly=True, invisible=True)
account_analytic_id = fields.Many2one('account.analytic.account',
string='Analytic Account',
domain="[('company_id', '=', company_id)]")
@ -583,7 +583,7 @@ class AccountAssetAsset(models.Model):
return depreciation_ids.create_grouped_move()
return depreciation_ids.create_move()
@api.model
@api.model_create_multi
def create(self, vals):
asset = super(AccountAssetAsset,
self.with_context(mail_create_nolog=True)).create(vals)

1
base_accounting_kit/report/report_financial.py

@ -27,6 +27,7 @@ from odoo import api, fields, models
# ---------------------------------------------------------
class AccountTypes(models.Model):
_name = "account.account.type"
_description = "Account Types"
name = fields.Char(string='Account Type', required=True, translate=True)
type = fields.Selection([

Loading…
Cancel
Save