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
d971b965
Commit
d971b965
authored
Sep 25, 2019
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP [erp5_accounting] Active actions for ERP5JS
parent
9773a2b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
8 deletions
+16
-8
bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/grouping_reference_fast_input.xml
...%20Transaction%20Module/grouping_reference_fast_input.xml
+5
-3
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_setGroupingReference.py
...nting/AccountingTransactionModule_setGroupingReference.py
+11
-5
No files found.
bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/grouping_reference_fast_input.xml
View file @
d971b965
...
...
@@ -16,13 +16,13 @@
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_button
</string>
<string>
action_type/object_
jio_
button
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_button
</string>
</value>
<value>
<string>
object_
jio_
button
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
...
...
@@ -30,7 +30,9 @@
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
icon
</string>
</key>
...
...
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_setGroupingReference.py
View file @
d971b965
...
...
@@ -42,9 +42,12 @@ if uids:
request
.
set
(
'total_selected_amount'
,
total_selected_amount
)
if
update
:
request
.
set
(
'portal_status_message'
,
Base_translateString
(
'Updated'
))
return
context
.
AccountingTransactionModule_viewGroupingFastInputDialog
(
request
)
context
.
Base_updateDialogForm
()
return
context
.
Base_renderForm
(
'AccountingTransactionModule_viewGroupingFastInputDialog'
,
REQUEST
=
request
,
keep_items
=
{
'portal_status_message'
:
Base_translateString
(
'Updated'
)}
)
# otherwise, try to group...
if
grouping
==
'grouping'
:
...
...
@@ -124,5 +127,8 @@ else:
# make sure nothing will be checked next time
portal
.
portal_selections
.
setSelectionCheckedUidsFor
(
list_selection_name
,
[])
request
.
set
(
'portal_status_message'
,
psm
)
return
context
.
AccountingTransactionModule_viewGroupingFastInputDialog
(
request
)
return
context
.
Base_redirect
(
'AccountingTransactionModule_viewGroupingFastInputDialog'
,
REQUEST
=
request
,
keep_items
=
{
'portal_status_message'
:
psm
}
)
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