In a general manner, the chart templates should not be set to noupdate, that way, if a new company starts in an existing database, it starts with an up-to-date chart of accounts. For instance, if the chart of template is not updated from 12.0 to 13.0, the `default_pos_receivable_account_id` is not added in the chart template, and when a new company is created, the default pos receivable account is not set on the company. Besides, the field `res.company``account_default_pos_receivable_account_id` is not displayed on any form view, whether or not the full accounting is installed, so we must especially pay attention this default account is well set from start, as the user as no opportunity to correct this by himself. In addition, in upgrade scripts, the default pos receivable account on the chart template is used to correctly set the pos receivable account on the company and on the pos payment methods, so it must be well set for the upgrade script to do its job correctly. Technically, it means, without this revision, the fields: - `account.chart.template``default_pos_receivable_account_id`, - `res.company``account_default_pos_receivable_account_id`, - `pos.payment.method``receivable_account_id` were not filled properly on upgrade, causing critical issues in the accounting entries on pos session closing. Related to #52786 Related to odoo/upgrade@ccfd2371ef closes odoo/odoo#52870 X-original-commit: 3258ba015ff75b7c176d83a44261d24ebfcc26de Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
29 lines
952 B
XML
29 lines
952 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<!--
|
|
|
|
Copyright (C) 2012-2012 南京盈通 ccdos@intoerp.com <small business chart>
|
|
|
|
会计科目表模板( 小企业会计准则2011)
|
|
|
|
科目表依据:
|
|
关于印发《小企业会计准则》的通知
|
|
http://kjs.mof.gov.cn/zhengwuxinxi/zhengcefabu/201111/t20111107_605525.html
|
|
|
|
-->
|
|
<data>
|
|
<record id="l10n_chart_china_small_business" model="account.chart.template">
|
|
<field name="name">小企业会计科目表(财会[2011]17号《小企业会计准则》)</field>
|
|
<field name="code_digits" eval="6"/>
|
|
<field name="currency_id" ref="base.CNY"/>
|
|
<field name="cash_account_code_prefix">1001</field>
|
|
<field name="bank_account_code_prefix">1002</field>
|
|
<field name="transfer_account_code_prefix">1012</field>
|
|
<field name="spoken_languages" eval="'en_US'"/>
|
|
</record>
|
|
</data>
|
|
</odoo>
|
|
|
|
|