[MIG] quality_control: Migration to 10.0

This commit is contained in:
Simone Rubino
2017-11-21 12:55:50 +01:00
committed by Pedro M. Baeza
parent 15a1ab163e
commit 069fd45f0d
100 changed files with 19659 additions and 19587 deletions

View File

@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# (c) 2015 Oihane Crucelaegui - AvanzOSC
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from . import test_quality_control

View File

@@ -1,9 +1,13 @@
# -*- coding: utf-8 -*-
# (c) 2015 Oihane Crucelaegui - AvanzOSC
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
# Copyright 2010 NaN Projectes de Programari Lliure, S.L.
# Copyright 2014 Serv. Tec. Avanzados - Pedro M. Baeza
# Copyright 2014 Oihane Crucelaegui - AvanzOSC
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# Copyright 2017 Simone Rubino - Agile Business Group
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from openerp.tests.common import TransactionCase
from openerp import exceptions
from odoo.tests.common import TransactionCase
from odoo import exceptions
from ..models.qc_trigger_line import\
_filter_trigger_lines
@@ -184,7 +188,7 @@ class TestQualityControl(TransactionCase):
def test_qc_inspection_product(self):
self.inspection1.write({
'object_id': '%s,%d' % (self.product._model, self.product.id),
'object_id': '%s,%d' % (self.product._name, self.product.id),
})
self.assertEquals(self.inspection1.product,
self.product)