update po and common

This commit is contained in:
ivan deng
2022-08-21 20:44:49 +08:00
parent 39473327ea
commit 53b3243efd
5 changed files with 16 additions and 14 deletions

View File

@@ -10,7 +10,7 @@ account_1101,1101,交易性金融资产,,FALSE,account.data_account_type_current
account_1111,1111,买入返售金融资产,,FALSE,account.data_account_type_current_assets,account_group_1,tag23,l10n_chart_china_standard_business_latest
account_1121,1121,应收票据,,TRUE,account.data_account_type_receivable,account_group_1,,l10n_chart_china_standard_business_latest
account_1122,1122,应收账款,,TRUE,account.data_account_type_receivable,account_group_1,,l10n_chart_china_standard_business_latest
account_1123,1123,预付账款,,TRUE,account.data_account_type_receivable,account_group_1,,l10n_chart_china_standard_business_latest
account_1123,1123,预付账款,,TRUE,account.data_account_type_prepayments,account_group_1,,l10n_chart_china_standard_business_latest
account_1124,1124,应收账款(PoS),,TRUE,account.data_account_type_receivable,account_group_1,,l10n_chart_china_standard_business_latest
account_1131,1131,应收股利,,TRUE,account.data_account_type_receivable,account_group_1,,l10n_chart_china_standard_business_latest
account_1132,1132,应收利息,,TRUE,account.data_account_type_receivable,account_group_1,,l10n_chart_china_standard_business_latest
1 id code name parent_id/id reconcile user_type_id/id group_id/id tag_ids/id chart_template_id/id
10 account_1111 1111 买入返售金融资产 FALSE account.data_account_type_current_assets account_group_1 tag23 l10n_chart_china_standard_business_latest
11 account_1121 1121 应收票据 TRUE account.data_account_type_receivable account_group_1 l10n_chart_china_standard_business_latest
12 account_1122 1122 应收账款 TRUE account.data_account_type_receivable account_group_1 l10n_chart_china_standard_business_latest
13 account_1123 1123 预付账款 TRUE account.data_account_type_receivable account.data_account_type_prepayments account_group_1 l10n_chart_china_standard_business_latest
14 account_1124 1124 应收账款(PoS) TRUE account.data_account_type_receivable account_group_1 l10n_chart_china_standard_business_latest
15 account_1131 1131 应收股利 TRUE account.data_account_type_receivable account_group_1 l10n_chart_china_standard_business_latest
16 account_1132 1132 应收利息 TRUE account.data_account_type_receivable account_group_1 l10n_chart_china_standard_business_latest

View File

@@ -68,7 +68,7 @@ class AccountChartTemplate(models.Model):
('chart_template_id', '=', self.id),
('parent_id', '!=', False)
], limit=1)
if len(parent_account) or code == '2221.01.01':
if len(parent_account) or code == '22210101' or code == '2221.01.01':
parent_code = parent_account[0].parent_id.code
if parent_code:
parent = self.env['account.account'].sudo().search([