Minor fixes

This commit is contained in:
Florian da Costa
2016-07-15 18:14:52 +02:00
committed by David Beal
parent 525104d947
commit 31ba5cd75e
6 changed files with 11 additions and 5 deletions

View File

@@ -3,4 +3,4 @@
# David BEAL <david.beal@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import workcenter
from . import model

View File

@@ -14,7 +14,7 @@
],
'website': 'http://www.akretion.com/',
'data': [
'workcenter_view.xml',
'views/workcenter_view.xml',
],
'demo': [
'demo/mrp_demo.xml',

View File

@@ -0,0 +1,6 @@
# -*- coding: utf-8 -*-
# © 2016 Akretion (http://www.akretion.com)
# David BEAL <david.beal@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import workcenter

View File

@@ -31,8 +31,8 @@ class MrpWorkcenter(models.Model):
compute='_compute_parent_level',
string='Parent Level 3',
store=True)
parent_left = fields.Integer(select=1)
parent_right = fields.Integer(select=1)
parent_left = fields.Integer(select=True)
parent_right = fields.Integer(select=True)
@api.multi
def _get_parent_ids(self):

View File

@@ -66,7 +66,7 @@ class ComputeParentLevel(TransactionCase):
self.assertEqual(
workcenter_child.parent_level_1_id, workcenter_parent1)
def test_compute_parent_level3(self):
def test_compute_parent_level3_bis(self):
workcenter_child = self.env.ref(
'mrp_workcenter_hierarchical.mrp_workcenter_C')
workcenter_parent3 = self.env.ref(