Courtesy of Gustavo Valverde. PR #13787 Details: ------- - Easier implementation for most of the people - Minor customization to be fully compliant with local regulations - Standardized configuration to help other Odoo consultants and implementers - Use of the account types defined in account instead of creating new ones To comply with local and tax regulations: -The whole Charts of Accounts was changed -Most of the Journals has been preconfigured to comply with tax regulator -All the regulatory taxes were added and configured with group taxes To standardize the Dominican implementations: -An IFRS compatible CoA that does not need major changes for most companies -A well structured CoA with a codification logic. -Use of the Odoo original flow for creating tax compliant invoice sequences
19 lines
737 B
Python
19 lines
737 B
Python
# coding: utf-8
|
|
# Copyright 2016 iterativo (https://www.iterativo.do) <info@iterativo.do>
|
|
|
|
from openerp import models, api, _
|
|
|
|
|
|
class WizardMultiChartsAccounts(models.TransientModel):
|
|
_inherit = 'wizard.multi.charts.accounts'
|
|
|
|
@api.model
|
|
def _get_default_bank_account_ids(self):
|
|
if self.env.user.company_id.country_id and self.env.user.company_id.country_id.code.upper() == 'DO':
|
|
return [
|
|
{'acc_name': _('Cash'), 'account_type': 'cash'},
|
|
{'acc_name': _('Caja Chica'), 'account_type': 'cash'},
|
|
{'acc_name': _('Bank'), 'account_type': 'bank'}
|
|
]
|
|
return super(WizardMultiChartsAccounts, self)._get_default_bank_account_ids()
|