[FIX] account_payment_order: Sequences must be noupdate=1

This commit is contained in:
Pedro M. Baeza
2019-10-30 12:42:42 +01:00
parent 6b3f2b733d
commit 19fc8afb39
3 changed files with 18 additions and 4 deletions

View File

@@ -8,7 +8,7 @@
{ {
'name': 'Account Payment Order', 'name': 'Account Payment Order',
'version': '12.0.1.1.0', 'version': '12.0.1.2.0',
'license': 'AGPL-3', 'license': 'AGPL-3',
'author': "ACSONE SA/NV, " 'author': "ACSONE SA/NV, "
"Therp BV, " "Therp BV, "

View File

@@ -2,11 +2,11 @@
<!-- <!--
© 2015-2016 Akretion (https://www.akretion.com/) © 2015-2016 Akretion (https://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com> @author: Alexis de Lattre <alexis.delattre@akretion.com>
Copyright 2019 Tecnativa - Pedro M. Baeza
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
--> -->
<odoo> <odoo noupdate="1">
<record id="bank_payment_line_seq" model="ir.sequence"> <record id="bank_payment_line_seq" model="ir.sequence">
<field name="name">Bank Payment Line</field> <field name="name">Bank Payment Line</field>
@@ -32,5 +32,4 @@
<field name="company_id" eval="False"/> <field name="company_id" eval="False"/>
</record> </record>
</odoo> </odoo>

View File

@@ -0,0 +1,15 @@
# Copyright 2019 Tecnativa - Pedro M. Baeza
# 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, 'account_payment_order', [
'bank_payment_line_seq',
'account_payment_line_seq',
'account_payment_order_seq',
], True,
)