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
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Lu Xu
erp5
Commits
24fc40f8
Commit
24fc40f8
authored
Apr 22, 2014
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for dynamic amount generator lines/cells
parent
eee1621b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
product/ERP5/mixin/amount_generator.py
product/ERP5/mixin/amount_generator.py
+5
-2
No files found.
product/ERP5/mixin/amount_generator.py
View file @
24fc40f8
...
@@ -229,6 +229,7 @@ class AmountGeneratorMixin:
...
@@ -229,6 +229,7 @@ class AmountGeneratorMixin:
return
return
if
not
self
.
test
(
delivery_amount
):
if
not
self
.
test
(
delivery_amount
):
return
return
self
=
self
.
asPredicate
()
reference
=
self
.
getReference
()
reference
=
self
.
getReference
()
if
reference
:
if
reference
:
if
reference
in
reference_set
:
if
reference
in
reference_set
:
...
@@ -244,8 +245,10 @@ class AmountGeneratorMixin:
...
@@ -244,8 +245,10 @@ class AmountGeneratorMixin:
base_application_list
=
self
.
getBaseApplicationList
()
base_application_list
=
self
.
getBaseApplicationList
()
base_contribution_list
=
self
.
getBaseContributionList
()
base_contribution_list
=
self
.
getBaseContributionList
()
for
cell
in
amount_generator_cell_list
:
for
cell
in
amount_generator_cell_list
:
if
not
(
cell
is
self
or
cell
.
test
(
delivery_amount
)):
if
cell
is
not
self
:
if
not
cell
.
test
(
delivery_amount
):
continue
continue
cell
=
cell
.
asPredicate
()
key
=
cell
.
getCellAggregateKey
()
key
=
cell
.
getCellAggregateKey
()
try
:
try
:
property_dict
=
cell_aggregate
[
key
]
property_dict
=
cell_aggregate
[
key
]
...
...
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