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
Labels
Merge Requests
16
Merge Requests
16
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
7df8d2b4
Commit
7df8d2b4
authored
Apr 23, 2021
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: Add RSS into Invoice lists
This allows user to get updated with the issued invoices.
parent
62ed5903
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_invoice_list_js.js
..._page_module/rjs_gadget_erp5_page_slap_invoice_list_js.js
+6
-3
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_invoice_list_js.xml
...page_module/rjs_gadget_erp5_page_slap_invoice_list_js.xml
+2
-2
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/Base_getFeedUrl.py
...tem/portal_skins/slapos_hal_json_style/Base_getFeedUrl.py
+3
-0
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_invoice_list_js.js
View file @
7df8d2b4
...
...
@@ -181,7 +181,9 @@
})
.
push
(
function
(
contract_relative_url
)
{
var
promise_list
=
[
gadget
.
getUrlFor
({
command
:
"
change
"
,
options
:
{
"
page
"
:
"
slapos
"
}})
gadget
.
getUrlFor
({
command
:
"
change
"
,
options
:
{
"
page
"
:
"
slapos
"
}}),
gadget
.
getUrlFor
({
command
:
"
change
"
,
options
:
{
"
page
"
:
"
slap_rss_ticket
"
,
"
jio_key
"
:
"
accounting_module
"
}})
];
if
(
contract_relative_url
)
{
promise_list
.
push
(
...
...
@@ -195,10 +197,11 @@
var
header_dict
=
{
page_title
:
invoices_translation
,
selection_url
:
result
[
0
],
rss_url
:
result
[
1
],
filter_action
:
true
};
if
(
result
[
1
])
{
header_dict
.
contract_url
=
result
[
1
];
if
(
result
[
2
])
{
header_dict
.
contract_url
=
result
[
2
];
}
return
gadget
.
updateHeader
(
header_dict
);
});
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_invoice_list_js.xml
View file @
7df8d2b4
...
...
@@ -236,7 +236,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
86.54956.15848.43639
</string>
</value>
<value>
<string>
9
91.36496.17865.938
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>
16
02092381.9
</float>
<float>
16
19144094.17
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/Base_getFeedUrl.py
View file @
7df8d2b4
...
...
@@ -11,6 +11,9 @@ document_path = ""
if
context
.
getPortalType
()
in
[
"Hosting Subscription"
,
"Computer"
]:
document_path
=
"/%s"
%
context
.
getRelativeUrl
()
if
context
.
getPortalType
()
in
[
"Accounting Transaction Module"
]:
document_path
=
"/invoice"
web_site
=
context
.
getWebSiteValue
()
request_url
=
"%s/feed%s"
%
(
web_site
.
absolute_url
(),
document_path
)
...
...
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