mirror of
https://github.com/bringout/oca-ocb-l10n_europe.git
synced 2026-04-26 22:02:04 +02:00
19.0 vanilla
This commit is contained in:
parent
ff721d030e
commit
7721452493
1826 changed files with 124775 additions and 274114 deletions
47
odoo-bringout-oca-ocb-l10n_pl/l10n_pl/models/template_pl.py
Normal file
47
odoo-bringout-oca-ocb-l10n_pl/l10n_pl/models/template_pl.py
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
# 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('pl')
|
||||
def _get_pl_template_data(self):
|
||||
return {
|
||||
'property_account_receivable_id': 'chart20000100',
|
||||
'property_account_payable_id': 'chart21000100',
|
||||
'code_digits': '8',
|
||||
'use_storno_accounting': True,
|
||||
}
|
||||
|
||||
@template('pl', 'res.company')
|
||||
def _get_pl_res_company(self):
|
||||
return {
|
||||
self.env.company.id: {
|
||||
'account_fiscal_country_id': 'base.pl',
|
||||
'bank_account_code_prefix': '11.000.00',
|
||||
'cash_account_code_prefix': '12.000.00',
|
||||
'transfer_account_code_prefix': '11.090.00',
|
||||
'account_default_pos_receivable_account_id': 'chart20000200',
|
||||
'income_currency_exchange_account_id': 'chart75000600',
|
||||
'expense_currency_exchange_account_id': 'chart75010400',
|
||||
'account_journal_early_pay_discount_loss_account_id': 'chart75010900',
|
||||
'account_journal_early_pay_discount_gain_account_id': 'chart75000900',
|
||||
'default_cash_difference_income_account_id': 'chart75000700',
|
||||
'default_cash_difference_expense_account_id': 'chart75010500',
|
||||
'expense_account_id': 'chart70010100',
|
||||
'income_account_id': 'chart73000100',
|
||||
'account_stock_journal_id': 'inventory_valuation',
|
||||
'account_stock_valuation_id': 'chart33000400',
|
||||
},
|
||||
}
|
||||
|
||||
@template('pl', 'account.account')
|
||||
def _get_pl_account_account(self):
|
||||
return {
|
||||
'chart33000400': {
|
||||
'account_stock_expense_id': 'chart73010100',
|
||||
'account_stock_variation_id': 'chart74010100',
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue