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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
bc534630
Commit
bc534630
authored
Jan 14, 2022
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_open_trade: copy all aggregate values
parent
c302dc5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
bt5/erp5_open_trade/DocumentTemplateItem/portal_components/document.erp5.SubscriptionItem.py
...eItem/portal_components/document.erp5.SubscriptionItem.py
+2
-1
No files found.
bt5/erp5_open_trade/DocumentTemplateItem/portal_components/document.erp5.SubscriptionItem.py
View file @
bc534630
...
@@ -142,6 +142,7 @@ class SubscriptionItem(Item, CompositionMixin, MovementGeneratorMixin,
...
@@ -142,6 +142,7 @@ class SubscriptionItem(Item, CompositionMixin, MovementGeneratorMixin,
base_application_list
=
movement
.
getBaseApplicationList
()
base_application_list
=
movement
.
getBaseApplicationList
()
base_contribution_list
=
movement
.
getBaseContributionList
()
base_contribution_list
=
movement
.
getBaseContributionList
()
use_list
=
movement
.
getUseList
()
use_list
=
movement
.
getUseList
()
aggregate_list
=
movement
.
getAggregateList
()
specialise
=
movement
.
getSpecialise
()
specialise
=
movement
.
getSpecialise
()
current_date
=
start_date
current_date
=
start_date
...
@@ -151,7 +152,7 @@ class SubscriptionItem(Item, CompositionMixin, MovementGeneratorMixin,
...
@@ -151,7 +152,7 @@ class SubscriptionItem(Item, CompositionMixin, MovementGeneratorMixin,
generated_movement
=
self
.
newContent
(
temp_object
=
True
,
generated_movement
=
self
.
newContent
(
temp_object
=
True
,
portal_type
=
'Movement'
,
portal_type
=
'Movement'
,
id
=
'subscription_%s'
%
id_index
)
id
=
'subscription_%s'
%
id_index
)
generated_movement
.
_edit
(
aggregate_
value
=
self
,
generated_movement
.
_edit
(
aggregate_
list
=
aggregate_list
,
resource
=
resource
,
resource
=
resource
,
quantity
=
quantity
,
quantity
=
quantity
,
quantity_unit
=
quantity_unit
,
quantity_unit
=
quantity_unit
,
...
...
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