[FIX] l10n_*: anglo saxon accounting

The anglo saxon accounting was set in the wrong field.

It should be set in the field 'anglo_saxon_accounting' on the company
and not 'use_anglo_saxon' on the configs.

task-3642826

closes odoo/odoo#149190

X-original-commit: 3160749a173b01e93f91dea72d1dcc5370ea44f7
Signed-off-by: William André (wan) <wan@odoo.com>
This commit is contained in:
Ruben Gomes (rugo)
2024-01-16 09:55:24 +00:00
parent 0ef9d5b272
commit 7c05beaa89
25 changed files with 24 additions and 25 deletions
+1 -1
View File
@@ -10,7 +10,6 @@ class AccountChartTemplate(models.AbstractModel):
def _get_au_template_data(self):
return {
'code_digits': '5',
'use_anglo_saxon': True,
'property_account_receivable_id': 'au_11200',
'property_stock_account_production_cost_id': 'au_11350',
'property_account_payable_id': 'au_21200',
@@ -27,6 +26,7 @@ class AccountChartTemplate(models.AbstractModel):
def _get_au_res_company(self):
return {
self.env.company.id: {
'anglo_saxon_accounting': True,
'account_fiscal_country_id': 'base.au',
'bank_account_code_prefix': '1111',
'cash_account_code_prefix': '1113',
+1 -1
View File
@@ -9,7 +9,6 @@ class AccountChartTemplate(models.AbstractModel):
@template('bo')
def _get_bo_template_data(self):
return {
'use_anglo_saxon': True,
'code_digits': '6',
'property_account_receivable_id': 'l10n_bo_1121',
'property_account_payable_id': 'l10n_bo_2121',
@@ -24,6 +23,7 @@ class AccountChartTemplate(models.AbstractModel):
def _get_bo_res_company(self):
return {
self.env.company.id: {
'anglo_saxon_accounting': True,
'account_fiscal_country_id': 'base.bo',
'bank_account_code_prefix': '11130',
'cash_account_code_prefix': '11110',
+1 -1
View File
@@ -16,7 +16,6 @@ class AccountChartTemplate(models.AbstractModel):
'property_stock_account_input_categ_id': 'l10n_ca_121130',
'property_stock_account_output_categ_id': 'l10n_ca_121140',
'property_stock_valuation_account_id': 'l10n_ca_121120',
'use_anglo_saxon': True,
}
@template('ca_2023', 'res.company')
@@ -36,6 +35,7 @@ class AccountChartTemplate(models.AbstractModel):
return {
self.env.company.id: {
'anglo_saxon_accounting': True,
'account_fiscal_country_id': 'base.ca',
'bank_account_code_prefix': '11131',
'cash_account_code_prefix': '11121',
+1 -1
View File
@@ -10,7 +10,6 @@ class AccountChartTemplate(models.AbstractModel):
def _get_cl_template_data(self):
return {
'code_digits': '6',
'use_anglo_saxon': True,
'property_account_receivable_id': 'account_110310',
'property_account_payable_id': 'account_210210',
'property_account_expense_categ_id': 'account_410235',
@@ -26,6 +25,7 @@ class AccountChartTemplate(models.AbstractModel):
def _get_cl_res_company(self):
return {
self.env.company.id: {
'anglo_saxon_accounting': True,
'account_fiscal_country_id': 'base.cl',
'bank_account_code_prefix': '1101',
'cash_account_code_prefix': '1101',
+1 -1
View File
@@ -15,7 +15,6 @@ class AccountChartTemplate(models.AbstractModel):
'property_account_income_categ_id': 'dk_coa_1010',
'property_tax_payable_account_id': 'dk_coa_7840',
'property_tax_receivable_account_id': 'dk_coa_6320',
'use_anglo_saxon': True,
'code_digits': '4',
}
@@ -23,6 +22,7 @@ class AccountChartTemplate(models.AbstractModel):
def _get_dk_res_company(self):
return {
self.env.company.id: {
'anglo_saxon_accounting': True,
'account_fiscal_country_id': 'base.dk',
'bank_account_code_prefix': '648',
'cash_account_code_prefix': '647',
+1 -1
View File
@@ -10,7 +10,6 @@ class AccountChartTemplate(models.AbstractModel):
def _get_do_template_data(self):
return {
'code_digits': '8',
'use_anglo_saxon': True,
'property_account_receivable_id': 'l10n_do_11030201',
'property_account_payable_id': 'l10n_do_21010200',
'property_account_income_categ_id': 'l10n_do_41010100',
@@ -24,6 +23,7 @@ class AccountChartTemplate(models.AbstractModel):
def _get_do_res_company(self):
return {
self.env.company.id: {
'anglo_saxon_accounting': True,
'account_fiscal_country_id': 'base.do',
'bank_account_code_prefix': '110102',
'cash_account_code_prefix': '110101',
+1 -1
View File
@@ -13,7 +13,6 @@ class AccountChartTemplate(models.AbstractModel):
'property_account_payable_id': 'l10n_hk_2211',
'property_account_income_categ_id': 'l10n_hk_41',
'property_account_expense_categ_id': 'l10n_hk_51',
'use_anglo_saxon': True,
'code_digits': '6',
}
@@ -21,6 +20,7 @@ class AccountChartTemplate(models.AbstractModel):
def _get_hk_res_company(self):
return {
self.env.company.id: {
'anglo_saxon_accounting': True,
'account_fiscal_country_id': 'base.hk',
'bank_account_code_prefix': '1200',
'cash_account_code_prefix': '1210',
+1 -1
View File
@@ -16,7 +16,6 @@ class AccountChartTemplate(models.AbstractModel):
'property_stock_account_input_categ_id': 'l10n_id_29000000',
'property_stock_account_output_categ_id': 'l10n_id_29000000',
'property_stock_valuation_account_id': 'l10n_id_11300180',
'use_anglo_saxon': 1,
'code_digits': '8',
}
@@ -24,6 +23,7 @@ class AccountChartTemplate(models.AbstractModel):
def _get_id_res_company(self):
return {
self.env.company.id: {
'anglo_saxon_accounting': True,
'account_fiscal_country_id': 'base.id',
'bank_account_code_prefix': '1112',
'cash_account_code_prefix': '1111',
-1
View File
@@ -17,7 +17,6 @@ class AccountChartTemplate(models.AbstractModel):
'property_advance_tax_payment_account_id': 'l10n_ie_account_2132',
'property_tax_payable_account_id': 'l10n_ie_account_3804',
'property_tax_receivable_account_id': 'l10n_ie_account_2131',
'use_anglo_saxon': False,
'code_digits': '6',
}
+1 -1
View File
@@ -16,7 +16,6 @@ class AccountChartTemplate(models.AbstractModel):
'property_stock_valuation_account_id': 'ke1001',
'property_stock_account_output_categ_id': 'ke100120',
'property_stock_account_input_categ_id': 'ke100110',
'use_anglo_saxon': True,
'code_digits': '6',
}
@@ -24,6 +23,7 @@ class AccountChartTemplate(models.AbstractModel):
def _get_ke_res_company(self):
return {
self.env.company.id: {
'anglo_saxon_accounting': True,
'account_fiscal_country_id': 'base.ke',
'bank_account_code_prefix': '12000',
'cash_account_code_prefix': '12500',
+1 -1
View File
@@ -17,13 +17,13 @@ class AccountChartTemplate(models.AbstractModel):
'property_stock_account_output_categ_id': 'account_account_template_2045',
'property_stock_valuation_account_id': 'account_account_template_2040',
'code_digits': '6',
'use_anglo_saxon': True,
}
@template('lt', 'res.company')
def _get_lt_res_company(self):
return {
self.env.company.id: {
'anglo_saxon_accounting': True,
'account_fiscal_country_id': 'base.lt',
'bank_account_code_prefix': '271',
'cash_account_code_prefix': '272',
+1 -1
View File
@@ -14,13 +14,13 @@ class AccountChartTemplate(models.AbstractModel):
'property_account_expense_categ_id': 'a7550',
'property_account_income_categ_id': 'a6110',
'code_digits': '4',
'use_anglo_saxon': True,
}
@template('lv', 'res.company')
def _get_lv_res_company(self):
return {
self.env.company.id: {
'anglo_saxon_accounting': True,
'account_fiscal_country_id': 'base.lv',
'bank_account_code_prefix': '2620',
'cash_account_code_prefix': '2610',
+1 -1
View File
@@ -19,13 +19,13 @@ class AccountChartTemplate(models.AbstractModel):
'property_tax_payable_account_id': 'account_template_3401_9902',
'property_tax_receivable_account_id': 'account_template_1204_9902',
'code_digits': '8',
'use_anglo_saxon': True,
}
@template('mn', 'res.company')
def _get_mn_res_company(self):
return {
self.env.company.id: {
'anglo_saxon_accounting': True,
'account_fiscal_country_id': 'base.mn',
'bank_account_code_prefix': '11',
'cash_account_code_prefix': '10',
+1 -1
View File
@@ -10,7 +10,6 @@ class AccountChartTemplate(models.AbstractModel):
def _get_mx_template_data(self):
return {
'code_digits': '3',
'use_anglo_saxon': True,
'display_invoice_amount_total_words': True,
'property_account_receivable_id': 'cuenta105_01',
'property_account_payable_id': 'cuenta201_01',
@@ -26,6 +25,7 @@ class AccountChartTemplate(models.AbstractModel):
def _get_mx_res_company(self):
return {
self.env.company.id: {
'anglo_saxon_accounting': True,
'account_fiscal_country_id': 'base.mx',
'bank_account_code_prefix': '102.01.0',
'cash_account_code_prefix': '101.01.0',
+1 -1
View File
@@ -13,7 +13,6 @@ class AccountChartTemplate(models.AbstractModel):
'property_account_payable_id': 'l10n_my_2211',
'property_account_income_categ_id': 'l10n_my_41',
'property_account_expense_categ_id': 'l10n_my_51',
'use_anglo_saxon': True,
'code_digits': '6',
}
@@ -21,6 +20,7 @@ class AccountChartTemplate(models.AbstractModel):
def _get_my_res_company(self):
return {
self.env.company.id: {
'anglo_saxon_accounting': True,
'account_fiscal_country_id': 'base.my',
'bank_account_code_prefix': '1200',
'cash_account_code_prefix': '1210',
+1 -1
View File
@@ -19,13 +19,13 @@ class AccountChartTemplate(models.AbstractModel):
'property_stock_valuation_account_id': '3200',
'property_tax_payable_account_id': 'pay',
'property_tax_receivable_account_id': 'pay',
'use_anglo_saxon': True,
}
@template('nl', 'res.company')
def _get_nl_res_company(self):
return {
self.env.company.id: {
'anglo_saxon_accounting': True,
'account_fiscal_country_id': 'base.nl',
'bank_account_code_prefix': '103',
'cash_account_code_prefix': '101',
+1 -1
View File
@@ -10,7 +10,6 @@ class AccountChartTemplate(models.AbstractModel):
def _get_nz_template_data(self):
return {
'code_digits': '5',
'use_anglo_saxon': True,
'property_account_receivable_id': 'nz_11200',
'property_account_payable_id': 'nz_21200',
'property_account_expense_categ_id': 'nz_51110',
@@ -24,6 +23,7 @@ class AccountChartTemplate(models.AbstractModel):
def _get_nz_res_company(self):
return {
self.env.company.id: {
'anglo_saxon_accounting': True,
'account_fiscal_country_id': 'base.nz',
'bank_account_code_prefix': '1111',
'cash_account_code_prefix': '1113',
+1 -1
View File
@@ -17,13 +17,13 @@ class AccountChartTemplate(models.AbstractModel):
'property_stock_account_input_categ_id': 'l10n_ph_110302',
'property_stock_account_output_categ_id': 'l10n_ph_110303',
'code_digits': '6',
'use_anglo_saxon': True,
}
@template('ph', 'res.company')
def _get_ph_res_company(self):
return {
self.env.company.id: {
'anglo_saxon_accounting': True,
'account_fiscal_country_id': 'base.ph',
'bank_account_code_prefix': '1000',
'cash_account_code_prefix': '1001',
+1 -1
View File
@@ -14,7 +14,6 @@ class AccountChartTemplate(models.AbstractModel):
'property_account_payable_id': 'rs_435',
'property_account_receivable_id': 'rs_204',
'code_digits': '4',
'use_anglo_saxon': True,
'use_storno_accounting': True,
}
@@ -22,6 +21,7 @@ class AccountChartTemplate(models.AbstractModel):
def _get_rs_res_company(self):
return {
self.env.company.id: {
'anglo_saxon_accounting': True,
'account_fiscal_country_id': 'base.rs',
'bank_account_code_prefix': '241',
'cash_account_code_prefix': '243',
+1 -1
View File
@@ -10,7 +10,6 @@ class AccountChartTemplate(models.AbstractModel):
def _get_tw_template_data(self):
return {
'code_digits': '6',
'use_anglo_saxon': True,
'property_account_receivable_id': 'tw_119100',
'property_account_payable_id': 'tw_217100',
'property_account_expense_categ_id': 'tw_511100',
@@ -24,6 +23,7 @@ class AccountChartTemplate(models.AbstractModel):
def _get_tw_res_company(self):
return {
self.env.company.id: {
'anglo_saxon_accounting': True,
'account_fiscal_country_id': 'base.tw',
'bank_account_code_prefix': '1113',
'cash_account_code_prefix': '1111',
+1 -1
View File
@@ -13,7 +13,6 @@ class AccountChartTemplate(models.AbstractModel):
'property_account_payable_id': 'ua_ias_1200',
'property_account_expense_categ_id': 'ua_ias_2200',
'property_account_income_categ_id': 'ua_ias_2000',
'use_anglo_saxon': True,
'property_stock_account_input_categ_id': 'ua_ias_1201',
'property_stock_account_output_categ_id': 'ua_ias_1121',
'property_stock_valuation_account_id': 'ua_ias_1100',
@@ -27,6 +26,7 @@ class AccountChartTemplate(models.AbstractModel):
def _get_ua_ias_res_company(self):
return {
self.env.company.id: {
'anglo_saxon_accounting': True,
'account_fiscal_country_id': 'base.ua',
'bank_account_code_prefix': '1112',
'cash_account_code_prefix': '1111',
+1 -1
View File
@@ -13,7 +13,6 @@ class AccountChartTemplate(models.AbstractModel):
'property_account_payable_id': 'ua_psbp_631',
'property_account_expense_categ_id': 'ua_psbp_901',
'property_account_income_categ_id': 'ua_psbp_701',
'use_anglo_saxon': True,
'property_stock_account_input_categ_id': 'ua_psbp_2812',
'property_stock_account_output_categ_id': 'ua_psbp_2811',
'property_stock_valuation_account_id': 'ua_psbp_281',
@@ -27,6 +26,7 @@ class AccountChartTemplate(models.AbstractModel):
def _get_ua_psbo_res_company(self):
return {
self.env.company.id: {
'anglo_saxon_accounting': True,
'account_fiscal_country_id': 'base.ua',
'bank_account_code_prefix': '311',
'cash_account_code_prefix': '301',
+1 -1
View File
@@ -15,7 +15,6 @@ class AccountChartTemplate(models.AbstractModel):
'property_account_income_categ_id': '4000',
'property_tax_payable_account_id': '2202',
'property_tax_receivable_account_id': '2202',
'use_anglo_saxon': True,
'code_digits': '6',
}
@@ -23,6 +22,7 @@ class AccountChartTemplate(models.AbstractModel):
def _get_uk_res_company(self):
return {
self.env.company.id: {
'anglo_saxon_accounting': True,
'account_fiscal_country_id': 'base.uk',
'bank_account_code_prefix': '1200',
'cash_account_code_prefix': '1210',
+1 -1
View File
@@ -10,7 +10,6 @@ class AccountChartTemplate(models.AbstractModel):
def _get_vn_template_data(self):
return {
'code_digits': '0',
'use_anglo_saxon': True,
'property_account_receivable_id': 'chart131',
'property_account_payable_id': 'chart331',
'property_account_expense_categ_id': 'chart1561',
@@ -21,6 +20,7 @@ class AccountChartTemplate(models.AbstractModel):
def _get_vn_res_company(self):
return {
self.env.company.id: {
'anglo_saxon_accounting': True,
'account_fiscal_country_id': 'base.vn',
'bank_account_code_prefix': '112',
'cash_account_code_prefix': '111',
+1 -1
View File
@@ -16,7 +16,6 @@ class AccountChartTemplate(models.AbstractModel):
'property_stock_account_input_categ_id': '200010',
'property_stock_account_output_categ_id': '100050',
'property_stock_valuation_account_id': '100020',
'use_anglo_saxon': True,
'code_digits': '6',
}
@@ -24,6 +23,7 @@ class AccountChartTemplate(models.AbstractModel):
def _get_za_res_company(self):
return {
self.env.company.id: {
'anglo_saxon_accounting': True,
'account_fiscal_country_id': 'base.za',
'bank_account_code_prefix': '1200',
'cash_account_code_prefix': '1250',