[FIX] account_invoice_currency: Integration tests

Creating a partner in at install mode raises this in integration environment:

    IntegrityError: null value in column "sale_warn" violates not-null constraint

Moving to post install mode.
This commit is contained in:
Jairo Llopis
2018-07-12 13:48:59 +02:00
parent 69b55288e7
commit 70106e7f0a
2 changed files with 4 additions and 2 deletions

View File

@@ -8,7 +8,7 @@
{
'name': "Company currency in invoices",
'version': "10.0.1.1.0",
'version': "10.0.1.1.1",
'author': "Zikzakmedia SL, "
"Joaquín Gutierrez, "
"Tecnativa, "

View File

@@ -2,9 +2,11 @@
# Copyright 2016 Antonio Espinosa <antonio.espinosa@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
from odoo.tests.common import at_install, post_install, TransactionCase
@at_install(False)
@post_install(True)
class TestAccountInvoiceCurrency(TransactionCase):
def setUp(self):
super(TestAccountInvoiceCurrency, self).setUp()