Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Mukul
erp5
Commits
27b0a4c0
Commit
27b0a4c0
authored
Aug 02, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Configurator: Tinny style changes.
parent
f51876bb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
11 deletions
+7
-11
product/ERP5Configurator/Document/AccountConfiguratorItem.py
product/ERP5Configurator/Document/AccountConfiguratorItem.py
+1
-2
product/ERP5Configurator/Document/AccountingPeriodConfiguratorItem.py
...Configurator/Document/AccountingPeriodConfiguratorItem.py
+5
-7
product/ERP5Configurator/Document/PermissionConfiguratorItem.py
...t/ERP5Configurator/Document/PermissionConfiguratorItem.py
+1
-1
product/ERP5Configurator/tests/ConfiguratorTestMixin.py
product/ERP5Configurator/tests/ConfiguratorTestMixin.py
+0
-1
No files found.
product/ERP5Configurator/Document/AccountConfiguratorItem.py
View file @
27b0a4c0
...
@@ -56,8 +56,7 @@ class AccountConfiguratorItem(ConfiguratorItemMixin, XMLObject):
...
@@ -56,8 +56,7 @@ class AccountConfiguratorItem(ConfiguratorItemMixin, XMLObject):
,
PropertySheet
.
Account
)
,
PropertySheet
.
Account
)
def
_build
(
self
,
business_configuration
):
def
_build
(
self
,
business_configuration
):
portal
=
self
.
getPortalObject
()
account_module
=
self
.
getPortalObject
().
account_module
account_module
=
portal
.
account_module
extra_kw
=
{}
extra_kw
=
{}
account_id
=
getattr
(
self
,
'account_id'
,
None
)
account_id
=
getattr
(
self
,
'account_id'
,
None
)
...
...
product/ERP5Configurator/Document/AccountingPeriodConfiguratorItem.py
View file @
27b0a4c0
...
@@ -60,13 +60,11 @@ class AccountingPeriodConfiguratorItem(ConfiguratorItemMixin, XMLObject):
...
@@ -60,13 +60,11 @@ class AccountingPeriodConfiguratorItem(ConfiguratorItemMixin, XMLObject):
organisation_id
=
business_configuration
.
\
organisation_id
=
business_configuration
.
\
getGlobalConfigurationAttr
(
'organisation_id'
)
getGlobalConfigurationAttr
(
'organisation_id'
)
organisation
=
portal
.
organisation_module
.
_getOb
(
organisation_id
)
organisation
=
portal
.
organisation_module
.
_getOb
(
organisation_id
)
organisation
.
newContent
(
portal_type
=
'Accounting Period'
,
period
=
organisation
.
newContent
(
start_date
=
self
.
getStartDate
(),
portal_type
=
'Accounting Period'
,
stop_date
=
self
.
getStopDate
(),
start_date
=
self
.
getStartDate
(),
short_title
=
self
.
getShortTitle
(),
stop_date
=
self
.
getStopDate
(),
title
=
self
.
getTitle
())
short_title
=
self
.
getShortTitle
(),
title
=
self
.
getTitle
())
# no need to 'install' in the business template, because it's contain as
# no need to 'install' in the business template, because it's contain as
# subobject of an organisation we already added.
# subobject of an organisation we already added.
product/ERP5Configurator/Document/PermissionConfiguratorItem.py
View file @
27b0a4c0
...
@@ -58,7 +58,7 @@ class PermissionConfiguratorItem(ConfiguratorItemMixin, XMLObject):
...
@@ -58,7 +58,7 @@ class PermissionConfiguratorItem(ConfiguratorItemMixin, XMLObject):
template_module_id_list
=
[]
template_module_id_list
=
[]
module_permissions_map
=
{}
module_permissions_map
=
{}
sheets_dict
=
business_configuration
.
ConfigurationTemplate_readOOCalcFile
(
\
sheets_dict
=
business_configuration
.
ConfigurationTemplate_readOOCalcFile
(
\
self
.
filename
)
self
.
filename
)
for
module_id
,
permissions
in
sheets_dict
.
items
():
for
module_id
,
permissions
in
sheets_dict
.
items
():
module_permissions
=
{}
module_permissions
=
{}
for
permission
in
permissions
:
for
permission
in
permissions
:
...
...
product/ERP5Configurator/tests/ConfiguratorTestMixin.py
View file @
27b0a4c0
...
@@ -531,7 +531,6 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase):
...
@@ -531,7 +531,6 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase):
bt5_title_list
=
self
.
portal
.
portal_templates
.
getInstalledBusinessTemplateTitleList
()
bt5_title_list
=
self
.
portal
.
portal_templates
.
getInstalledBusinessTemplateTitleList
()
expected_list
=
self
.
standard_bt5_list
+
bt5_tuple
expected_list
=
self
.
standard_bt5_list
+
bt5_tuple
self
.
assertEquals
([
i
for
i
in
expected_list
if
i
not
in
bt5_title_list
],
[])
self
.
assertEquals
([
i
for
i
in
expected_list
if
i
not
in
bt5_title_list
],
[])
self
.
assertFalse
(
bc_id
in
bt5_title_list
)
self
.
assertFalse
(
bc_id
in
bt5_title_list
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment