diff --git a/app_base_chinese/hooks.py b/app_base_chinese/hooks.py index ea13386d..d49aec52 100644 --- a/app_base_chinese/hooks.py +++ b/app_base_chinese/hooks.py @@ -17,6 +17,8 @@ from odoo import api, SUPERUSER_ID, _ +import logging +_logger = logging.getLogger(__name__) def pre_init_hook(cr): """ @@ -56,11 +58,17 @@ def post_init_hook(cr, registry): env = api.Environment(cr, SUPERUSER_ID, {'active_test': True}) ids = env['res.company'].sudo().search([], limit=1) if ids: - ids.write({'currency_id': env.ref('base.CNY').id}) + try: + ids.write({'currency_id': env.ref('base.CNY').id}) + except Exception as e: + _logger.error('cn: company write currency_id error.') # 价格表改人民币 ids = env['product.pricelist'].sudo().search([], limit=1) if ids: - ids.write({'currency_id': env.ref('base.CNY').id}) + try: + ids.write({'currency_id': env.ref('base.CNY').id}) + except Exception as e: + _logger.error('cn: pricelist write currency_id error.') except Exception as e: raise Warning(e) diff --git a/l10n_cn_standard_latest/__manifest__.py b/l10n_cn_standard_latest/__manifest__.py index e1de00fb..bad8aeea 100644 --- a/l10n_cn_standard_latest/__manifest__.py +++ b/l10n_cn_standard_latest/__manifest__.py @@ -9,7 +9,7 @@ { 'name': '2023最新中国会计科目表.企业标准会计.Latest Chinese Accounting for odoo16', - 'version': '16.24.11.03', + 'version': '16.24.11.04', 'author': 'odooai.cn', 'category': 'Accounting/Localizations/Account Charts', 'website': 'https://www.odooai.cn', diff --git a/l10n_cn_standard_latest/data/account_account_tag_data.xml b/l10n_cn_standard_latest/data/account_account_tag_data.xml index aedb80af..c9e863ff 100644 --- a/l10n_cn_standard_latest/data/account_account_tag_data.xml +++ b/l10n_cn_standard_latest/data/account_account_tag_data.xml @@ -13,13 +13,8 @@ taxes - - 增值税13%销项税 - taxes - - - - 增值税13%进项税 + + 8%离境退税 taxes @@ -33,21 +28,6 @@ taxes - - 8%离境退税 - taxes - - - - 增值税16%进项税 - taxes - - - - 增值税16%销项税 - taxes - - 银行专用 diff --git a/l10n_cn_standard_latest/static/description/icon.png b/l10n_cn_standard_latest/static/description/icon.png index 22cbd278..7f014907 100644 Binary files a/l10n_cn_standard_latest/static/description/icon.png and b/l10n_cn_standard_latest/static/description/icon.png differ