Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_workflow
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenjie.zheng
erp5_workflow
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):
,
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
)
...
...
product/ERP5Configurator/Document/AccountingPeriodConfiguratorItem.py
View file @
27b0a4c0
...
...
@@ -60,13 +60,11 @@ 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'
,
start_date
=
self
.
getStartDate
(),
stop_date
=
self
.
getStopDate
(),
short_title
=
self
.
getShortTitle
(),
title
=
self
.
getTitle
())
organisation
.
newContent
(
portal_type
=
'Accounting Period'
,
start_date
=
self
.
getStartDate
(),
stop_date
=
self
.
getStopDate
(),
short_title
=
self
.
getShortTitle
(),
title
=
self
.
getTitle
())
# no need to 'install' in the business template, because it's contain as
# subobject of an organisation we already added.
product/ERP5Configurator/Document/PermissionConfiguratorItem.py
View file @
27b0a4c0
...
...
@@ -58,7 +58,7 @@ class PermissionConfiguratorItem(ConfiguratorItemMixin, XMLObject):
template_module_id_list
=
[]
module_permissions_map
=
{}
sheets_dict
=
business_configuration
.
ConfigurationTemplate_readOOCalcFile
(
\
self
.
filename
)
self
.
filename
)
for
module_id
,
permissions
in
sheets_dict
.
items
():
module_permissions
=
{}
for
permission
in
permissions
:
...
...
product/ERP5Configurator/tests/ConfiguratorTestMixin.py
View file @
27b0a4c0
...
...
@@ -531,7 +531,6 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase):
bt5_title_list
=
self
.
portal
.
portal_templates
.
getInstalledBusinessTemplateTitleList
()
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
)
...
...
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