19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:28 +01:00
parent ff721d030e
commit 7721452493
1826 changed files with 124775 additions and 274114 deletions

View file

@ -0,0 +1,4 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import template_sk
from . import account_move
from . import res_company

View file

@ -0,0 +1,12 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, models
class AccountMove(models.Model):
_inherit = 'account.move'
@api.depends('country_code')
def _compute_show_taxable_supply_date(self):
super()._compute_show_taxable_supply_date()
for move in self.filtered(lambda m: m.country_code == 'SK'):
move.show_taxable_supply_date = True

View file

@ -0,0 +1,18 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class ResCompany(models.Model):
_inherit = "res.company"
trade_registry = fields.Char()
income_tax_id = fields.Char(string="Income Tax ID")
class BaseDocumentLayout(models.TransientModel):
_inherit = 'base.document.layout'
account_fiscal_country_id = fields.Many2one(related="company_id.account_fiscal_country_id")
company_registry = fields.Char(related='company_id.company_registry')
income_tax_id = fields.Char(related='company_id.income_tax_id')

View file

@ -0,0 +1,50 @@
# 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('sk')
def _get_sk_template_data(self):
return {
'code_digits': '6',
'use_storno_accounting': True,
'property_account_receivable_id': 'chart_sk_311000',
'property_account_payable_id': 'chart_sk_321000',
'property_stock_valuation_account_id': 'chart_sk_132000',
}
@template('sk', 'res.company')
def _get_sk_res_company(self):
return {
self.env.company.id: {
'account_fiscal_country_id': 'base.sk',
'bank_account_code_prefix': '221',
'cash_account_code_prefix': '211',
'transfer_account_code_prefix': '261',
'income_currency_exchange_account_id': 'chart_sk_663000',
'expense_currency_exchange_account_id': 'chart_sk_563000',
'account_journal_suspense_account_id': 'chart_sk_261000',
'account_journal_early_pay_discount_loss_account_id': 'chart_sk_546000',
'account_journal_early_pay_discount_gain_account_id': 'chart_sk_646000',
'default_cash_difference_income_account_id': 'chart_sk_668000',
'default_cash_difference_expense_account_id': 'chart_sk_568000',
'account_sale_tax_id': 'vy_tuz_23',
'account_purchase_tax_id': 'vs_tuz_23',
'expense_account_id': 'chart_sk_504000',
'income_account_id': 'chart_sk_604000',
'account_stock_journal_id': 'inventory_valuation',
'account_stock_valuation_id': 'chart_sk_112000',
},
}
@template('sk', 'account.account')
def _get_sk_account_account(self):
return {
'chart_sk_112000': {
'account_stock_expense_id': 'chart_sk_568000',
'account_stock_variation_id': 'chart_sk_501000',
},
}