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
Sebastian
erp5
Commits
68d917ec
Commit
68d917ec
authored
Jun 20, 2011
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
respect Trade Model Path's delivery_mode, incoterm and payment_mode if exists.
parent
8d17f619
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
product/ERP5/Document/BusinessProcess.py
product/ERP5/Document/BusinessProcess.py
+6
-0
No files found.
product/ERP5/Document/BusinessProcess.py
View file @
68d917ec
...
...
@@ -765,6 +765,12 @@ class BusinessProcess(Path, XMLObject):
trade_model_path
.
getArrowCategoryDict
(
context
=
amount
).
iteritems
():
property_dict
[
base_category
]
=
category_url_list
# More categories
for
base_category
in
(
'delivery_mode'
,
'incoterm'
,
'payment_mode'
):
value
=
trade_model_path
.
getPropertyList
(
base_category
)
if
len
(
value
)
>
0
:
property_dict
[
base_category
]
=
amount
.
getPropertyList
(
base_category
)
+
value
# Amount quantities - XXX-JPS maybe we should consider handling unit conversions here
# and specifying units
if
trade_model_path
.
getQuantity
():
...
...
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