mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
15 lines
442 B
Python
15 lines
442 B
Python
# -*- coding: utf-8 -*-
|
|
# © 2016 Cyril Gaudin (Camptocamp)
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from openerp.tests import TransactionCase
|
|
|
|
|
|
class TestProduct(TransactionCase):
|
|
|
|
def test_action_view_bom(self):
|
|
# Covering test
|
|
p1 = self.env['product.product'].create({'name': 'Test P1'})
|
|
result = p1.action_view_bom()
|
|
self.assertIn(('dismantling', '=', False), result['domain'])
|