Skip to content
Snippets Groups Projects
Commit c710c3a3 authored by Nicolas Martinelli's avatar Nicolas Martinelli
Browse files

[FIX] l10n_cn_small_business: incorrect account type

- Create a customer invoice or a vendor bill
- Add a product with any pre-defined tax

The tax line is not added.

This is because the account 2221 is set as 'Payable' instead of 'Current
Liabilities', as it is the case in other localizations.

For reference, the tax line is created then removed because:

https://github.com/odoo/odoo/blob/db2e6bc600364c00e8a1d528d4b17ae052ecd41e/addons/account/models/account_move.py#L816



The line is part of `existing_terms_lines` instead of `others_lines`.

opw-2089955

closes odoo/odoo#39241

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent cbe26b3a
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@
"l10n_cn_2202","Accounts Payable","2202","account.data_account_type_payable","l10n_cn_small_business.l10n_chart_china_small_business","True"
"l10n_cn_2203","Deposit Received","2203","account.data_account_type_payable","l10n_cn_small_business.l10n_chart_china_small_business","True"
"l10n_cn_2211","Payroll payable","2211","account.data_account_type_payable","l10n_cn_small_business.l10n_chart_china_small_business","True"
"l10n_cn_2221","Tax payable","2221","account.data_account_type_payable","l10n_cn_small_business.l10n_chart_china_small_business","True"
"l10n_cn_2221","Tax payable","2221","account.data_account_type_current_liabilities","l10n_cn_small_business.l10n_chart_china_small_business","True"
"l10n_cn_2231","Interest payable","2231","account.data_account_type_payable","l10n_cn_small_business.l10n_chart_china_small_business","True"
"l10n_cn_2241","Dividents payable","2241","account.data_account_type_payable","l10n_cn_small_business.l10n_chart_china_small_business","True"
"l10n_cn_2501","Other payable","2501","account.data_account_type_payable","l10n_cn_small_business.l10n_chart_china_small_business","True"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment