Commit ce5f3c65 authored by Sebastien Robin's avatar Sebastien Robin

make it compatible with the new erp5_trade business tempalte


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2834 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 362934b7
...@@ -42,6 +42,7 @@ from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase ...@@ -42,6 +42,7 @@ from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5.Document.DeliveryLine import DeliveryLine from Products.ERP5.Document.DeliveryLine import DeliveryLine
from Products.ERP5Type.Utils import cartesianProduct from Products.ERP5Type.Utils import cartesianProduct
from AccessControl.SecurityManagement import newSecurityManager, noSecurityManager from AccessControl.SecurityManagement import newSecurityManager, noSecurityManager
from zLOG import LOG
from zLOG import LOG from zLOG import LOG
...@@ -67,7 +68,7 @@ class TestXMLMatrix(ERP5TypeTestCase): ...@@ -67,7 +68,7 @@ class TestXMLMatrix(ERP5TypeTestCase):
user = uf.getUserById('manager').__of__(uf) user = uf.getUserById('manager').__of__(uf)
newSecurityManager(None, user) newSecurityManager(None, user)
portal = self.getPortal() portal = self.getPortal()
module = portal.purchase_order module = portal.purchase_order_module
if '1' not in module.objectIds(): if '1' not in module.objectIds():
order = module.newContent(id='1', portal_type='Purchase Order') order = module.newContent(id='1', portal_type='Purchase Order')
...@@ -75,7 +76,7 @@ class TestXMLMatrix(ERP5TypeTestCase): ...@@ -75,7 +76,7 @@ class TestXMLMatrix(ERP5TypeTestCase):
ZopeTestCase._print('\nTest Rename Cell Range ') ZopeTestCase._print('\nTest Rename Cell Range ')
# Test if renameCellRange works in XMLMatrix. # Test if renameCellRange works in XMLMatrix.
portal = self.getPortal() portal = self.getPortal()
module = portal.purchase_order module = portal.purchase_order_module
order = module._getOb('1') order = module._getOb('1')
if order.hasContent('1'): order.deleteContent('1') if order.hasContent('1'): order.deleteContent('1')
matrix = order.newContent(id='1', portal_type='Purchase Order Line') matrix = order.newContent(id='1', portal_type='Purchase Order Line')
...@@ -179,7 +180,7 @@ class TestXMLMatrix(ERP5TypeTestCase): ...@@ -179,7 +180,7 @@ class TestXMLMatrix(ERP5TypeTestCase):
portal = self.getPortal() portal = self.getPortal()
if not active: if not active:
portal._delObject('portal_activities') portal._delObject('portal_activities')
module = portal.purchase_order module = portal.purchase_order_module
module.recursiveImmediateReindexObject() module.recursiveImmediateReindexObject()
catalog = portal.portal_catalog catalog = portal.portal_catalog
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment