Browse Source

[FIX] tests get stalled on travis

pull/608/head
David 7 years ago
committed by amcor
parent
commit
f209ded465
  1. 9
      partner_financial_risk/tests/test_partner_financial_risk.py

9
partner_financial_risk/tests/test_partner_financial_risk.py

@ -2,15 +2,18 @@
# Copyright 2016 Carlos Dauden <carlos.dauden@tecnativa.com> # Copyright 2016 Carlos Dauden <carlos.dauden@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests.common import SavepointCase
from odoo.tests import common
from odoo import fields from odoo import fields
class TestPartnerFinancialRisk(SavepointCase):
@common.at_install(False)
@common.post_install(True)
class TestPartnerFinancialRisk(common.SavepointCase):
@classmethod @classmethod
def setUpClass(cls): def setUpClass(cls):
super(TestPartnerFinancialRisk, cls).setUpClass() super(TestPartnerFinancialRisk, cls).setUpClass()
cls.env.user.groups_id |= cls.env.ref('account.group_account_manager')
cls.env.user.groups_id |= cls.env.ref(
'account.group_account_manager')
type_revenue = cls.env.ref('account.data_account_type_revenue') type_revenue = cls.env.ref('account.data_account_type_revenue')
type_receivable = cls.env.ref('account.data_account_type_receivable') type_receivable = cls.env.ref('account.data_account_type_receivable')
tax_group_taxes = cls.env.ref('account.tax_group_taxes') tax_group_taxes = cls.env.ref('account.tax_group_taxes')

Loading…
Cancel
Save