Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
00d91280
Commit
00d91280
authored
Feb 22, 2023
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_panel: fetch currency from project default trade condition
parent
537c49d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/Project_addSlapOSSaleSupply.py
.../portal_skins/slapos_panel/Project_addSlapOSSaleSupply.py
+2
-3
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/Project_getPayableSoftwareProductPredicateList.py
...s_panel/Project_getPayableSoftwareProductPredicateList.py
+3
-3
No files found.
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/Project_addSlapOSSaleSupply.py
View file @
00d91280
...
...
@@ -2,10 +2,9 @@ from Products.ERP5Type.Message import translateString
portal
=
context
.
getPortalObject
()
project
=
context
preference_tool
=
portal
.
portal_preferences
trade_condition
=
project
.
getSpecialiseValue
(
portal_type
=
"Sale Trade Condition"
)
# XXX HARDCODED. Probably not the correct configuration. It may be instead linked to the project / web site?
currency
=
preference_tool
.
getPreferredAccountingTransactionCurrency
()
currency
=
trade_condition
.
getPriceCurrency
()
sale_supply
=
portal
.
sale_supply_module
.
newContent
(
title
=
"All %s"
%
DateTime
(),
...
...
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/Project_getPayableSoftwareProductPredicateList.py
View file @
00d91280
...
...
@@ -3,15 +3,15 @@ from DateTime import DateTime
project
=
context
portal
=
context
.
getPortalObject
()
trash_tool
=
portal
.
portal_trash
preference_tool
=
portal
.
portal_preferences
destination_value
=
portal
.
portal_membership
.
getAuthenticatedMember
().
getUserValue
()
allocation_predicate_list
=
project
.
Project_getSoftwareProductPredicateList
(
destination_value
=
destination_value
)
now
=
DateTime
()
# XXX HARDCODED. Probably not the correct configuration. It may be instead linked to the project / web site?
currency
=
preference_tool
.
getPreferredAccountingTransactionCurrency
()
trade_condition
=
project
.
getSpecialiseValue
(
portal_type
=
"Sale Trade Condition"
)
currency
=
trade_condition
.
getPriceCurrency
()
result_list
=
[]
...
...
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