Check in CI other modules that extend universal chart of accounts

This commit is contained in:
Cédric Krier
2024-10-30 22:24:51 +01:00
parent ae26cabdb0
commit 83037ea151
4 changed files with 40 additions and 39 deletions
+7 -4
View File
@@ -3,15 +3,18 @@ set -eu
OUTPUT=`mktemp -d`
module="modules/account"
mkdir -p "${OUTPUT}/${module}"
for lang in en
for module in account account_asset account_deposit sale_advance_payment
do
module="modules/${module}"
mkdir -p "${OUTPUT}/${module}"
for lang in en
do
printf "Check ${module} ${lang} ..."
file="${module}/account_chart_${lang}.xml"
xsltproc --stringparam lang "${lang}" "${module}/localize.xsl" "${module}/account_chart.xml" > "${OUTPUT}/${file}"
xsltproc --stringparam lang "${lang}" "modules/account/localize.xsl" "${module}/account_chart.xml" > "${OUTPUT}/${file}"
cmp "${file}" "${OUTPUT}/${file}"
printf "OK\n"
done
done
module="modules/account_be"
@@ -6,7 +6,6 @@ this repository contains the full copyright notices and license terms. -->
<record id="account.account_type_template_prepaid_expenses_en" model="account.account.type.template">
<field name="fixed_asset" eval="True"/>
</record>
<record id="account.account_type_template_property_en" model="account.account.type.template">
<field name="fixed_asset" eval="True"/>
</record>
@@ -10,7 +10,6 @@ this repository contains the full copyright notices and license terms. -->
<field name="deposit" eval="True"/>
<field name="sequence" eval="10"/>
</record>
<record id="account_template_deposit_en" model="account.account.template">
<field name="name">Deposit</field>
<field name="type" ref="account_type_template_deposit_en"/>