mirror of
https://github.com/bringout/oca-ocb-l10n_europe.git
synced 2026-04-27 16:02:01 +02:00
19.0 vanilla
This commit is contained in:
parent
ff721d030e
commit
7721452493
1826 changed files with 124775 additions and 274114 deletions
2
odoo-bringout-oca-ocb-l10n_ua/l10n_ua/models/__init__.py
Normal file
2
odoo-bringout-oca-ocb-l10n_ua/l10n_ua/models/__init__.py
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
from . import template_ua_psbo
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
from odoo import _, models
|
||||
from odoo.addons.account.models.chart_template import template
|
||||
|
||||
|
||||
class AccountChartTemplate(models.AbstractModel):
|
||||
_inherit = 'account.chart.template'
|
||||
|
||||
@template('ua_psbo')
|
||||
def _get_ua_psbo_template_data(self):
|
||||
return {
|
||||
'property_account_receivable_id': 'ua_psbp_361',
|
||||
'property_account_payable_id': 'ua_psbp_631',
|
||||
'property_stock_valuation_account_id': 'ua_psbp_281',
|
||||
'name': _('IFRS Chart of Accounts'),
|
||||
'code_digits': '6',
|
||||
'use_storno_accounting': True,
|
||||
'display_invoice_amount_total_words': True,
|
||||
}
|
||||
|
||||
@template('ua_psbo', 'res.company')
|
||||
def _get_ua_psbo_res_company(self):
|
||||
return {
|
||||
self.env.company.id: {
|
||||
'anglo_saxon_accounting': True,
|
||||
'account_fiscal_country_id': 'base.ua',
|
||||
'bank_account_code_prefix': '311',
|
||||
'cash_account_code_prefix': '301',
|
||||
'transfer_account_code_prefix': '333',
|
||||
'account_default_pos_receivable_account_id': 'ua_psbp_366',
|
||||
'income_currency_exchange_account_id': 'ua_psbp_711',
|
||||
'expense_currency_exchange_account_id': 'ua_psbp_942',
|
||||
'account_sale_tax_id': 'sale_tax_template_vat20_psbo',
|
||||
'account_purchase_tax_id': 'purchase_tax_template_vat20_psbo',
|
||||
'expense_account_id': 'ua_psbp_901',
|
||||
'income_account_id': 'ua_psbp_701',
|
||||
'account_stock_journal_id': 'inventory_valuation',
|
||||
'account_stock_valuation_id': 'ua_psbp_201',
|
||||
},
|
||||
}
|
||||
|
||||
@template('ua_psbo', 'account.account')
|
||||
def _get_ua_psbo_account_account(self):
|
||||
return {
|
||||
'ua_psbp_201': {
|
||||
'account_stock_expense_id': 'ua_psbp_808',
|
||||
'account_stock_variation_id': 'ua_psbp_801',
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue