[FIX] report_qweb_signer: noupdate defaults

We don't want our custom parameters be reset every time the module
updates.

TT32256
pull/543/head
david 2021-10-01 10:52:31 +02:00
parent e2d82096e4
commit 8d9ad8b6f1
3 changed files with 12 additions and 2 deletions

View File

@ -6,7 +6,7 @@
{
"name": "Qweb PDF reports signer",
"summary": "Sign Qweb PDFs usign a PKCS#12 certificate",
"version": "13.0.2.0.0",
"version": "13.0.2.1.0",
"category": "Reporting",
"website": "https://github.com/OCA/reporting-engine",
"author": "Tecnativa, " "Odoo Community Association (OCA)",

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<odoo noupdate="1">
<record model="ir.config_parameter" id="report_qweb_signer_java_param">
<field name="key">report_qweb_signer.java_parameters</field>
<field name="value">-Xms4M -Xmx4M -XX:CompressedClassSpaceSize=256m</field>

View File

@ -0,0 +1,10 @@
# Copyright 2021 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade
@openupgrade.migrate()
def migrate(env, version):
openupgrade.set_xml_ids_noupdate_value(
env, "report_qweb_signer", ["report_qweb_signer_java_param"], True,
)