Browse Source

Sep 1 : [ADD] Initial Commit 'base_accounting_kit'

19.0
AjmalCybro 4 days ago
parent
commit
ff7cc7b5d9
  1. 2
      base_accounting_kit/README.rst
  2. 4
      base_accounting_kit/__manifest__.py
  3. 107
      base_accounting_kit/models/account_asset_asset.py
  4. 17
      base_accounting_kit/models/account_asset_category.py
  5. 42
      base_accounting_kit/models/account_asset_depreciation_line.py
  6. 6
      base_accounting_kit/models/res_config_settings.py
  7. 5
      base_accounting_kit/report/account_asset_report_views.xml
  8. 56
      base_accounting_kit/security/ir.model.access.csv
  9. 4
      base_accounting_kit/security/security.xml
  10. BIN
      base_accounting_kit/static/description/assets/icons/accounting_kit10.png
  11. BIN
      base_accounting_kit/static/description/assets/icons/accounting_kit11.png
  12. BIN
      base_accounting_kit/static/description/assets/icons/accounting_kit2.png
  13. BIN
      base_accounting_kit/static/description/assets/icons/accounting_kit3.png
  14. BIN
      base_accounting_kit/static/description/assets/icons/accounting_kit4.jpg
  15. BIN
      base_accounting_kit/static/description/assets/icons/accounting_kit5.png
  16. BIN
      base_accounting_kit/static/description/assets/icons/accounting_kit6.png
  17. BIN
      base_accounting_kit/static/description/assets/icons/accounting_kit7.png
  18. BIN
      base_accounting_kit/static/description/assets/icons/accounting_kit8.png
  19. BIN
      base_accounting_kit/static/description/assets/icons/accounting_kit9.png
  20. BIN
      base_accounting_kit/static/description/assets/icons/ajmaljk.png
  21. BIN
      base_accounting_kit/static/description/assets/icons/banner-1.png
  22. BIN
      base_accounting_kit/static/description/assets/icons/banner-bg.png
  23. BIN
      base_accounting_kit/static/description/assets/icons/blog-icon.png
  24. BIN
      base_accounting_kit/static/description/assets/icons/calendar.png
  25. BIN
      base_accounting_kit/static/description/assets/icons/chart.png
  26. BIN
      base_accounting_kit/static/description/assets/icons/chat.png
  27. BIN
      base_accounting_kit/static/description/assets/icons/check.png
  28. BIN
      base_accounting_kit/static/description/assets/icons/chevron.png
  29. BIN
      base_accounting_kit/static/description/assets/icons/close.png
  30. BIN
      base_accounting_kit/static/description/assets/icons/cogs.png
  31. BIN
      base_accounting_kit/static/description/assets/icons/consultation.png
  32. BIN
      base_accounting_kit/static/description/assets/icons/copy.png
  33. BIN
      base_accounting_kit/static/description/assets/icons/cybro-logo.png
  34. BIN
      base_accounting_kit/static/description/assets/icons/document.png
  35. BIN
      base_accounting_kit/static/description/assets/icons/ecom-black.png
  36. BIN
      base_accounting_kit/static/description/assets/icons/education-black.png
  37. BIN
      base_accounting_kit/static/description/assets/icons/faq.png
  38. BIN
      base_accounting_kit/static/description/assets/icons/feature.png
  39. BIN
      base_accounting_kit/static/description/assets/icons/hero.gif
  40. BIN
      base_accounting_kit/static/description/assets/icons/hotel-black.png
  41. BIN
      base_accounting_kit/static/description/assets/icons/idea.png
  42. BIN
      base_accounting_kit/static/description/assets/icons/imple.png
  43. BIN
      base_accounting_kit/static/description/assets/icons/license.png
  44. BIN
      base_accounting_kit/static/description/assets/icons/lifebuoy.png
  45. BIN
      base_accounting_kit/static/description/assets/icons/mail.png
  46. BIN
      base_accounting_kit/static/description/assets/icons/manufacturing-black.png
  47. BIN
      base_accounting_kit/static/description/assets/icons/notes.png
  48. BIN
      base_accounting_kit/static/description/assets/icons/odoo-logo.png
  49. BIN
      base_accounting_kit/static/description/assets/icons/pattern1.png
  50. BIN
      base_accounting_kit/static/description/assets/icons/people.png
  51. BIN
      base_accounting_kit/static/description/assets/icons/play.png
  52. BIN
      base_accounting_kit/static/description/assets/icons/pos-black.png
  53. BIN
      base_accounting_kit/static/description/assets/icons/puzzle.png
  54. BIN
      base_accounting_kit/static/description/assets/icons/restaurant-black.png
  55. BIN
      base_accounting_kit/static/description/assets/icons/screenshot-main.png
  56. BIN
      base_accounting_kit/static/description/assets/icons/screenshot.png
  57. BIN
      base_accounting_kit/static/description/assets/icons/scrn1.png
  58. BIN
      base_accounting_kit/static/description/assets/icons/service-black.png
  59. BIN
      base_accounting_kit/static/description/assets/icons/setting.png
  60. BIN
      base_accounting_kit/static/description/assets/icons/skype.png
  61. BIN
      base_accounting_kit/static/description/assets/icons/support.png
  62. BIN
      base_accounting_kit/static/description/assets/icons/temp.jpg
  63. BIN
      base_accounting_kit/static/description/assets/icons/test-1 - Copy.png
  64. BIN
      base_accounting_kit/static/description/assets/icons/test-1.png
  65. BIN
      base_accounting_kit/static/description/assets/icons/test-2.png
  66. BIN
      base_accounting_kit/static/description/assets/icons/tick.png
  67. BIN
      base_accounting_kit/static/description/assets/icons/tms.png
  68. BIN
      base_accounting_kit/static/description/assets/icons/trading-black.png
  69. BIN
      base_accounting_kit/static/description/assets/icons/training.png
  70. BIN
      base_accounting_kit/static/description/assets/icons/transfer.png
  71. BIN
      base_accounting_kit/static/description/assets/icons/update.png
  72. BIN
      base_accounting_kit/static/description/assets/icons/user.png
  73. BIN
      base_accounting_kit/static/description/assets/icons/video.png
  74. BIN
      base_accounting_kit/static/description/assets/icons/whatsapp.png
  75. BIN
      base_accounting_kit/static/description/assets/icons/wrench.png
  76. BIN
      base_accounting_kit/static/description/assets/icons/youtube-icon.png
  77. BIN
      base_accounting_kit/static/description/assets/modules/1.gif
  78. 0
      base_accounting_kit/static/description/assets/modules/1.png
  79. BIN
      base_accounting_kit/static/description/assets/modules/2.jpg
  80. BIN
      base_accounting_kit/static/description/assets/modules/3.jpg
  81. BIN
      base_accounting_kit/static/description/assets/modules/3.png
  82. BIN
      base_accounting_kit/static/description/assets/modules/5.jpg
  83. BIN
      base_accounting_kit/static/description/assets/modules/6.gif
  84. BIN
      base_accounting_kit/static/description/assets/screenshots/2.png
  85. BIN
      base_accounting_kit/static/description/assets/screenshots/3.png
  86. BIN
      base_accounting_kit/static/description/assets/screenshots/4.png
  87. 2802
      base_accounting_kit/static/description/index.html
  88. 168
      base_accounting_kit/views/account_asset_asset_views.xml
  89. 9
      base_accounting_kit/views/account_asset_category_views.xml
  90. 164
      base_accounting_kit/views/account_bank_statement_line_views.xml
  91. 2
      base_accounting_kit/views/account_recurring_payments_view.xml
  92. 2
      base_accounting_kit/views/followup_report.xml
  93. 2
      base_accounting_kit/views/product_template_views.xml
  94. 2
      base_accounting_kit/views/product_views.xml
  95. 18
      base_accounting_kit/views/res_config_settings_views.xml
  96. 2
      base_accounting_kit/wizard/account_print_journal_views.xml
  97. 2
      base_accounting_kit/wizard/account_report_general_ledger_views.xml
  98. 2
      base_accounting_kit/wizard/kit_account_tax_report_views.xml

2
base_accounting_kit/README.rst

@ -4,7 +4,7 @@
Odoo 19 Full Accounting Kit for Community Odoo 19 Full Accounting Kit for Community
========================================= =========================================
Full accounting kit for Odoo 18 community editions Full accounting kit for Odoo 19 community editions
Configuration Configuration
============= =============

4
base_accounting_kit/__manifest__.py

@ -97,8 +97,8 @@
'wizard/import_bank_statement_views.xml', 'wizard/import_bank_statement_views.xml',
], ],
'external_dependencies': { 'external_dependencies': {
'python': ['openpyxl', 'ofxparse', 'qifparse'] 'python': ['openpyxl', 'ofxparse', 'qifparse']
}, },
'assets': { 'assets': {
'web.assets_backend': [ 'web.assets_backend': [
'base_accounting_kit/static/src/scss/style.scss', 'base_accounting_kit/static/src/scss/style.scss',

107
base_accounting_kit/models/account_asset_asset.py

@ -49,13 +49,13 @@ class AccountAssetAsset(models.Model):
required=True, required=True,
default=lambda self: self.env.company) default=lambda self: self.env.company)
note = fields.Text() note = fields.Text()
category_id = fields.Many2one('account.asset.category', string='Category', category_id = fields.Many2one('account.asset.category', string='Asset Model',
required=True, change_default=True required=False, change_default=True
) )
date = fields.Date(string='Date', required=True, date = fields.Date(string='Date', required=True,
default=fields.Date.context_today) default=fields.Date.context_today)
state = fields.Selection( state = fields.Selection(
[('draft', 'Draft'), ('open', 'Running'), ('close', 'Close')], [('draft', 'Draft'), ('open', 'Running'), ('close', 'Close'),('cancelled','Cancelled')],
'Status', required=True, copy=False, default='draft', 'Status', required=True, copy=False, default='draft',
help="When an asset is created, the status is 'Draft'.\n" help="When an asset is created, the status is 'Draft'.\n"
"If the asset is confirmed, the status goes in 'Running' and the depreciation lines can be posted in the accounting.\n" "If the asset is confirmed, the status goes in 'Running' and the depreciation lines can be posted in the accounting.\n"
@ -63,7 +63,7 @@ class AccountAssetAsset(models.Model):
active = fields.Boolean(default=True) active = fields.Boolean(default=True)
partner_id = fields.Many2one('res.partner', string='Partner') partner_id = fields.Many2one('res.partner', string='Partner')
method = fields.Selection( method = fields.Selection(
[('linear', 'Linear'), ('degressive', 'Degressive')], [('linear', 'Straight Line'), ('degressive', 'Declining')],
string='Computation Method', required=True,default='linear', string='Computation Method', required=True,default='linear',
help="Choose the method to use to compute the amount of depreciation lines.\n * Linear: Calculated on basis of: Gross Value / Number of Depreciations\n" help="Choose the method to use to compute the amount of depreciation lines.\n * Linear: Calculated on basis of: Gross Value / Number of Depreciations\n"
" * Degressive: Calculated on basis of: Residual Value * Degressive Factor") " * Degressive: Calculated on basis of: Residual Value * Degressive Factor")
@ -95,8 +95,34 @@ class AccountAssetAsset(models.Model):
help="It is the amount you plan to have that you cannot depreciate.") help="It is the amount you plan to have that you cannot depreciate.")
invoice_id = fields.Many2one('account.move', string='Invoice', invoice_id = fields.Many2one('account.move', string='Invoice',
copy=False) copy=False)
type = fields.Selection(related="category_id.type", string='Type', type = fields.Selection([('sale', 'Sale: Revenue Recognition'),
required=True) ('purchase', 'Purchase: Asset')], required=True, index=True, default='purchase')
#asset category
account_analytic_id = fields.Many2one('account.analytic.account',
string='Analytic Account',
domain="[('company_id', '=', company_id)]")
account_asset_id = fields.Many2one('account.account',
string='Asset Account', required=True,
domain="[('account_type', '!=', 'asset_receivable'),('account_type', '!=', 'liability_payable'),('account_type', '!=', 'asset_cash'),('account_type', '!=', 'liability_credit_card'),('active', '=', True)]",
help="Account used to record the purchase of the asset at its original price.")
account_depreciation_id = fields.Many2one(
'account.account', string='Depreciation Account',
required=True,
domain="[('account_type', '!=', 'asset_receivable'),('account_type', '!=', 'liability_payable'),('account_type', '!=', 'asset_cash'),('account_type', '!=', 'liability_credit_card'),('active', '=', True)]",
help="Account used in the depreciation entries, to decrease the asset value.")
account_depreciation_expense_id = fields.Many2one(
'account.account', string='Expense Account',
required=True,
domain="[('account_type', '!=', 'asset_receivable'),('account_type', '!=','liability_payable'),('account_type', '!=', 'asset_cash'),('account_type', '!=','liability_credit_card'),('active', '=', True)]",
help="Account used in the periodical entries, to record a part of the asset as expense.")
journal_id = fields.Many2one('account.journal', string='Journal',
required=True)
open_asset = fields.Boolean(string='Auto-confirm Assets',
help="Check this if you want to automatically confirm the assets of this category when created by invoices.")
group_entries = fields.Boolean(string='Group Journal Entries',
help="Check this if you want to group the generated entries by categories.")
def unlink(self): def unlink(self):
""" Prevents deletion of assets in 'open' or 'close' state or with posted depreciation entries.""" """ Prevents deletion of assets in 'open' or 'close' state or with posted depreciation entries."""
@ -130,6 +156,11 @@ class AccountAssetAsset(models.Model):
def gross_value(self): def gross_value(self):
"""Update the 'value' field based on the 'price' of the selected 'category_id'.""" """Update the 'value' field based on the 'price' of the selected 'category_id'."""
self.value = self.category_id.price self.value = self.category_id.price
@api.onchange('method')
def onchange_method(self):
if self.depreciation_line_ids:
self.depreciation_line_ids = [(fields.Command.clear())]
@api.model @api.model
def compute_generated_entries(self, date, asset_type=None): def compute_generated_entries(self, date, asset_type=None):
@ -342,6 +373,8 @@ class AccountAssetAsset(models.Model):
'invoice_id', 'invoice_id',
] ]
ref_tracked_fields = self.env['account.asset.asset'].fields_get(field) ref_tracked_fields = self.env['account.asset.asset'].fields_get(field)
if not self.depreciation_line_ids:
self.compute_depreciation_board()
for asset in self: for asset in self:
tracked_fields = ref_tracked_fields.copy() tracked_fields = ref_tracked_fields.copy()
if asset.method == 'linear': if asset.method == 'linear':
@ -501,6 +534,11 @@ class AccountAssetAsset(models.Model):
'method_progress_factor': category.method_progress_factor, 'method_progress_factor': category.method_progress_factor,
'method_end': category.method_end, 'method_end': category.method_end,
'prorata': category.prorata, 'prorata': category.prorata,
'journal_id':category.journal_id.id,
'account_asset_id':category.account_asset_id.id,
'account_depreciation_id':category.account_depreciation_id.id,
'account_depreciation_expense_id':category.account_depreciation_expense_id.id,
'account_analytic_id':category.account_analytic_id.id
} }
} }
@ -526,22 +564,6 @@ class AccountAssetAsset(models.Model):
return depreciation_ids.create_grouped_move() return depreciation_ids.create_grouped_move()
return depreciation_ids.create_move() return depreciation_ids.create_move()
@api.model
def create(self, vals):
"""Create a new asset record using the provided values and compute its depreciation schedule."""
asset = super(AccountAssetAsset,
self.with_context(mail_create_nolog=True)).create(vals)
asset.sudo().compute_depreciation_board()
return asset
def write(self, vals):
"""Updates the records with the provided values and computes the depreciation board if necessary."""
res = super(AccountAssetAsset, self).write(vals)
if 'depreciation_line_ids' not in vals and 'state' not in vals:
for rec in self:
rec.compute_depreciation_board()
return res
def open_entries(self): def open_entries(self):
"""Return a dictionary to open journal entries related to the asset.""" """Return a dictionary to open journal entries related to the asset."""
move_ids = [] move_ids = []
@ -558,3 +580,44 @@ class AccountAssetAsset(models.Model):
'type': 'ir.actions.act_window', 'type': 'ir.actions.act_window',
'domain': [('id', 'in', move_ids)], 'domain': [('id', 'in', move_ids)],
} }
def action_save_model(self):
return{
'type': 'ir.actions.act_window',
'name': _('Asset Model'),
'res_model': 'account.asset.category',
'view_mode': 'form',
'target': 'current',
'context': {'default_price': self.value,
'default_method_time':self.method_time,
'default_method_end':self.method_end,
'default_method_number':self.method_number,
'default_method_period':self.method_period,
'default_method':self.method,
'default_company_id':self.company_id.id,
'default_method_progress_factor':self.method_progress_factor,
'default_prorata':self.prorata,
'default_group_entries':self.group_entries,
'default_open_asset':self.open_asset,
'default_account_analytic_id':self.account_analytic_id.id,
'default_account_depreciation_expense_id':self.account_depreciation_expense_id.id,
'default_account_depreciation_id':self.account_depreciation_id.id,
'default_account_asset_id':self.account_asset_id.id,
'default_journal_id':self.journal_id.id,
'default_asset_id': self.id,
}
}
def action_cancel_assets(self):
for asset in self:
for move in asset.depreciation_line_ids.mapped('move_id'):
if move.state == 'posted':
# Force to draft
move.button_draft() # or move.state = 'draft' if button_draft is restricted
move.unlink()
# Delete all depreciation lines
asset.depreciation_line_ids.unlink()
# Reset state
asset.state = 'cancelled'

17
base_accounting_kit/models/account_asset_category.py

@ -42,22 +42,22 @@ class AccountAssetCategory(models.Model):
domain="[('company_id', '=', company_id)]") domain="[('company_id', '=', company_id)]")
account_asset_id = fields.Many2one('account.account', account_asset_id = fields.Many2one('account.account',
string='Asset Account', required=True, string='Asset Account', required=True,
domain="[('account_type', '!=', 'asset_receivable'),('account_type', '!=', 'liability_payable'),('account_type', '!=', 'asset_cash'),('account_type', '!=', 'liability_credit_card'),('active', '=', False)]", domain="[('account_type', '!=', 'asset_receivable'),('account_type', '!=', 'liability_payable'),('account_type', '!=', 'asset_cash'),('account_type', '!=', 'liability_credit_card'),('active', '=', True)]",
help="Account used to record the purchase of the asset at its original price.") help="Account used to record the purchase of the asset at its original price.")
account_depreciation_id = fields.Many2one( account_depreciation_id = fields.Many2one(
'account.account', string='Depreciation Account', 'account.account', string='Depreciation Account',
required=True, required=True,
domain="[('account_type', '!=', 'asset_receivable'),('account_type', '!=', 'liability_payable'),('account_type', '!=', 'asset_cash'),('account_type', '!=', 'liability_credit_card'),('active', '=', False)]", domain="[('account_type', '!=', 'asset_receivable'),('account_type', '!=', 'liability_payable'),('account_type', '!=', 'asset_cash'),('account_type', '!=', 'liability_credit_card'),('active', '=', True)]",
help="Account used in the depreciation entries, to decrease the asset value.") help="Account used in the depreciation entries, to decrease the asset value.")
account_depreciation_expense_id = fields.Many2one( account_depreciation_expense_id = fields.Many2one(
'account.account', string='Expense Account', 'account.account', string='Expense Account',
required=True, required=True,
domain="[('account_type', '!=', 'asset_receivable'),('account_type', '!=','liability_payable'),('account_type', '!=', 'asset_cash'),('account_type', '!=','liability_credit_card'),('active', '=', False)]", domain="[('account_type', '!=', 'asset_receivable'),('account_type', '!=','liability_payable'),('account_type', '!=', 'asset_cash'),('account_type', '!=','liability_credit_card'),('active', '=', True)]",
help="Account used in the periodical entries, to record a part of the asset as expense.") help="Account used in the periodical entries, to record a part of the asset as expense.")
journal_id = fields.Many2one('account.journal', string='Journal', journal_id = fields.Many2one('account.journal', string='Journal',
required=True) required=True)
method = fields.Selection( method = fields.Selection(
[('linear', 'Linear'), ('degressive', 'Degressive')], [('linear', 'Straight Line'), ('degressive', 'Declining')],
string='Computation Method', required=True, default='linear', string='Computation Method', required=True, default='linear',
help="Choose the method to use to compute the amount of depreciation lines.\n" help="Choose the method to use to compute the amount of depreciation lines.\n"
" * Linear: Calculated on basis of: Gross Value / Number of Depreciations\n" " * Linear: Calculated on basis of: Gross Value / Number of Depreciations\n"
@ -109,3 +109,12 @@ class AccountAssetCategory(models.Model):
Set 'prorata' to False if 'method_time' is not equal to 'number'.""" Set 'prorata' to False if 'method_time' is not equal to 'number'."""
if self.method_time != 'number': if self.method_time != 'number':
self.prorata = False self.prorata = False
@api.model
def create(self, vals):
record = super().create(vals)
asset_id = self.env.context.get('default_asset_id')
if asset_id:
asset = self.env['account.asset.asset'].browse(asset_id)
asset.category_id = record.id
return record

42
base_accounting_kit/models/account_asset_depreciation_line.py

@ -70,12 +70,12 @@ class AccountAssetDepreciationLine(models.Model):
raise UserError(_( raise UserError(_(
'This depreciation is already linked to a journal entry! Please post or delete it.')) 'This depreciation is already linked to a journal entry! Please post or delete it.'))
for line in self: for line in self:
category_id = line.asset_id.category_id asset_id = line.asset_id
depreciation_date = self.env.context.get( depreciation_date = self.env.context.get(
'depreciation_date') or line.depreciation_date or fields.Date.context_today( 'depreciation_date') or line.depreciation_date or fields.Date.context_today(
self) self)
company_currency = line.asset_id.company_id.currency_id company_currency = asset_id.company_id.currency_id
current_currency = line.asset_id.currency_id current_currency = asset_id.currency_id
amount = current_currency._convert(line.amount, company_currency, amount = current_currency._convert(line.amount, company_currency,
line.asset_id.company_id, line.asset_id.company_id,
depreciation_date) depreciation_date)
@ -83,35 +83,35 @@ class AccountAssetDepreciationLine(models.Model):
partner = self.env['res.partner']._find_accounting_partner(line.asset_id.partner_id) partner = self.env['res.partner']._find_accounting_partner(line.asset_id.partner_id)
move_line_1 = { move_line_1 = {
'name': asset_name, 'name': asset_name,
'account_id': category_id.account_depreciation_id.id, 'account_id': asset_id.account_depreciation_id.id,
'debit': 0.0 if float_compare(amount, 0.0, 'debit': 0.0 if float_compare(amount, 0.0,
precision_digits=prec) > 0 else -amount, precision_digits=prec) > 0 else -amount,
'credit': amount if float_compare(amount, 0.0, 'credit': amount if float_compare(amount, 0.0,
precision_digits=prec) > 0 else 0.0, precision_digits=prec) > 0 else 0.0,
'journal_id': category_id.journal_id.id, 'journal_id': asset_id.journal_id.id,
'partner_id': partner.id, 'partner_id': partner.id,
'currency_id': company_currency != current_currency and current_currency.id or company_currency.id, 'currency_id': company_currency != current_currency and current_currency.id or company_currency.id,
'amount_currency': company_currency != current_currency and - 1.0 * line.amount or 0.0, 'amount_currency': company_currency != current_currency and - 1.0 * line.amount or 0.0,
} }
move_line_2 = { move_line_2 = {
'name': asset_name, 'name': asset_name,
'account_id': category_id.account_depreciation_expense_id.id, 'account_id': asset_id.account_depreciation_expense_id.id,
'credit': 0.0 if float_compare(amount, 0.0, 'credit': 0.0 if float_compare(amount, 0.0,
precision_digits=prec) > 0 else -amount, precision_digits=prec) > 0 else -amount,
'debit': amount if float_compare(amount, 0.0, 'debit': amount if float_compare(amount, 0.0,
precision_digits=prec) > 0 else 0.0, precision_digits=prec) > 0 else 0.0,
'journal_id': category_id.journal_id.id, 'journal_id': asset_id.journal_id.id,
'partner_id': partner.id, 'partner_id': partner.id,
'currency_id': company_currency != current_currency and current_currency.id or company_currency.id, 'currency_id': company_currency != current_currency and current_currency.id or company_currency.id,
'amount_currency': company_currency != current_currency and line.amount or 0.0, 'amount_currency': company_currency != current_currency and line.amount or 0.0,
} }
line_ids = [(0, 0, { line_ids = [(0, 0, {
'account_id': category_id.account_depreciation_id.id, 'account_id': asset_id.account_depreciation_id.id,
'partner_id': partner.id, 'partner_id': partner.id,
'credit': amount if float_compare(amount, 0.0, 'credit': amount if float_compare(amount, 0.0,
precision_digits=prec) > 0 else 0.0, precision_digits=prec) > 0 else 0.0,
}), (0, 0, { }), (0, 0, {
'account_id': category_id.account_depreciation_expense_id.id, 'account_id': asset_id.account_depreciation_expense_id.id,
'partner_id': partner.id, 'partner_id': partner.id,
'debit': amount if float_compare(amount, 0.0, 'debit': amount if float_compare(amount, 0.0,
precision_digits=prec) > 0 else 0.0, precision_digits=prec) > 0 else 0.0,
@ -119,7 +119,7 @@ class AccountAssetDepreciationLine(models.Model):
move = self.env['account.move'].create({ move = self.env['account.move'].create({
'ref': line.asset_id.code, 'ref': line.asset_id.code,
'date': depreciation_date or False, 'date': depreciation_date or False,
'journal_id': category_id.journal_id.id, 'journal_id': asset_id.journal_id.id,
'line_ids': line_ids, 'line_ids': line_ids,
}) })
for move_line in move.line_ids: for move_line in move.line_ids:
@ -139,7 +139,7 @@ class AccountAssetDepreciationLine(models.Model):
if post_move and created_moves: if post_move and created_moves:
created_moves.filtered(lambda m: any( created_moves.filtered(lambda m: any(
m.asset_depreciation_ids.mapped( m.asset_depreciation_ids.mapped(
'asset_id.category_id.open_asset'))).post() 'asset_id.open_asset'))).post()
return [x.id for x in created_moves] return [x.id for x in created_moves]
def create_grouped_move(self, post_move=True): def create_grouped_move(self, post_move=True):
@ -235,13 +235,13 @@ class AccountAssetDepreciationLine(models.Model):
for msg in messages: for msg in messages:
asset.message_post(body=msg) asset.message_post(body=msg)
def unlink(self): # def unlink(self):
"""Check if the depreciation line is linked to a posted move before deletion.""" # """Check if the depreciation line is linked to a posted move before deletion."""
for record in self: # for record in self:
if record.move_check: # if record.move_check:
if record.asset_id.category_id.type == 'purchase': # if record.asset_id.category_id.type == 'purchase':
msg = _("You cannot delete posted depreciation lines.") # msg = _("You cannot delete posted depreciation lines.")
else: # else:
msg = _("You cannot delete posted installment lines.") # msg = _("You cannot delete posted installment lines.")
raise UserError(msg) # raise UserError(msg)
return super(AccountAssetDepreciationLine, self).unlink() # return super(AccountAssetDepreciationLine, self).unlink()

6
base_accounting_kit/models/res_config_settings.py

@ -31,6 +31,12 @@ class ResConfigSettings(models.TransientModel):
use_anglo_saxon_accounting = fields.Boolean(string="Use Anglo-Saxon accounting", readonly=False, use_anglo_saxon_accounting = fields.Boolean(string="Use Anglo-Saxon accounting", readonly=False,
related='company_id.anglo_saxon_accounting') related='company_id.anglo_saxon_accounting')
fiscalyear_last_day = fields.Integer(
related='company_id.fiscalyear_last_day', readonly=False
)
fiscalyear_last_month = fields.Selection(
related='company_id.fiscalyear_last_month', readonly=False
)
@api.model @api.model
def get_values(self): def get_values(self):

5
base_accounting_kit/report/account_asset_report_views.xml

@ -71,5 +71,8 @@
</p> </p>
</field> </field>
</record> </record>
<!--Assets Menuitem-->
<menuitem name="Assets" action="action_asset_asset_report"
id="menu_action_asset_asset_report"
parent="account.account_reports_management_menu" sequence="21"/>
</odoo> </odoo>

56
base_accounting_kit/security/ir.model.access.csv

@ -1,49 +1,49 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_financial_report_user,account_fin_rep_name_user,model_account_financial_report,base_accounting_kit.group_account_user,1,1,1,1 access_financial_report_user,account_fin_rep_name_user,model_account_financial_report,account.group_account_user,1,1,1,1
access_financial_report_manager,account_fin_rep_name_manager,model_account_financial_report,base_accounting_kit.group_account_chief,1,1,1,1 access_financial_report_manager,account_fin_rep_name_manager,model_account_financial_report,base_accounting_kit.group_account_chief,1,1,1,1
access_account_followup_manager,account.followup.manager,model_account_followup,base_accounting_kit.group_account_chief,1,1,1,1 access_account_followup_manager,account.followup.manager,model_account_followup,base_accounting_kit.group_account_chief,1,1,1,1
access_account_followup_user,account.followup.user,model_account_followup,base_accounting_kit.group_account_user,1,1,1,1 access_account_followup_user,account.followup.user,model_account_followup,account.group_account_user,1,1,1,1
access_followup_line,followup.line,model_followup_line,base_accounting_kit.group_account_chief,1,1,1,1 access_followup_line,followup.line,model_followup_line,base_accounting_kit.group_account_chief,1,1,1,1
access_account_followup_line_user,account.followup.line.user,model_followup_line,base_accounting_kit.group_account_user,1,1,1,1 access_account_followup_line_user,account.followup.line.user,model_followup_line,account.group_account_user,1,1,1,1
access_account_asset_category,account.asset.category,model_account_asset_category,base_accounting_kit.group_account_user,1,0,0,0 access_account_asset_category,account.asset.category,model_account_asset_category,account.group_account_user,1,0,0,0
access_asset_modify_user,access_asset_modify_user,model_asset_modify,base_accounting_kit.group_account_user,1,0,0,0 access_asset_modify_user,access_asset_modify_user,model_asset_modify,account.group_account_user,1,0,0,0
access_asset_modify_manager,access_asset_modify_manager,model_asset_modify,base_accounting_kit.group_account_chief,1,1,1,1 access_asset_modify_manager,access_asset_modify_manager,model_asset_modify,base_accounting_kit.group_account_chief,1,1,1,1
access_account_asset_asset,account.asset.asset,model_account_asset_asset,base_accounting_kit.group_account_user,1,0,0,0 access_account_asset_asset,account.asset.asset,model_account_asset_asset,account.group_account_user,1,0,0,0
access_account_asset_category_manager,account.asset.category,model_account_asset_category,base_accounting_kit.group_account_chief,1,1,1,1 access_account_asset_category_manager,account.asset.category,model_account_asset_category,base_accounting_kit.group_account_chief,1,1,1,1
access_account_asset_asset_manager,account.asset.asset,model_account_asset_asset,base_accounting_kit.group_account_chief,1,1,1,1 access_account_asset_asset_manager,account.asset.asset,model_account_asset_asset,base_accounting_kit.group_account_chief,1,1,1,1
access_account_asset_depreciation_line,account.asset.depreciation.line,model_account_asset_depreciation_line,base_accounting_kit.group_account_user,1,0,0,0 access_account_asset_depreciation_line,account.asset.depreciation.line,model_account_asset_depreciation_line,account.group_account_user,1,0,0,0
access_account_asset_depreciation_line_manager,account.asset.depreciation.line,model_account_asset_depreciation_line,base_accounting_kit.group_account_chief,1,1,1,1 access_account_asset_depreciation_line_manager,account.asset.depreciation.line,model_account_asset_depreciation_line,base_accounting_kit.group_account_chief,1,1,1,1
access_asset_asset_report,asset.asset.report,model_asset_asset_report,base_accounting_kit.group_account_user,1,0,0,0 access_asset_asset_report,asset.asset.report,model_asset_asset_report,account.group_account_user,1,0,0,0
access_asset_asset_report_manager,asset.asset.report,model_asset_asset_report,base_accounting_kit.group_account_chief,1,1,1,1 access_asset_asset_report_manager,asset.asset.report,model_asset_asset_report,base_accounting_kit.group_account_chief,1,1,1,1
access_account_asset_category_invoicing_payment,account.asset.category,model_account_asset_category,account.group_account_invoice,1,0,0,0 access_account_asset_category_invoicing_payment,account.asset.category,model_account_asset_category,account.group_account_invoice,1,0,0,0
access_account_asset_asset_invoicing_payment,account.asset.asset,model_account_asset_asset,account.group_account_invoice,1,0,1,0 access_account_asset_asset_invoicing_payment,account.asset.asset,model_account_asset_asset,account.group_account_invoice,1,0,1,0
access_account_asset_depreciation_line_invoicing_payment,account.asset.depreciation.line,model_account_asset_depreciation_line,account.group_account_invoice,1,0,1,0 access_account_asset_depreciation_line_invoicing_payment,account.asset.depreciation.line,model_account_asset_depreciation_line,account.group_account_invoice,1,0,1,0
access_account_aged_trial_balance,access.account.aged.trial.balance,model_account_aged_trial_balance,base_accounting_kit.group_account_user,1,1,1,1 access_account_aged_trial_balance,access.account.aged.trial.balance,model_account_aged_trial_balance,account.group_account_user,1,1,1,1
access_account_account_bank_book_report,access.account.bank.book.report,model_account_bank_book_report,base_accounting_kit.group_account_user,1,1,1,1 access_account_account_bank_book_report,access.account.bank.book.report,model_account_bank_book_report,account.group_account_user,1,1,1,1
access_account_cash_book_report,access.account.cash.book.report,model_account_cash_book_report,base_accounting_kit.group_account_user,1,1,1,1 access_account_cash_book_report,access.account.cash.book.report,model_account_cash_book_report,account.group_account_user,1,1,1,1
access_account_day_book_report,access.account.day.book.report,model_account_day_book_report,base_accounting_kit.group_account_user,1,1,1,1 access_account_day_book_report,access.account.day.book.report,model_account_day_book_report,account.group_account_user,1,1,1,1
access_account_common_partner_report,access.account.common.partner.report,model_account_common_partner_report,base_accounting_kit.group_account_user,1,1,1,1 access_account_common_partner_report,access.account.common.partner.report,model_account_common_partner_report,account.group_account_user,1,1,1,1
access_asset_depreciation_confirmation,access.asset.depreciation.confirmation,model_asset_depreciation_confirmation,base_accounting_kit.group_account_user,1,1,1,1 access_asset_depreciation_confirmation,access.asset.depreciation.confirmation,model_asset_depreciation_confirmation,account.group_account_user,1,1,1,1
access_cash_flow_report,access.cash.flow.report,model_cash_flow_report,base_accounting_kit.group_account_user,1,1,1,1 access_cash_flow_report,access.cash.flow.report,model_cash_flow_report,account.group_account_user,1,1,1,1
access_financial_report,access.financial.report,model_financial_report,base_accounting_kit.group_account_user,1,1,1,1 access_financial_report,access.financial.report,model_financial_report,account.group_account_user,1,1,1,1
access_report_base_accounting_kit_report_financial,access.report.base_accounting_kit.report_financial,model_report_base_accounting_kit_report_financial,base_accounting_kit.group_account_user,1,1,1,1 access_report_base_accounting_kit_report_financial,access.report.base_accounting_kit.report_financial,model_report_base_accounting_kit_report_financial,account.group_account_user,1,1,1,1
access_account_report_general_ledger,access.account.report.general.ledger,model_account_report_general_ledger,base_accounting_kit.group_account_user,1,1,1,1 access_account_report_general_ledger,access.account.report.general.ledger,model_account_report_general_ledger,account.group_account_user,1,1,1,1
access_account_print_journal,access.account.print.journal,model_account_print_journal,base_accounting_kit.group_account_user,1,1,1,1 access_account_print_journal,access.account.print.journal,model_account_print_journal,account.group_account_user,1,1,1,1
access_account_report_partner_ledger,access.account.report.partner.ledger,model_account_report_partner_ledger,base_accounting_kit.group_account_user,1,1,1,1 access_account_report_partner_ledger,access.account.report.partner.ledger,model_account_report_partner_ledger,account.group_account_user,1,1,1,1
access_account_common_account_report,access.account.common.account.report,model_account_common_account_report,base_accounting_kit.group_account_user,1,1,1,1 access_account_common_account_report,access.account.common.account.report,model_account_common_account_report,account.group_account_user,1,1,1,1
access_kit_account_tax_report,access.kit.account.tax.report,model_kit_account_tax_report,base_accounting_kit.group_account_user,1,1,1,1 access_kit_account_tax_report,access.kit.account.tax.report,model_kit_account_tax_report,account.group_account_user,1,1,1,1
access_account_balance_report,access.account.balance.report,model_account_balance_report,base_accounting_kit.group_account_user,1,1,1,1 access_account_balance_report,access.account.balance.report,model_account_balance_report,account.group_account_user,1,1,1,1
access_multiple_invoice,multiple_invoice,model_multiple_invoice,base_accounting_kit.group_account_chief,1,1,1,1 access_multiple_invoice,multiple_invoice,model_multiple_invoice,base_accounting_kit.group_account_chief,1,1,1,1
access_multiple_invoice_layout,multiple_invoice_layout,model_multiple_invoice_layout,base_accounting_kit.group_account_chief,1,1,1,1 access_multiple_invoice_layout,multiple_invoice_layout,model_multiple_invoice_layout,base_accounting_kit.group_account_chief,1,1,1,1
access_account_common_journal_report,account.common.journal.report,model_account_common_journal_report,base_accounting_kit.group_account_user,1,1,1,1 access_account_common_journal_report,account.common.journal.report,model_account_common_journal_report,account.group_account_user,1,1,1,1
access_account_account_type,account.account.type,model_account_account_type,base_accounting_kit.group_account_user,1,1,1,1 access_account_account_type,account.account.type,model_account_account_type,account.group_account_user,1,1,1,1
access_account_lock_date,access.account.lock.date,model_account_lock_date,base_accounting_kit.group_account_user,1,1,1,1 access_account_lock_date,access.account.lock.date,model_account_lock_date,account.group_account_user,1,1,1,1
access_account_recurring_entries_line,access.account.recurring.entries.line,model_account_recurring_entries_line,base_accounting_kit.group_account_user,1,1,1,1 access_account_recurring_entries_line,access.account.recurring.entries.line,model_account_recurring_entries_line,account.group_account_user,1,1,1,1
access_generate_recurring_entries,generate.recurring.entries.user,model_account_recurring_payments,base_accounting_kit.group_account_user,1,1,1,1 access_generate_recurring_entries,generate.recurring.entries.user,model_account_recurring_payments,account.group_account_user,1,1,1,1
access_import_bank_statement_user,access.import.bank.statement.user,model_import_bank_statement,base.group_user,1,1,1,1 access_import_bank_statement_user,access.import.bank.statement.user,model_import_bank_statement,base.group_user,1,1,1,1

1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_financial_report_user account_fin_rep_name_user model_account_financial_report base_accounting_kit.group_account_user account.group_account_user 1 1 1 1
3 access_financial_report_manager account_fin_rep_name_manager model_account_financial_report base_accounting_kit.group_account_chief 1 1 1 1
4 access_account_followup_manager account.followup.manager model_account_followup base_accounting_kit.group_account_chief 1 1 1 1
5 access_account_followup_user account.followup.user model_account_followup base_accounting_kit.group_account_user account.group_account_user 1 1 1 1
6 access_followup_line followup.line model_followup_line base_accounting_kit.group_account_chief 1 1 1 1
7 access_account_followup_line_user account.followup.line.user model_followup_line base_accounting_kit.group_account_user account.group_account_user 1 1 1 1
8 access_account_asset_category account.asset.category model_account_asset_category base_accounting_kit.group_account_user account.group_account_user 1 0 0 0
9 access_asset_modify_user access_asset_modify_user model_asset_modify base_accounting_kit.group_account_user account.group_account_user 1 0 0 0
10 access_asset_modify_manager access_asset_modify_manager model_asset_modify base_accounting_kit.group_account_chief 1 1 1 1
11 access_account_asset_asset account.asset.asset model_account_asset_asset base_accounting_kit.group_account_user account.group_account_user 1 0 0 0
12 access_account_asset_category_manager account.asset.category model_account_asset_category base_accounting_kit.group_account_chief 1 1 1 1
13 access_account_asset_asset_manager account.asset.asset model_account_asset_asset base_accounting_kit.group_account_chief 1 1 1 1
14 access_account_asset_depreciation_line account.asset.depreciation.line model_account_asset_depreciation_line base_accounting_kit.group_account_user account.group_account_user 1 0 0 0
15 access_account_asset_depreciation_line_manager account.asset.depreciation.line model_account_asset_depreciation_line base_accounting_kit.group_account_chief 1 1 1 1
16 access_asset_asset_report asset.asset.report model_asset_asset_report base_accounting_kit.group_account_user account.group_account_user 1 0 0 0
17 access_asset_asset_report_manager asset.asset.report model_asset_asset_report base_accounting_kit.group_account_chief 1 1 1 1
18 access_account_asset_category_invoicing_payment account.asset.category model_account_asset_category account.group_account_invoice 1 0 0 0
19 access_account_asset_asset_invoicing_payment account.asset.asset model_account_asset_asset account.group_account_invoice 1 0 1 0
20 access_account_asset_depreciation_line_invoicing_payment account.asset.depreciation.line model_account_asset_depreciation_line account.group_account_invoice 1 0 1 0
21 access_account_aged_trial_balance access.account.aged.trial.balance model_account_aged_trial_balance base_accounting_kit.group_account_user account.group_account_user 1 1 1 1
22 access_account_account_bank_book_report access.account.bank.book.report model_account_bank_book_report base_accounting_kit.group_account_user account.group_account_user 1 1 1 1
23 access_account_cash_book_report access.account.cash.book.report model_account_cash_book_report base_accounting_kit.group_account_user account.group_account_user 1 1 1 1
24 access_account_day_book_report access.account.day.book.report model_account_day_book_report base_accounting_kit.group_account_user account.group_account_user 1 1 1 1
25 access_account_common_partner_report access.account.common.partner.report model_account_common_partner_report base_accounting_kit.group_account_user account.group_account_user 1 1 1 1
26 access_asset_depreciation_confirmation access.asset.depreciation.confirmation model_asset_depreciation_confirmation base_accounting_kit.group_account_user account.group_account_user 1 1 1 1
27 access_cash_flow_report access.cash.flow.report model_cash_flow_report base_accounting_kit.group_account_user account.group_account_user 1 1 1 1
28 access_financial_report access.financial.report model_financial_report base_accounting_kit.group_account_user account.group_account_user 1 1 1 1
29 access_report_base_accounting_kit_report_financial access.report.base_accounting_kit.report_financial model_report_base_accounting_kit_report_financial base_accounting_kit.group_account_user account.group_account_user 1 1 1 1
30 access_account_report_general_ledger access.account.report.general.ledger model_account_report_general_ledger base_accounting_kit.group_account_user account.group_account_user 1 1 1 1
31 access_account_print_journal access.account.print.journal model_account_print_journal base_accounting_kit.group_account_user account.group_account_user 1 1 1 1
32 access_account_report_partner_ledger access.account.report.partner.ledger model_account_report_partner_ledger base_accounting_kit.group_account_user account.group_account_user 1 1 1 1
33 access_account_common_account_report access.account.common.account.report model_account_common_account_report base_accounting_kit.group_account_user account.group_account_user 1 1 1 1
34 access_kit_account_tax_report access.kit.account.tax.report model_kit_account_tax_report base_accounting_kit.group_account_user account.group_account_user 1 1 1 1
35 access_account_balance_report access.account.balance.report model_account_balance_report base_accounting_kit.group_account_user account.group_account_user 1 1 1 1
36 access_multiple_invoice multiple_invoice model_multiple_invoice base_accounting_kit.group_account_chief 1 1 1 1
37 access_multiple_invoice_layout multiple_invoice_layout model_multiple_invoice_layout base_accounting_kit.group_account_chief 1 1 1 1
38 access_account_common_journal_report account.common.journal.report model_account_common_journal_report base_accounting_kit.group_account_user account.group_account_user 1 1 1 1
39 access_account_account_type account.account.type model_account_account_type base_accounting_kit.group_account_user account.group_account_user 1 1 1 1
40 access_account_lock_date access.account.lock.date model_account_lock_date base_accounting_kit.group_account_user account.group_account_user 1 1 1 1
41 access_account_recurring_entries_line access.account.recurring.entries.line model_account_recurring_entries_line base_accounting_kit.group_account_user account.group_account_user 1 1 1 1
42 access_generate_recurring_entries generate.recurring.entries.user model_account_recurring_payments base_accounting_kit.group_account_user account.group_account_user 1 1 1 1
43 access_import_bank_statement_user access.import.bank.statement.user model_import_bank_statement base.group_user 1 1 1 1
44
45
46
47
48
49

4
base_accounting_kit/security/security.xml

@ -25,7 +25,7 @@
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/> <field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
<field name="privilege_id" ref="account.res_groups_privilege_accounting"/> <field name="privilege_id" ref="account.res_groups_privilege_accounting"/>
</record> </record>
<record id="group_account_user" model="res.groups"> <record id="account.group_account_user" model="res.groups">
<field name="name">Accountant</field> <field name="name">Accountant</field>
<field name="sequence">2</field> <field name="sequence">2</field>
<field name="implied_ids" <field name="implied_ids"
@ -36,7 +36,7 @@
<record id="group_account_chief" model="res.groups"> <record id="group_account_chief" model="res.groups">
<field name="name">Chief Accountant</field> <field name="name">Chief Accountant</field>
<field name="sequence">51</field> <field name="sequence">51</field>
<field name="implied_ids" eval="[(4, ref('account.group_account_invoice')), (4, ref('base_accounting_kit.group_account_user')),(4, ref('account.group_account_manager'))]"/> <field name="implied_ids" eval="[(4, ref('account.group_account_invoice')), (4, ref('account.group_account_user')),(4, ref('account.group_account_manager'))]"/>
<field name="privilege_id" ref="account.res_groups_privilege_accounting"/> <field name="privilege_id" ref="account.res_groups_privilege_accounting"/>
<field name="user_ids" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/> <field name="user_ids" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>
</record> </record>

BIN
base_accounting_kit/static/description/assets/icons/accounting_kit10.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1018 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/accounting_kit11.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 876 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/accounting_kit2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/accounting_kit3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 186 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/accounting_kit4.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/accounting_kit5.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/accounting_kit6.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/accounting_kit7.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/accounting_kit8.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/accounting_kit9.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/ajmaljk.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/banner-1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 210 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/banner-bg.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/blog-icon.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 841 B

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/calendar.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
base_accounting_kit/static/description/assets/icons/chart.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

BIN
base_accounting_kit/static/description/assets/icons/chat.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
base_accounting_kit/static/description/assets/icons/check.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/chevron.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 310 B

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/close.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
base_accounting_kit/static/description/assets/icons/cogs.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/consultation.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/copy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
base_accounting_kit/static/description/assets/icons/cybro-logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/document.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
base_accounting_kit/static/description/assets/icons/ecom-black.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 576 B

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/education-black.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 733 B

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/faq.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/feature.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/hero.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 738 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/hotel-black.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 911 B

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/idea.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
base_accounting_kit/static/description/assets/icons/imple.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
base_accounting_kit/static/description/assets/icons/license.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/lifebuoy.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/mail.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
base_accounting_kit/static/description/assets/icons/manufacturing-black.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 673 B

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/notes.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/odoo-logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/pattern1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/people.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
base_accounting_kit/static/description/assets/icons/play.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
base_accounting_kit/static/description/assets/icons/pos-black.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 878 B

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/puzzle.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 653 B

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/restaurant-black.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 905 B

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/screenshot-main.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 189 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/screenshot.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/scrn1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

BIN
base_accounting_kit/static/description/assets/icons/service-black.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 839 B

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/setting.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
base_accounting_kit/static/description/assets/icons/skype.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/support.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
base_accounting_kit/static/description/assets/icons/temp.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 KiB

BIN
base_accounting_kit/static/description/assets/icons/test-1 - Copy.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/test-1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/test-2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/tick.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
base_accounting_kit/static/description/assets/icons/tms.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
base_accounting_kit/static/description/assets/icons/trading-black.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 427 B

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/training.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 627 B

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/transfer.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
base_accounting_kit/static/description/assets/icons/update.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/user.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 988 B

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/video.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/whatsapp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
base_accounting_kit/static/description/assets/icons/wrench.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/icons/youtube-icon.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 619 B

After

Width:  |  Height:  |  Size: 0 B

BIN
base_accounting_kit/static/description/assets/modules/1.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 757 KiB

0
base_accounting_kit/static/description/assets/modules/4.png → base_accounting_kit/static/description/assets/modules/1.png

Before

Width:  |  Height:  |  Size: 92 KiB

After

Width:  |  Height:  |  Size: 92 KiB

BIN
base_accounting_kit/static/description/assets/modules/2.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 710 KiB

BIN
base_accounting_kit/static/description/assets/modules/3.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 760 KiB

BIN
base_accounting_kit/static/description/assets/modules/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

BIN
base_accounting_kit/static/description/assets/modules/5.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 697 KiB

BIN
base_accounting_kit/static/description/assets/modules/6.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

BIN
base_accounting_kit/static/description/assets/screenshots/2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 98 KiB

After

Width:  |  Height:  |  Size: 131 KiB

BIN
base_accounting_kit/static/description/assets/screenshots/3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

After

Width:  |  Height:  |  Size: 102 KiB

BIN
base_accounting_kit/static/description/assets/screenshots/4.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 79 KiB

2802
base_accounting_kit/static/description/index.html

File diff suppressed because it is too large

168
base_accounting_kit/views/account_asset_asset_views.xml

@ -1,31 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<odoo> <odoo>
<!-- Asset Form View --> <!-- Asset Form View -->
<record model="ir.ui.view" id="account_asset_asset_view_form"> <record model="ir.ui.view" id="account_asset_asset_view_form">
<field name="name">account.asset.asset.view.form</field> <field name="name">account.asset.asset.view.form</field>
<field name="model">account.asset.asset</field> <field name="model">account.asset.asset</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="Asset"> <form string="Asset">
<header> <header>
<button name="validate" invisible="state != 'draft'" string="Confirm" type="object" class="oe_highlight"/> <button name="validate" invisible="state != 'draft'" string="Confirm" type="object"
<button type="object" name="compute_depreciation_board" string="Compute Depreciation" invisible="state != 'draft'"/> class="oe_highlight"/>
<button name="set_to_close" invisible="state != 'open'" string="Sell or Dispose" type="object" class="oe_highlight"/> <button type="object" name="compute_depreciation_board" string="Compute Depreciation"
invisible="state != 'draft'"/>
<button name="set_to_close" invisible="state != 'open'" string="Sell or Dispose" type="object"
class="oe_highlight"/>
<button name="action_save_model" invisible="state != 'open' or category_id" string="Save as model" type="object"
/>
<button name="action_cancel_assets" string="Cancel Asset" type="object"
invisible="state != 'open'"/>
<button name="set_to_draft" string="Set to Draft" type="object" <button name="set_to_draft" string="Set to Draft" type="object"
invisible="entry_count != 0 or state != 'open'"/> invisible="state != 'cancelled'"/>
<button name="%(action_asset_modify)d" invisible="state != 'open'" string="Modify Depreciation" type="action"/> <button name="%(action_asset_modify)d" invisible="state != 'open'" string="Modify Depreciation"
type="action"/>
<field name="state" widget="statusbar" statusbar_visible="draft,open"/> <field name="state" widget="statusbar" statusbar_visible="draft,open"/>
</header> </header>
<sheet> <sheet>
<div class="oe_button_box" name="button_box"> <div class="oe_button_box" name="button_box">
<button class="oe_stat_button" name="open_entries" type="object" icon="fa-pencil"> <button class="oe_stat_button" name="open_entries" type="object" icon="fa-pencil">
<field string="Items" name="entry_count" widget="statinfo" /> <field string="Items" name="entry_count" widget="statinfo"/>
</button> </button>
</div> </div>
<div class="oe_title"> <div class="oe_title">
<label for="name" class="oe_edit_only"/> <label for="name" class="oe_edit_only"/>
<h1> <h1>
<field name="name" placeholder="e.g. Laptop iBook" <field name="name" placeholder="e.g. Laptop iBook"
readonly="state != 'draft'"/> readonly="state != 'draft'"/>
</h1> </h1>
</div> </div>
<group> <group>
@ -58,11 +66,69 @@
</group> </group>
</group> </group>
<notebook colspan="4"> <notebook colspan="4">
<page string="Depreciation Board"> <page string="Assets">
<group>
<group>
<field name="type" invisible="1"/>
<field name="company_id" options="{'no_create': True}" readonly="state != 'draft'"/>
</group>
<group string="Journal Entries">
<field name="journal_id" readonly="state != 'draft'"/>
<div>
<label for="account_asset_id" invisible="type != 'purchase'"/>
<label for="account_asset_id" string="Deferred Revenue Account"
invisible="type != 'sale'"/>
</div>
<field name="account_asset_id" nolabel="1" invisible="not type" readonly="state != 'draft'"/>
<div>
<label for="account_depreciation_id" invisible="type != 'purchase'"/>
<label for="account_depreciation_id" string="Recognition Income Account"
invisible="type != 'sale'"/>
</div>
<field name="account_depreciation_id" nolabel="1" readonly="state != 'draft'"/>
<div>
<label for="account_depreciation_expense_id" invisible="type != 'purchase'"/>
<label for="account_depreciation_expense_id" string="Recognition Account"
invisible="type != 'sale'"/>
</div>
<field name="account_depreciation_expense_id" nolabel="1" readonly="state != 'draft'"/>
<field name="account_analytic_id" readonly="state != 'draft'"/>
</group>
<group string="Periodicity">
<field name="method_time" string="Time Method Based On" widget="radio"
invisible="type != 'purchase'" readonly="state != 'draft'"/>
<field name="method_number" string="Number of Entries"
invisible="method_time != 'number' and not type"
required="method_time in 'number'" readonly="state != 'draft'"/>
<label for="method_period" string="One Entry Every"/>
<div>
<field name="method_period" nolabel="1" invisible="not type" class="oe_inline" readonly="state != 'draft'"/>
months
</div>
<field name="method_end"
required="method_time in 'end'"
invisible="method_time != 'end'" readonly="state != 'draft'"/>
</group>
<group string="Additional Options">
<field name="open_asset" readonly="state != 'draft'"/>
<field name="group_entries" readonly="state != 'draft'"/>
</group>
<group invisible="type in 'sale'" string="Depreciation Method">
<field name="method" readonly="state != 'draft'"/>
<field name="method_progress_factor"
invisible="method in 'linear'"
required="method in 'degressive'" widget="percentage" readonly="state != 'draft'"/>
<field name="prorata"
invisible="method in 'end'" readonly="state != 'draft'"/>
</group>
</group>
</page>
<page string="Depreciation Board" invisible="not depreciation_line_ids">
<field name="depreciation_line_ids" mode="list" <field name="depreciation_line_ids" mode="list"
readonly="state not in ['draft', 'open']" readonly="state not in ['draft', 'open']"
options="{'reload_whole_on_button': true}"> options="{'reload_whole_on_button': true}">
<list string="Depreciation Lines" decoration-info="(move_check == False)" create="0" editable="top"> <list string="Depreciation Lines" decoration-info="(move_check == False)" create="0"
editable="top">
<field name="depreciation_date" readonly="1"/> <field name="depreciation_date" readonly="1"/>
<field name="depreciated_value" readonly="1"/> <field name="depreciated_value" readonly="1"/>
<field name="amount" widget="monetary" string="Depreciation" readonly="1"/> <field name="amount" widget="monetary" string="Depreciation" readonly="1"/>
@ -92,42 +158,13 @@
</form> </form>
</field> </field>
</page> </page>
<page string="Depreciation Information">
<group>
<field name="method" widget="radio"
invisible="type in 'sale'" readonly="state != 'draft'"/>
<field name="method_progress_factor"
invisible="method in 'linear'"
readonly="method in 'degressive' and state != 'draft'"/>
<field name="method_time"
readonly="state != 'draft'"
string="Time Method Based On" widget="radio"
invisible="type != 'purchase'"/>
<field name="prorata"
readonly="state != 'draft'"
invisible="method_time in 'end'"/>
</group>
<group>
<field name="method_number"
readonly="state != 'draft'"
invisible="method_time in 'end'"
required="method_time in 'number'"
/>
<field name="method_period" readonly="state != 'draft'"/>
<field name="method_end"
readonly="state != 'draft'"
required="method_time in 'end'"
invisible="method_time in 'number'"
/>
</group>
</page>
</notebook> </notebook>
</sheet> </sheet>
<chatter/> <chatter/>
</form> </form>
</field> </field>
</record> </record>
<!--Asset Kanban View--> <!--Asset Kanban View-->
<record model="ir.ui.view" id="account_asset_asset_view_kanban"> <record model="ir.ui.view" id="account_asset_asset_view_kanban">
<field name="name">account.asset.asset.view.kanban</field> <field name="name">account.asset.asset.view.kanban</field>
<field name="model">account.asset.asset</field> <field name="model">account.asset.asset</field>
@ -142,19 +179,28 @@
<div t-attf-class="oe_kanban_global_click"> <div t-attf-class="oe_kanban_global_click">
<div class="row mb4"> <div class="row mb4">
<div class="col-xs-6"> <div class="col-xs-6">
<strong><span><t t-esc="record.name.value"/></span></strong> <strong>
<span>
<t t-esc="record.name.value"/>
</span>
</strong>
</div> </div>
<div class="col-xs-6 pull-right text-right"> <div class="col-xs-6 pull-right text-right">
<strong><t t-esc="record.date.value"/></strong> <strong>
<t t-esc="record.date.value"/>
</strong>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-6 text-muted"> <div class="col-xs-6 text-muted">
<span><t t-esc="record.category_id.value"/></span> <span>
<t t-esc="record.category_id.value"/>
</span>
</div> </div>
<div class="col-xs-6"> <div class="col-xs-6">
<span class="pull-right text-right"> <span class="pull-right text-right">
<field name="state" widget="label_selection" options="{'classes': {'draft': 'primary', 'open': 'success', 'close': 'default'}}"/> <field name="state" widget="label_selection"
options="{'classes': {'draft': 'primary', 'open': 'success', 'close': 'default'}}"/>
</span> </span>
</div> </div>
</div> </div>
@ -164,7 +210,7 @@
</kanban> </kanban>
</field> </field>
</record> </record>
<!--Asset Tree View--> <!--Asset Tree View-->
<record model="ir.ui.view" id="account_asset_asset_view_tree"> <record model="ir.ui.view" id="account_asset_asset_view_tree">
<field name="name">account.asset.asset.view.tree</field> <field name="name">account.asset.asset.view.tree</field>
<field name="model">account.asset.asset</field> <field name="model">account.asset.asset</field>
@ -182,7 +228,7 @@
</list> </list>
</field> </field>
</record> </record>
<!--Asset Search View--> <!--Asset Search View-->
<record id="account_asset_asset_view_search" model="ir.ui.view"> <record id="account_asset_asset_view_search" model="ir.ui.view">
<field name="name">account.asset.asset.view.search</field> <field name="name">account.asset.asset.view.search</field>
<field name="model">account.asset.asset</field> <field name="model">account.asset.asset</field>
@ -190,18 +236,19 @@
<search string="Asset Account"> <search string="Asset Account">
<field name="name" string="Asset"/> <field name="name" string="Asset"/>
<field name="date"/> <field name="date"/>
<filter name="state" string="Current" domain="[('state','in', ('draft','open'))]" help="Assets in draft and open states"/> <filter name="state" string="Current" domain="[('state','in', ('draft','open'))]"
help="Assets in draft and open states"/>
<filter name="state" string="Closed" domain="[('state','=', 'close')]" help="Assets in closed state"/> <filter name="state" string="Closed" domain="[('state','=', 'close')]" help="Assets in closed state"/>
<field name="category_id"/> <field name="category_id"/>
<field name="partner_id" filter_domain="[('partner_id','child_of',self)]"/> <field name="partner_id" filter_domain="[('partner_id','child_of',self)]"/>
<group> <group>
<filter name="date" string="Month" domain="[]" context="{'group_by':'date'}"/> <filter name="date" string="Month" domain="[]" context="{'group_by':'date'}"/>
<filter name="category_id" string="Category" domain="[]" context="{'group_by':'category_id'}"/> <filter name="category_id" string="Category" domain="[]" context="{'group_by':'category_id'}"/>
</group> </group>
</search> </search>
</field> </field>
</record> </record>
<!--Asset Action--> <!--Asset Action-->
<record model="ir.actions.act_window" id="action_account_asset_asset_form"> <record model="ir.actions.act_window" id="action_account_asset_asset_form">
<field name="name">Assets</field> <field name="name">Assets</field>
<field name="res_model">account.asset.asset</field> <field name="res_model">account.asset.asset</field>
@ -209,4 +256,23 @@
<field name="view_id" ref="account_asset_asset_view_tree"/> <field name="view_id" ref="account_asset_asset_view_tree"/>
<field name="domain">[('category_id.type', '=', 'purchase')]</field> <field name="domain">[('category_id.type', '=', 'purchase')]</field>
</record> </record>
<!--Asset MenuItem-->
<menuitem parent="account.menu_finance_entries"
id="management_menu"
name="Management"
sequence="101" groups="account.group_account_user"/>
<menuitem parent="base_accounting_kit.management_menu"
id="menu_action_account_asset_asset_form"
action="action_account_asset_asset_form"
sequence="101" groups="account.group_account_user"/>
<!-- <menuitem parent="base_accounting_kit.management_menu"-->
<!-- id="menu_act_budget_view"-->
<!-- name="Budgets"-->
<!-- action="base_account_budget.act_budget_view" sequence="60"-->
<!-- groups="account.group_account_user"/>-->
<!-- Configuration -->
<menuitem id="menu_finance_config_assets"
name="Assets and Revenues"
parent="account.menu_finance_configuration"
sequence="25"/>
</odoo> </odoo>

9
base_accounting_kit/views/account_asset_category_views.xml

@ -62,10 +62,10 @@
<field name="group_entries"/> <field name="group_entries"/>
</group> </group>
<group invisible="type in 'sale'" string="Depreciation Method"> <group invisible="type in 'sale'" string="Depreciation Method">
<field name="method" widget="radio"/> <field name="method"/>
<field name="method_progress_factor" <field name="method_progress_factor"
invisible="method in 'linear'" invisible="method in 'linear'"
required="method in 'degressive'"/> required="method in 'degressive'" widget="percentage"/>
<field name="prorata" <field name="prorata"
invisible="method in 'end'"/> invisible="method in 'end'"/>
</group> </group>
@ -138,4 +138,9 @@
<field name="view_mode">list,kanban,form</field> <field name="view_mode">list,kanban,form</field>
<field name="context">{'default_type': 'purchase'}</field> <field name="context">{'default_type': 'purchase'}</field>
</record> </record>
<!-- Asset Category MenuItem -->
<menuitem parent="account.account_account_menu"
id="menu_action_account_asset_asset_list_normal_purchase"
action="action_account_asset_asset_list_normal_purchase"
sequence="6"/>
</odoo> </odoo>

164
base_accounting_kit/views/account_bank_statement_line_views.xml

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<odoo> <odoo>
<!-- Account Bank Statement Line Search View--> <!-- Account Bank Statement Line Search View-->
<record id="account_bank_statement_line_view_search" model="ir.ui.view"> <record id="account_bank_statement_line_view_search" model="ir.ui.view">
<field name="name">account.bank.statement.line.view.search</field> <field name="name">account.bank.statement.line.view.search</field>
<field name="model">account.bank.statement.line</field> <field name="model">account.bank.statement.line</field>
@ -40,93 +40,95 @@
</record> </record>
<!-- Kanban view on statement line injected inside the form (view_bank_reconcile_widget) --> <!-- Kanban view on statement line injected inside the form (view_bank_reconcile_widget) -->
<record id="account_bank_statement_line_view_kanban" model="ir.ui.view"> <record id="account_bank_statement_line_view_kanban" model="ir.ui.view">
<field name="name">account.bank.statement.line.view.kanban</field> <field name="name">account.bank.statement.line.view.kanban</field>
<field name="model">account.bank.statement.line</field> <field name="model">account.bank.statement.line</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<kanban js_class="custom_kanban" <kanban js_class="custom_kanban"
on_create="base_accounting_kit.action_bank_statement_line_form_bank_reconcile_widget"> on_create="base_accounting_kit.action_bank_statement_line_form_bank_reconcile_widget">
<field name="id" invisible="1"/> <field name="id" invisible="1"/>
<field name="state" invisible="1"/> <field name="state" invisible="1"/>
<field name="statement_complete" invisible="1"/> <field name="statement_complete" invisible="1"/>
<field name="statement_valid" invisible="1"/> <field name="statement_valid" invisible="1"/>
<field name="sequence" invisible="1"/> <field name="sequence" invisible="1"/>
<field name="company_id" invisible="1"/> <field name="company_id" invisible="1"/>
<field name="journal_id" invisible="1"/> <field name="journal_id" invisible="1"/>
<field name="statement_id" invisible="1"/> <field name="statement_id" invisible="1"/>
<field name="is_reconciled" invisible="1"/> <field name="is_reconciled" invisible="1"/>
<field name="to_check" invisible="1"/> <field name="to_check" invisible="1"/>
<field name="partner_bank_id" invisible="1"/> <field name="partner_bank_id" invisible="1"/>
<field name="currency_id" invisible="1"/> <field name="currency_id" invisible="1"/>
<field name="foreign_currency_id" invisible="1"/> <field name="foreign_currency_id" invisible="1"/>
<field name="statement_line_id" invisible="1"/> <field name="statement_line_id" invisible="1"/>
<field name="lines_widget_json" invisible="1"/> <field name="lines_widget_json" invisible="1"/>
<templates> <templates>
<t t-name="card"> <t t-name="card">
<div t-attf-class="oe_kanban_card oe_kanban_global_click o_bank_reconcile_st_line_kanban_card" <div t-attf-class="oe_kanban_card oe_kanban_global_click o_bank_reconcile_st_line_kanban_card"
t-att-data-oe-id="record.id"> t-att-data-oe-id="record.id">
<t t-set="text_amount_class" t-value="record.amount &lt; 0.0 and 'text-danger'"/> <t t-set="text_amount_class" t-value="record.amount &lt; 0.0 and 'text-danger'"/>
<!-- Statement Button --> <!-- Statement Button -->
<div t-if="!record.statement_complete.raw_value" class="statement_button text-center mb-2"> <div t-if="!record.statement_complete.raw_value" class="statement_button text-center mb-2">
<a role="button" <a role="button"
class="btn btn-secondary btn-sm statement" class="btn btn-secondary btn-sm statement"
tabindex="-1" type="action" tabindex="-1" type="action"
name="%(base_accounting_kit.action_bank_statement_create_form_bank_reconcile_widget)d"> name="%(base_accounting_kit.action_bank_statement_create_form_bank_reconcile_widget)d">
Statement Statement
</a> </a>
</div> </div>
<!-- Main Content --> <!-- Main Content -->
<div class="container-fluid p-0"> <div class="container-fluid p-0">
<!-- First Row --> <!-- First Row -->
<div class="row g-0 align-items-center mb-1"> <div class="row g-0 align-items-center mb-1">
<div class="col-auto pe-2"> <div class="col-auto pe-2">
<strong class="bold_date"> <strong class="bold_date">
<field name="date" class="d-inline"/> <field name="date" class="d-inline"/>
</strong> </strong>
</div> </div>
<div class="col text-truncate"> <div class="col text-truncate">
<em> <em>
<field name="partner_id" class="d-inline"/> <field name="partner_id" class="d-inline"/>
</em> </em>
</div> </div>
<div t-if="record.statement_id.raw_value" class="col-auto ms-auto"> <div t-if="record.statement_id.raw_value" class="col-auto ms-auto">
<div t-attf-class="text-truncate {{!(record.statement_complete.raw_value and record.statement_valid.raw_value) and 'text-danger' or ''}}"> <div t-attf-class="text-truncate {{!(record.statement_complete.raw_value and record.statement_valid.raw_value) and 'text-danger' or ''}}">
<field name="statement_id" class="d-inline"/> <field name="statement_id" class="d-inline"/>
</div>
</div>
<div class="col-auto">
<strong t-att-class="text_amount_class">
<field name="amount" class="d-inline"/>
</strong>
</div> </div>
</div> </div>
<div class="col-auto">
<strong t-att-class="text_amount_class">
<field name="amount" class="d-inline"/>
</strong>
</div>
</div>
<!-- Second Row --> <!-- Second Row -->
<div class="row g-0 align-items-center"> <div class="row g-0 align-items-center">
<div class="col text-truncate pe-2"> <div class="col text-truncate pe-2">
<field name="payment_ref" class="d-inline"/> <field name="payment_ref" class="d-inline"/>
</div> </div>
<div class="col-auto"> <div class="col-auto">
<div class="o_field_many2manytags o_field_widget d-flex flex-wrap gap-1"> <div class="o_field_many2manytags o_field_widget d-flex flex-wrap gap-1">
<span t-if="record.to_check.raw_value" class="badge text-bg-warning fw-normal to_check"> <span t-if="record.to_check.raw_value"
To Check class="badge text-bg-warning fw-normal to_check">
</span> To Check
<div t-if="record.is_reconciled.raw_value" class="badge text-bg-success fw-normal"> </span>
<i class="fa fa-check me-1"></i> <div t-if="record.is_reconciled.raw_value"
Matched class="badge text-bg-success fw-normal">
<i class="fa fa-check me-1"></i>
Matched
</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </t>
</t> </templates>
</templates> </kanban>
</kanban> </field>
</field> </record>
</record> <!-- Account Bank Statement Line Tree View -->
<!-- Account Bank Statement Line Tree View -->
<record id="account_bank_statement_line_view_tree" model="ir.ui.view"> <record id="account_bank_statement_line_view_tree" model="ir.ui.view">
<field name="name">account.bank.statement.line.view.tree</field> <field name="name">account.bank.statement.line.view.tree</field>
<field name="model">account.bank.statement.line</field> <field name="model">account.bank.statement.line</field>
@ -152,7 +154,7 @@
</list> </list>
</field> </field>
</record> </record>
<!-- Account Bank Statement Line Form View --> <!-- Account Bank Statement Line Form View -->
<record id="account_bank_statement_line_view_form" <record id="account_bank_statement_line_view_form"
model="ir.ui.view"> model="ir.ui.view">
<field name="name">account.bank.statement.line.view.form</field> <field name="name">account.bank.statement.line.view.form</field>
@ -194,7 +196,7 @@
</form> </form>
</field> </field>
</record> </record>
<!-- Action Account Statement Line --> <!-- Action Account Statement Line -->
<record id="action_bank_statement_line_form_bank_reconcile_widget" <record id="action_bank_statement_line_form_bank_reconcile_widget"
model="ir.actions.act_window"> model="ir.actions.act_window">
<field name="name">Add a Transaction</field> <field name="name">Add a Transaction</field>
@ -204,7 +206,7 @@
ref="account_bank_statement_line_view_form"/> ref="account_bank_statement_line_view_form"/>
<field name="target">new</field> <field name="target">new</field>
</record> </record>
<!--Account Bank Statement Line Form View--> <!--Account Bank Statement Line Form View-->
<record id="view_bank_reconcile_widget_form" model="ir.ui.view"> <record id="view_bank_reconcile_widget_form" model="ir.ui.view">
<field name="name">account.bank.statement.line.view.form</field> <field name="name">account.bank.statement.line.view.form</field>
<field name="model">account.bank.statement.line</field> <field name="model">account.bank.statement.line</field>

2
base_accounting_kit/views/account_recurring_payments_view.xml

@ -89,7 +89,7 @@
</record> </record>
<!--Action for Recurring Templates MenuItem--> <!--Action for Recurring Templates MenuItem-->
<menuitem id="account_recurring_payments_child1" <menuitem id="account_recurring_payments_child1"
name="Recurring Templates" groups="base_accounting_kit.group_account_user" name="Recurring Templates" groups="account.group_account_user"
action="action_account_recurring_payments_view" action="action_account_recurring_payments_view"
parent="account.root_payment_menu"/> parent="account.root_payment_menu"/>
</odoo> </odoo>

2
base_accounting_kit/views/followup_report.xml

@ -116,5 +116,5 @@
<menuitem id="customer_statements_menu" name="Follow-up Reports" <menuitem id="customer_statements_menu" name="Follow-up Reports"
parent="account.menu_finance_receivables" parent="account.menu_finance_receivables"
action="action_view_list_customer_statements" sequence="20" action="action_view_list_customer_statements" sequence="20"
groups="base_accounting_kit.group_account_user"/> groups="account.group_account_user"/>
</odoo> </odoo>

2
base_accounting_kit/views/product_template_views.xml

@ -10,7 +10,7 @@
<field name="asset_category_id" <field name="asset_category_id"
domain="[('type', '=', 'purchase')]" domain="[('type', '=', 'purchase')]"
context="{'default_type': 'purchase'}" context="{'default_type': 'purchase'}"
groups="base_accounting_kit.group_account_user"/> groups="account.group_account_user"/>
</field> </field>
</field> </field>
</record> </record>

2
base_accounting_kit/views/product_views.xml

@ -10,7 +10,7 @@
<field name="asset_category_id" <field name="asset_category_id"
domain="[('type', '=', 'purchase')]" domain="[('type', '=', 'purchase')]"
context="{'default_type': 'purchase'}" context="{'default_type': 'purchase'}"
groups="base_accounting_kit.group_account_user"/> groups="account.group_account_user"/>
</field> </field>
</field> </field>
</record> </record>

18
base_accounting_kit/views/res_config_settings_views.xml

@ -1,5 +1,5 @@
<odoo> <odoo>
<!--Res Config Settings Form View--> <!--Res Config Settings Form View-->
<record id="res_config_settings_view_form_base_accounting_kit" model="ir.ui.view"> <record id="res_config_settings_view_form_base_accounting_kit" model="ir.ui.view">
<field name="name">res.config.view.inherited.base.accounting.kit</field> <field name="name">res.config.view.inherited.base.accounting.kit</field>
<field name="model">res.config.settings</field> <field name="model">res.config.settings</field>
@ -18,6 +18,22 @@
<field name="use_anglo_saxon_accounting"/> <field name="use_anglo_saxon_accounting"/>
</setting> </setting>
</xpath> </xpath>
<setting id="fiscalyear" position="replace">
<setting id="fiscalyear">
<div class="o_setting_right_pane">
<separator string="Fiscal Year"/>
<div class="content-group">
<div class="row mt16">
<label for="fiscalyear_last_month" string="Last Day"
class="col-lg-3 o_light_label"/>
<field name="fiscalyear_last_month" style="width: 100px; margin-right: 8px;"/>
<field name="fiscalyear_last_day" class="oe_inline"/>
</div>
</div>
</div>
</setting>
</setting>
</field> </field>
</record> </record>
</odoo> </odoo>

2
base_accounting_kit/wizard/account_print_journal_views.xml

@ -28,5 +28,5 @@
sequence="9" sequence="9"
action="action_account_print_journal_menu" action="action_account_print_journal_menu"
parent="base_accounting_kit.account_reports_audit" parent="base_accounting_kit.account_reports_audit"
groups="base_accounting_kit.group_account_chief,base_accounting_kit.group_account_user"/> groups="base_accounting_kit.group_account_chief,account.group_account_user"/>
</odoo> </odoo>

2
base_accounting_kit/wizard/account_report_general_ledger_views.xml

@ -32,5 +32,5 @@
sequence="3" sequence="3"
parent="base_accounting_kit.account_reports_audit" parent="base_accounting_kit.account_reports_audit"
action="action_account_general_ledger_menu" action="action_account_general_ledger_menu"
groups="base_accounting_kit.group_account_user,base_accounting_kit.group_account_chief"/> groups="account.group_account_user,base_accounting_kit.group_account_chief"/>
</odoo> </odoo>

2
base_accounting_kit/wizard/kit_account_tax_report_views.xml

@ -26,5 +26,5 @@
sequence="8" sequence="8"
action="action_account_tax_report" action="action_account_tax_report"
parent="base_accounting_kit.account_reports_audit" parent="base_accounting_kit.account_reports_audit"
groups="base_accounting_kit.group_account_chief,base_accounting_kit.group_account_user"/> groups="base_accounting_kit.group_account_chief,account.group_account_user"/>
</odoo> </odoo>

Loading…
Cancel
Save