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
alecs_myu
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
Hide 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:
return
if
not
self
.
test
(
delivery_amount
):
return
self
=
self
.
asPredicate
()
reference
=
self
.
getReference
()
if
reference
:
if
reference
in
reference_set
:
...
...
@@ -244,8 +245,10 @@ class AmountGeneratorMixin:
base_application_list
=
self
.
getBaseApplicationList
()
base_contribution_list
=
self
.
getBaseContributionList
()
for
cell
in
amount_generator_cell_list
:
if
not
(
cell
is
self
or
cell
.
test
(
delivery_amount
)):
continue
if
cell
is
not
self
:
if
not
cell
.
test
(
delivery_amount
):
continue
cell
=
cell
.
asPredicate
()
key
=
cell
.
getCellAggregateKey
()
try
:
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