mirror of
https://github.com/bringout/oca-ocb-l10n_americas.git
synced 2026-04-27 00:12:01 +02:00
19.0 vanilla
This commit is contained in:
parent
89c6e82fe7
commit
1b82c20a58
572 changed files with 43570 additions and 53303 deletions
2
odoo-bringout-oca-ocb-l10n_ve/l10n_ve/models/__init__.py
Normal file
2
odoo-bringout-oca-ocb-l10n_ve/l10n_ve/models/__init__.py
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
from . import template_ve
|
||||
43
odoo-bringout-oca-ocb-l10n_ve/l10n_ve/models/template_ve.py
Normal file
43
odoo-bringout-oca-ocb-l10n_ve/l10n_ve/models/template_ve.py
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
# 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('ve')
|
||||
def _get_ve_template_data(self):
|
||||
return {
|
||||
'code_digits': '7',
|
||||
'property_account_receivable_id': 'account_activa_account_1122001',
|
||||
'property_account_payable_id': 'account_activa_account_2122001',
|
||||
}
|
||||
|
||||
@template('ve', 'res.company')
|
||||
def _get_ve_res_company(self):
|
||||
return {
|
||||
self.env.company.id: {
|
||||
'account_fiscal_country_id': 'base.ve',
|
||||
'bank_account_code_prefix': '1113',
|
||||
'cash_account_code_prefix': '1111',
|
||||
'transfer_account_code_prefix': '1129003',
|
||||
'account_default_pos_receivable_account_id': 'account_activa_account_1122003',
|
||||
'income_currency_exchange_account_id': 'account_activa_account_9212003',
|
||||
'expense_currency_exchange_account_id': 'account_activa_account_9113006',
|
||||
'account_sale_tax_id': 'tax3sale',
|
||||
'account_purchase_tax_id': 'tax3purchase',
|
||||
'expense_account_id': 'account_activa_account_7151001',
|
||||
'income_account_id': 'account_activa_account_5111001',
|
||||
'account_stock_journal_id': 'inventory_valuation',
|
||||
'account_stock_valuation_id': 'account_activa_account_1131002',
|
||||
},
|
||||
}
|
||||
|
||||
@template('ve', 'account.account')
|
||||
def _get_ve_account_account(self):
|
||||
return {
|
||||
'account_activa_account_1131002': {
|
||||
'account_stock_variation_id': 'account_activa_account_6121000',
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue