| 1 |
# Part of Odoo. See LICENSE file for full copyright and licensing details. |
| 2 |
from odoo import models |
| 3 |
|
| 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("lb") |
| 11 |
def _get_lb_template_data(self): |
| 12 |
return { |
| 13 |
"property_account_receivable_id": "lb_account_413004", |
| 14 |
"property_account_payable_id": "lb_account_403501", |
| 15 |
"property_account_expense_id": "lb_account_601101", |
| 16 |
"property_account_income_id": "lb_account_701000", |
| 17 |
"property_stock_valuation_account_id": "lb_account_370001", |
| 18 |
"property_stock_account_production_cost_id": "lb_account_370004", |
| 19 |
"tax_payable_account_id": "lb_account_442001", |
| 20 |
"tax_receivable_account_id": "lb_account_442201", |
| 21 |
"code_digits": "6", |
| 22 |
} |
| 23 |
|
| 24 |
@template("lb", "res.company") |
| 25 |
def _get_leb_res_company(self): |
| 26 |
return { |
| 27 |
self.env.company.id: { |
| 28 |
"account_fiscal_country_id": "base.lb", |
| 29 |
"bank_account_code_prefix": "5121", |
| 30 |
"cash_account_code_prefix": "5300", |
| 31 |
"transfer_account_code_prefix": "5400", |
| 32 |
"account_default_pos_receivable_account_id": "lb_account_413003", |
| 33 |
"income_currency_exchange_account_id": "lb_account_775100", |
| 34 |
"expense_currency_exchange_account_id": "lb_account_675100", |
| 35 |
"account_journal_suspense_account_id": "lb_account_540002", |
| 36 |
"account_journal_early_pay_discount_loss_account_id": "lb_account_709001", |
| 37 |
"account_journal_early_pay_discount_gain_account_id": "lb_account_778001", |
| 38 |
"default_cash_difference_income_account_id": "lb_account_701000", |
| 39 |
"default_cash_difference_expense_account_id": "lb_account_601101", |
| 40 |
"deferred_expense_account_id": "lb_account_472001", |
| 41 |
"deferred_revenue_account_id": "lb_account_473001", |
| 42 |
'expense_account_id': 'lb_account_601101', |
| 43 |
'income_account_id': 'lb_account_701000', |
| 44 |
}, |
| 45 |
} |