Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Ludovic Kiefer
erp5
Commits
68d917ec
Commit
68d917ec
authored
13 years ago
by
Kazuhiko Shiozaki
Browse files
Options
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
():
...
...
This diff is collapsed.
Click to expand it.
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