| 1 |
|
| 2 |
|
| 3 |
from odoo import models |
| 4 |
from odoo.addons.account.models.chart_template import template |
| 5 |
|
| 6 |
|
| 7 |
class AccountChartTemplate(models.AbstractModel): |
| 8 |
_inherit = "account.chart.template" |
| 9 |
|
| 10 |
@template('zm') |
| 11 |
def _get_zm_template_data(self): |
| 12 |
return { |
| 13 |
'code_digits': 7, |
| 14 |
'property_account_receivable_id': 'zm_account_8000000', |
| 15 |
'property_account_payable_id': 'zm_account_9000000', |
| 16 |
} |
| 17 |
|
| 18 |
@template('zm', 'res.company') |
| 19 |
def _get_zm_res_company(self): |
| 20 |
return { |
| 21 |
self.env.company.id: { |
| 22 |
'anglo_saxon_accounting': True, |
| 23 |
'account_fiscal_country_id': 'base.zm', |
| 24 |
'bank_account_code_prefix': '840000', |
| 25 |
'cash_account_code_prefix': '840000', |
| 26 |
'transfer_account_code_prefix': '840000', |
| 27 |
'income_currency_exchange_account_id': 'zm_account_4210000', |
| 28 |
'expense_currency_exchange_account_id': 'zm_account_4210000', |
| 29 |
'account_default_pos_receivable_account_id': 'zm_account_8100000', |
| 30 |
'account_journal_early_pay_discount_loss_account_id': 'zm_account_3550000', |
| 31 |
'account_journal_early_pay_discount_gain_account_id': 'zm_account_2700000', |
| 32 |
'deferred_expense_account_id': 'zm_account_8900000', |
| 33 |
'deferred_revenue_account_id': 'zm_account_9900000', |
| 34 |
'account_sale_tax_id': 'zm_tax_sale_16', |
| 35 |
'account_purchase_tax_id': 'zm_tax_purchase_16', |
| 36 |
'income_account_id': 'zm_account_1000000', |
| 37 |
'expense_account_id': 'zm_account_3800000', |
| 38 |
} |
| 39 |
} |