You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
703 B
22 lines
703 B
# -*- coding: utf-8 -*-
|
|
# Copyright 2017 LasLabs Inc.
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
|
|
from odoo.tests.common import HttpCase
|
|
|
|
|
|
class TestAccountAnalyticContract(HttpCase):
|
|
|
|
def setUp(self):
|
|
super(TestAccountAnalyticContract, self).setUp()
|
|
self.contract_mod = self.env['account.analytic.contract']
|
|
self.template = self.env.ref(
|
|
'website_portal_contract.website_contract_template_default'
|
|
)
|
|
|
|
def test_get_default_template(self):
|
|
""" Test get_default_template returns correct template """
|
|
self.assertEquals(
|
|
self.contract_mod._get_default_template(),
|
|
self.template,
|
|
)
|