Commit 27b0a4c0 authored by Rafael Monnerat's avatar Rafael Monnerat

ERP5Configurator: Tinny style changes.

parent f51876bb
......@@ -56,8 +56,7 @@ class AccountConfiguratorItem(ConfiguratorItemMixin, XMLObject):
, PropertySheet.Account )
def _build(self, business_configuration):
portal = self.getPortalObject()
account_module = portal.account_module
account_module = self.getPortalObject().account_module
extra_kw = {}
account_id = getattr(self, 'account_id', None)
......
......@@ -60,9 +60,7 @@ class AccountingPeriodConfiguratorItem(ConfiguratorItemMixin, XMLObject):
organisation_id = business_configuration.\
getGlobalConfigurationAttr('organisation_id')
organisation = portal.organisation_module._getOb(organisation_id)
period = organisation.newContent(
portal_type='Accounting Period',
organisation.newContent(portal_type='Accounting Period',
start_date=self.getStartDate(),
stop_date=self.getStopDate(),
short_title=self.getShortTitle(),
......
......@@ -532,7 +532,6 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase):
expected_list = self.standard_bt5_list + bt5_tuple
self.assertEquals([i for i in expected_list if i not in bt5_title_list], [])
self.assertFalse(bc_id in bt5_title_list)
bt = business_configuration.getSpecialiseValue(portal_type="Business Template")
......
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