Debian Codegraph @

addons/l10n_tz_account/models/template_tz.py

raw
1 # Part of Odoo. See LICENSE file for full copyright and licensing details.
2 from odoo import models
3 from odoo.addons.account.models.chart_template import template
4
5
6 class AccountChartTemplate(models.AbstractModel):
7 _inherit = 'account.chart.template'
8
9 @template('tz')
10 def _get_tz_template_data(self):
11 return {
12 'code_digits': '4',
13 'property_account_receivable_id': 'tz_190',
14 'property_account_payable_id': 'tz_311',
15 }
16
17 @template('tz', 'res.company')
18 def _get_tz_res_company(self):
19 return {
20 self.env.company.id: {
21 'account_fiscal_country_id': 'base.tz',
22 'cash_account_code_prefix': '101',
23 'bank_account_code_prefix': '103',
24 'transfer_account_code_prefix': '105',
25 'account_default_pos_receivable_account_id': 'tz_155',
26 'income_currency_exchange_account_id': 'tz_671',
27 'expense_currency_exchange_account_id': 'tz_672',
28 'deferred_revenue_account_id': 'tz_181',
29 'deferred_expense_account_id': 'tz_342',
30 'account_sale_tax_id': 'VAT_S_TAXABLE_18',
31 'account_purchase_tax_id': 'VAT_P_TAXABLE_18',
32 'expense_account_id': 'tz_510',
33 'income_account_id': 'tz_400',
34 'account_stock_journal_id': 'inventory_valuation',
35 'account_stock_valuation_id': 'tz_172',
36 },
37 }
38
39 @template('tz', 'account.account')
40 def _get_tz_account_account(self):
41 return {
42 'tz_172': {
43 'account_stock_variation_id': 'tz_521',
44 },
45 }