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
1
Issues
1
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
Roque
erp5
Commits
e3243bdf
Commit
e3243bdf
authored
Mar 27, 2024
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: clean form view
parent
52cf97b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
13 deletions
+6
-13
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_form_view_js.js
...plateItem/web_page_module/gadget_officejs_form_view_js.js
+4
-11
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_form_view_js.xml
...lateItem/web_page_module/gadget_officejs_form_view_js.xml
+2
-2
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_form_view_js.js
View file @
e3243bdf
...
...
@@ -154,7 +154,8 @@
// XXX fix date rendering
.
allowPublicAcquisition
(
"
jio_allDocs
"
,
function
(
param_list
)
{
var
gadget
=
this
,
jio_gadget
;
console
.
log
(
"
jio_allDocs params
"
,
param_list
[
0
]);
//TODO make this customizable from config
//add a gadget reference on portal type or query config?
if
(
param_list
[
0
].
query
.
indexOf
(
'
portal_type:"Promise"
'
)
!==
-
1
&&
gadget
.
state
.
doc
&&
gadget
.
state
.
doc
.
source
)
{
return
new
RSVP
.
Queue
()
...
...
@@ -163,9 +164,6 @@
})
.
push
(
function
(
result
)
{
jio_gadget
=
result
;
console
.
log
(
"
jio_alldocs for a promise!
"
);
console
.
log
(
"
gadget.state.doc:
"
,
gadget
.
state
.
doc
);
console
.
log
(
"
creating webhttp jio with url:
"
,
gadget
.
state
.
doc
.
source_url
);
return
jio_gadget
.
createJio
({
type
:
"
webhttp
"
,
// XXX fix of url
...
...
@@ -173,14 +171,11 @@
});
})
.
push
(
function
()
{
console
.
log
(
"
jio created
"
);
console
.
log
(
"
get id:
"
,
gadget
.
state
.
doc
.
source
+
"
.history
"
);
// get history file on live
return
jio_gadget
.
get
(
gadget
.
state
.
doc
.
source
+
"
.history
"
)
.
push
(
undefined
,
function
(
error
)
{
console
.
log
(
"
error, no status_history
"
);
if
(
error
.
name
===
"
cancel
"
)
{
return
undefined
;
}
...
...
@@ -279,11 +274,12 @@
});
}
}
console
.
log
(
"
result:
"
,
result
);
return
result
;
});
});
}
//TODO make this customizable from config
//use global var set from config style_columns?
return
gadget
.
jio_allDocs
(
param_list
[
0
])
.
push
(
function
(
result
)
{
var
i
,
date
,
len
=
result
.
data
.
total_rows
,
date_key_array
,
...
...
@@ -319,9 +315,6 @@
};
}
});
console
.
log
(
"
jio_allDocs result data row
"
,
result
.
data
.
rows
[
i
].
value
);
//TODO make it customizable from config
//use global var set from config style_columns
status_key_array
.
forEach
((
status_key
)
=>
{
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
status_key
))
{
status
=
result
.
data
.
rows
[
i
].
value
[
status_key
];
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_form_view_js.xml
View file @
e3243bdf
...
...
@@ -258,7 +258,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
1015.3
0241.64537.63761
</string>
</value>
<value>
<string>
1015.3
2763.29396.41386
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -278,7 +278,7 @@
</tuple>
<state>
<tuple>
<float>
1711
392147.81
</float>
<float>
1711
543420.48
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
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