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
Tomáš Peterka
erp5
Commits
fd72bda4
Commit
fd72bda4
authored
Apr 03, 2012
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Validate Currency created by the Configurator Item
The related tests were updated for check this change.
parent
7afdf612
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
bt5/erp5_configurator_standard/TestTemplateItem/testStandardConfigurationWorkflow.py
...ard/TestTemplateItem/testStandardConfigurationWorkflow.py
+1
-3
product/ERP5Configurator/Document/CurrencyConfiguratorItem.py
...uct/ERP5Configurator/Document/CurrencyConfiguratorItem.py
+1
-1
No files found.
bt5/erp5_configurator_standard/TestTemplateItem/testStandardConfigurationWorkflow.py
View file @
fd72bda4
...
@@ -281,9 +281,7 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
...
@@ -281,9 +281,7 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
currency_list
=
self
.
getBusinessConfigurationObjectList
(
business_configuration
,
'Currency'
)
currency_list
=
self
.
getBusinessConfigurationObjectList
(
business_configuration
,
'Currency'
)
self
.
assertNotEquals
(
len
(
currency_list
),
0
)
self
.
assertNotEquals
(
len
(
currency_list
),
0
)
for
currency
in
currency_list
:
for
currency
in
currency_list
:
# XXX FIXME: should the currency be validated by After Configuration Script?
self
.
assertEquals
(
'validated'
,
currency
.
getValidationState
())
# On tiolive it is not validated, is there any reason?
# self.assertEquals('validated', currency.getValidationState())
currency
.
Base_checkConsistency
()
currency
.
Base_checkConsistency
()
def
stepCheckAlarmList
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
def
stepCheckAlarmList
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
...
...
product/ERP5Configurator/Document/CurrencyConfiguratorItem.py
View file @
fd72bda4
...
@@ -72,7 +72,7 @@ class CurrencyConfiguratorItem(ConfiguratorItemMixin, XMLObject):
...
@@ -72,7 +72,7 @@ class CurrencyConfiguratorItem(ConfiguratorItemMixin, XMLObject):
title
=
title
,
title
=
title
,
reference
=
reference
,
reference
=
reference
,
base_unit_quantity
=
base_unit_quantity
)
base_unit_quantity
=
base_unit_quantity
)
currency
.
validate
()
business_configuration
.
setGlobalConfigurationAttr
(
currency_id
=
currency
.
getId
())
business_configuration
.
setGlobalConfigurationAttr
(
currency_id
=
currency
.
getId
())
## add to customer template
## add to customer template
self
.
install
(
currency
,
business_configuration
)
self
.
install
(
currency
,
business_configuration
)
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