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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Binh
erp5
Commits
0cd83b41
Commit
0cd83b41
authored
Feb 07, 2018
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TestERP5BankingMixin: Use shorter document ids.
Current scheme causes paths to exceed catalog limit.
parent
7117abf0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
product/ERP5Banking/tests/TestERP5BankingMixin.py
product/ERP5Banking/tests/TestERP5BankingMixin.py
+2
-3
No files found.
product/ERP5Banking/tests/TestERP5BankingMixin.py
View file @
0cd83b41
...
@@ -1131,8 +1131,7 @@ class TestERP5BankingMixin(ERP5TypeTestCase):
...
@@ -1131,8 +1131,7 @@ class TestERP5BankingMixin(ERP5TypeTestCase):
"""
"""
# we need to have a unique inventory group id by destination
# we need to have a unique inventory group id by destination
inventory_group_id
=
'inventory_group_%s_%s%s'
%
\
inventory_group_id
=
'%s%s'
%
(
destination
.
getUid
(),
extra_id
)
(
destination
.
getParentValue
().
getUid
(),
destination
.
getId
(),
extra_id
)
if
start_date
is
None
:
if
start_date
is
None
:
start_date
=
DateTime
()
-
1
start_date
=
DateTime
()
-
1
if
not
hasattr
(
self
,
inventory_group_id
):
if
not
hasattr
(
self
,
inventory_group_id
):
...
@@ -1145,7 +1144,7 @@ class TestERP5BankingMixin(ERP5TypeTestCase):
...
@@ -1145,7 +1144,7 @@ class TestERP5BankingMixin(ERP5TypeTestCase):
inventory_group
=
getattr
(
self
,
inventory_group_id
)
inventory_group
=
getattr
(
self
,
inventory_group_id
)
# get/create the inventory based on currency
# get/create the inventory based on currency
inventory_id
=
'
%s_inventory_%s'
%
(
inventory_group_id
,
currency
.
getId
())
inventory_id
=
'
inventory_%s_%s'
%
(
inventory_group
.
getUid
()
,
currency
.
getId
())
if
not
hasattr
(
self
,
inventory_id
):
if
not
hasattr
(
self
,
inventory_id
):
inventory
=
inventory_group
.
newContent
(
id
=
inventory_id
,
inventory
=
inventory_group
.
newContent
(
id
=
inventory_id
,
portal_type
=
'Cash Inventory'
,
portal_type
=
'Cash Inventory'
,
...
...
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