TIP: You can type at any time to perform a new search.

Security findings

Repository
odoo/odoo · module folder
Module version
1.8
Category
Accounting/Localizations/Account Charts
Folder size
1.87 MB
License
LGPL-3
Application
No
Auto-installable
Yes
Website
https://www.odoo.com/documentation/latest/applications/finance/fiscal_localizations.html
Last tracking update
2026-09-28 18:31:16
Authors
openerp-china
Maintainers
jeff@osbzr.com
Committers
Thibault Delavallée, odoo, Odoo Translation Bot, Tiffany Chang (tic), Gorash, Miquel Raïch, william-andre, Dylan Kiss (dyki), tong-odoo, tanghulu0608, kcv-odoo, mano-odoo, jand-odoo, erle, soza-odoo, pusu-odoo, Smaran (smgo)
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
Includes the following data for the Chinese localization
========================================================

Account Type/科目类型

State Data/省份数据

    科目类型\会计科目表模板\增值税\辅助核算类别\管理会计凭证簿\财务会计凭证簿

    添加中文省份数据

    增加小企业会计科目表

    修改小企业会计科目表

    修改小企业会计税率

    增加大企业会计科目表

We added the option to print a voucher which will also
print the amount in words (special Chinese characters for numbers)
correctly when the cn2an library is installed. (e.g. with pip3 install cn2an)
    

Code Analysis info_outline

Views touched (10)
XML IDNameModelTypeStatus
account_move_form_l10n_cn l10n_cn.account.move.form account.move form Inherits account.view_move_form
external_layout_standard external_layout_standard ir.ui.view qweb Inherits web.external_layout_standard
report_voucher report_voucher ir.ui.view qweb New
report_voucher_document report_voucher_document ir.ui.view qweb New
res_config_settings_view_form res.config.settings.view.form.inherit.l10n.cn res.config.settings form Inherits account.res_config_settings_view_form
view_invoice_tree_inherit_i10n_cn view.invoice.tree.inherit.i10n.cn account.move tree Inherits account.view_invoice_tree
view_l10n_cn_balance_deduction_list l10n_cn.balance.deduction.list l10n_cn.balance.deduction list New
view_l10n_cn_balance_deduction_pivot l10n_cn.balance.deduction.pivot l10n_cn.balance.deduction pivot New
view_l10n_cn_balance_deduction_search l10n_cn.balance.deduction.search l10n_cn.balance.deduction search New
view_move_line_form_balance_deduction account.move.line.form.l10n_cn.balance.deduction account.move.line form New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (9)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (6)
  • fapiao Char
    copy=False string='Fapiao Number' tracking=True
  • l10n_cn_differential_taxation_method Selection
    selection=[('01', 'Full Amount Fapiao'), ('02', 'Net Amount Fapiao')] string='VAT Differential Taxation Method'
  • l10n_cn_output_vat_offset_move_ids One2many → account.move
    comodel_name='account.move' inverse_name='l10n_cn_output_vat_offset_origin_id' string='Output VAT Offset Entries'
  • l10n_cn_output_vat_offset_origin_id Many2one → account.move
    comodel_name='account.move' copy=False ondelete='restrict' string='Output VAT Offset Origin Entry'
  • l10n_cn_output_vat_offset_origin_line_ids One2many → account.move.line
    comodel_name='account.move.line' inverse_name='l10n_cn_output_vat_offset_move_id' string='Output VAT Offset Origin Lines'
  • l10n_cn_vat_differential_taxation Boolean
    related='company_id.l10n_cn_vat_differential_taxation'
Public methods (3)
  • action_open_l10n_cn_output_vat_offset_entries(self)
  • button_draft(self)
  • check_cn2an(self)
    @api.model

New fields (4)
  • l10n_cn_balance_deduction_ids One2many → l10n_cn.balance.deduction
    check_company=True comodel_name='l10n_cn.balance.deduction' inverse_name='move_line_id' string='Balance Deductions'
  • l10n_cn_differential_taxation_method Selection
    related='move_id.l10n_cn_differential_taxation_method'
  • l10n_cn_output_vat_offset_account_id Many2one → account.account
    check_company=True comodel_name='account.account' default=<expr> domain="[('account_type', '=', 'liability_current')]" string='Output VAT Offset Account'
  • l10n_cn_output_vat_offset_move_id Many2one → account.move
    check_company=True comodel_name='account.move' copy=False string='Output VAT Offset Entry'
Public methods (3)
  • action_open_l10n_cn_balance_deduction(self)
  • action_reset_balance_deduction_to_draft(self)
    Reset balance deduction information to draft for full-amount differential taxation (method '01'). Reverses and reconciles the linked Output VAT offset move—preserving the audit trail—and clears the offset move reference.
  • action_save_l10n_cn_balance_deduction(self)
    Save balance deduction details and generate the Output VAT offset move if the invoice is already posted. For full-amount differential taxation (method '01'), creating or updating balance deduction info on a posted invoice automatically creates and posts the corresponding Output VAT offset move.

New fields (0)

No new fields.

Public methods (1)
  • default_get(self, fields_list)
    @api.model

New fields (22)
  • accounting_date Date
    related='move_line_id.l10n_cn_output_vat_offset_move_id.date' string='Accounting Date'
  • company_id Many2one
    index=True precompute=True readonly=True related='move_line_id.company_id' store=True
  • currency_id Many2one
    related='move_line_id.currency_id'
  • deduct_amount Monetary
    string='Deduct Amount'
  • e_fapiao_number Char
    string='E-Fapiao Number'
  • expense_account_id Many2one → account.account
    check_company=True comodel_name='account.account' string='Expense Account'
  • fapiao_number Char
    related='move_line_id.move_id.fapiao' string='Fapiao Number'
  • invoice_date Date
    related='move_line_id.invoice_date' string='Invoice Date'
  • invoice_number Char
    related='move_line_id.move_id.name' string='Invoice Number'
  • issue_date Date
    string='Issue Date'
  • move_line_id Many2one → account.move.line
    comodel_name='account.move.line' ondelete='cascade' required=True
  • move_type Selection
    related='move_line_id.move_id.move_type' string='Type'
  • output_vat_offset_move_id Many2one
    check_company=True related='move_line_id.l10n_cn_output_vat_offset_move_id' string='Journal Entry'
  • product_id Many2one
    check_company=True related='move_line_id.product_id' string='Product'
  • receipt_code Char
    string='Receipt Code'
  • receipt_number Char
    string='Receipt Number'
  • remarks Text
    string='Remarks'
  • tax_inclusive_amount Monetary
    related='move_line_id.price_total' string='Tax Inclusive Amount'
  • vat_differential_taxation Selection
    related='move_line_id.move_id.l10n_cn_differential_taxation_method' string='VAT Differential Taxation'
  • voucher_number Char
    string='Voucher Number'
  • voucher_total Monetary
    string='Voucher Total'
  • voucher_type Selection
    selection=[('10', 'Special VAT Fapiao'), ('11', 'General VAT Fapiao'), ('12', 'Customs Import VAT Special Payment Receipt'), ('13', 'Itinerary Receipt of E-Ticket'), ('14', 'Electronic Railway Ticket'), ('15', 'Tax Payment Certificate (Deed Tax)'), ('16', 'Uniform Receipt for Central Non-Tax Revenue (Land Transfer Premium)'), ('05', 'Fiscal Receipt'), ('06', 'Court Ruling'), ('09', 'Other Proof of Deduction')] string='Voucher Type'
Public methods (0)

No public methods.

New fields (3)
  • l10n_cn_output_vat_offset_account_id Many2one → account.account
    comodel_name='account.account' domain="[('account_type', '=', 'liability_current')]" string='Output VAT Offset Account'
  • l10n_cn_output_vat_offset_journal_id Many2one → account.journal
    comodel_name='account.journal' domain="[('type', '=', 'general')]" string='Output VAT Offset Journal'
  • l10n_cn_vat_differential_taxation Boolean
    string='VAT Differential Taxation'
Public methods (0)

No public methods.

New fields (3)
  • l10n_cn_output_vat_offset_account_id Many2one
    readonly=False related='company_id.l10n_cn_output_vat_offset_account_id'
  • l10n_cn_output_vat_offset_journal_id Many2one
    readonly=False related='company_id.l10n_cn_output_vat_offset_journal_id'
  • l10n_cn_vat_differential_taxation Boolean
    readonly=False related='company_id.l10n_cn_vat_differential_taxation'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…