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
0
Issues
0
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
Hamza
erp5
Commits
705a86db
Commit
705a86db
authored
May 14, 2018
by
Tomáš Peterka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_accounting] Mark actions which are JIO compatible
parent
1454f3a0
Changes
26
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
79 additions
and
73 deletions
+79
-73
bt5/erp5_accounting/ActionTemplateItem/portal_types/Account/grouping_reference_fast_input.xml
...em/portal_types/Account/grouping_reference_fast_input.xml
+2
-2
bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/account_statement_export.xml
...nting%20Transaction%20Module/account_statement_export.xml
+2
-2
bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/accounting_line_export.xml
...ounting%20Transaction%20Module/accounting_line_export.xml
+2
-2
bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/aged_balance_export.xml
...Accounting%20Transaction%20Module/aged_balance_export.xml
+2
-2
bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/create_related_payments.xml
...unting%20Transaction%20Module/create_related_payments.xml
+2
-2
bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/create_reversal.xml
...pes/Accounting%20Transaction%20Module/create_reversal.xml
+2
-2
bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/general_ledger_export.xml
...counting%20Transaction%20Module/general_ledger_export.xml
+2
-2
bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/grouping_reference_fast_input.xml
...%20Transaction%20Module/grouping_reference_fast_input.xml
+2
-2
bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/third_parties_export.xml
...ccounting%20Transaction%20Module/third_parties_export.xml
+2
-2
bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/trial_balance_export.xml
...ccounting%20Transaction%20Module/trial_balance_export.xml
+2
-2
bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/account_statement_export.xml
...em/portal_types/Organisation/account_statement_export.xml
+2
-2
bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/account_statement_report.xml
...em/portal_types/Organisation/account_statement_report.xml
+2
-2
bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/general_ledger_export.xml
...eItem/portal_types/Organisation/general_ledger_export.xml
+2
-2
bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/general_ledger_report.xml
...eItem/portal_types/Organisation/general_ledger_report.xml
+2
-2
bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/grouping_reference_fast_input.xml
...rtal_types/Organisation/grouping_reference_fast_input.xml
+2
-2
bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/account_statement_export.xml
...lateItem/portal_types/Person/account_statement_export.xml
+2
-2
bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/account_statement_report.xml
...lateItem/portal_types/Person/account_statement_report.xml
+2
-2
bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/general_ledger_export.xml
...emplateItem/portal_types/Person/general_ledger_export.xml
+2
-2
bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/general_ledger_report.xml
...emplateItem/portal_types/Person/general_ledger_report.xml
+2
-2
bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/grouping_reference_fast_input.xml
...tem/portal_types/Person/grouping_reference_fast_input.xml
+2
-2
bt5/erp5_accounting/ActionTemplateItem/portal_types/Purchase%20Invoice%20Transaction/add_purchase_invoice_transaction_line.xml
...e%20Transaction/add_purchase_invoice_transaction_line.xml
+2
-2
bt5/erp5_accounting/ActionTemplateItem/portal_types/Sale%20Invoice%20Transaction/add_sale_invoice_transaction_line.xml
...voice%20Transaction/add_sale_invoice_transaction_line.xml
+2
-2
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionLine_view/my_aggregate_title_list.xml
...ccountingTransactionLine_view/my_aggregate_title_list.xml
+1
-1
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_createRelatedPaymentTransactionList.py
...gTransactionModule_createRelatedPaymentTransactionList.py
+10
-7
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_setGroupingReference.py
...nting/AccountingTransactionModule_setGroupingReference.py
+23
-20
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_viewAgedBalanceReportDialog/your_account_type.xml
...nModule_viewAgedBalanceReportDialog/your_account_type.xml
+1
-1
No files found.
bt5/erp5_accounting/ActionTemplateItem/portal_types/Account/grouping_reference_fast_input.xml
View file @
705a86db
...
...
@@ -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>
...
...
bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/account_statement_export.xml
View file @
705a86db
...
...
@@ -16,13 +16,13 @@
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_exchange
</string>
<string>
action_type/object_
jio_
exchange
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_exchange
</string>
</value>
<value>
<string>
object_
jio_
exchange
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
...
...
bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/accounting_line_export.xml
View file @
705a86db
...
...
@@ -16,13 +16,13 @@
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_exchange
</string>
<string>
action_type/object_
jio_
exchange
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_exchange
</string>
</value>
<value>
<string>
object_
jio_
exchange
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
...
...
bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/aged_balance_export.xml
View file @
705a86db
...
...
@@ -16,13 +16,13 @@
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_exchange
</string>
<string>
action_type/object_
jio_
exchange
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_exchange
</string>
</value>
<value>
<string>
object_
jio_
exchange
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
...
...
bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/create_related_payments.xml
View file @
705a86db
...
...
@@ -16,13 +16,13 @@
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_action
</string>
<string>
action_type/object_
jio_
action
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_action
</string>
</value>
<value>
<string>
object_
jio_
action
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
...
...
bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/create_reversal.xml
View file @
705a86db
...
...
@@ -16,13 +16,13 @@
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_action
</string>
<string>
action_type/object_
jio_
action
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_action
</string>
</value>
<value>
<string>
object_
jio_
action
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
...
...
bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/general_ledger_export.xml
View file @
705a86db
...
...
@@ -16,13 +16,13 @@
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_exchange
</string>
<string>
action_type/object_
jio_
exchange
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_exchange
</string>
</value>
<value>
<string>
object_
jio_
exchange
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
...
...
bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/grouping_reference_fast_input.xml
View file @
705a86db
...
...
@@ -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>
...
...
bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/third_parties_export.xml
View file @
705a86db
...
...
@@ -16,13 +16,13 @@
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_exchange
</string>
<string>
action_type/object_
jio_
exchange
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_exchange
</string>
</value>
<value>
<string>
object_
jio_
exchange
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
...
...
bt5/erp5_accounting/ActionTemplateItem/portal_types/Accounting%20Transaction%20Module/trial_balance_export.xml
View file @
705a86db
...
...
@@ -16,13 +16,13 @@
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_exchange
</string>
<string>
action_type/object_
jio_
exchange
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_exchange
</string>
</value>
<value>
<string>
object_
jio_
exchange
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
...
...
bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/account_statement_export.xml
View file @
705a86db
...
...
@@ -16,13 +16,13 @@
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_exchange
</string>
<string>
action_type/object_
jio_
exchange
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_exchange
</string>
</value>
<value>
<string>
object_
jio_
exchange
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
...
...
bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/account_statement_report.xml
View file @
705a86db
...
...
@@ -16,13 +16,13 @@
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_report
</string>
<string>
action_type/object_
jio_
report
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_report
</string>
</value>
<value>
<string>
object_
jio_
report
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
...
...
bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/general_ledger_export.xml
View file @
705a86db
...
...
@@ -16,13 +16,13 @@
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_exchange
</string>
<string>
action_type/object_
jio_
exchange
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_exchange
</string>
</value>
<value>
<string>
object_
jio_
exchange
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
...
...
bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/general_ledger_report.xml
View file @
705a86db
...
...
@@ -16,13 +16,13 @@
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_report
</string>
<string>
action_type/object_
jio_
report
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_report
</string>
</value>
<value>
<string>
object_
jio_
report
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
...
...
bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/grouping_reference_fast_input.xml
View file @
705a86db
...
...
@@ -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>
...
...
bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/account_statement_export.xml
View file @
705a86db
...
...
@@ -16,13 +16,13 @@
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_exchange
</string>
<string>
action_type/object_
jio_
exchange
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_exchange
</string>
</value>
<value>
<string>
object_
jio_
exchange
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
...
...
bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/account_statement_report.xml
View file @
705a86db
...
...
@@ -16,13 +16,13 @@
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_report
</string>
<string>
action_type/object_
jio_
report
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_report
</string>
</value>
<value>
<string>
object_
jio_
report
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
...
...
bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/general_ledger_export.xml
View file @
705a86db
...
...
@@ -16,13 +16,13 @@
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_exchange
</string>
<string>
action_type/object_
jio_
exchange
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_exchange
</string>
</value>
<value>
<string>
object_
jio_
exchange
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
...
...
bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/general_ledger_report.xml
View file @
705a86db
...
...
@@ -16,13 +16,13 @@
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_report
</string>
<string>
action_type/object_
jio_
report
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_report
</string>
</value>
<value>
<string>
object_
jio_
report
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
...
...
bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/grouping_reference_fast_input.xml
View file @
705a86db
...
...
@@ -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>
...
...
bt5/erp5_accounting/ActionTemplateItem/portal_types/Purchase%20Invoice%20Transaction/add_purchase_invoice_transaction_line.xml
View file @
705a86db
...
...
@@ -16,13 +16,13 @@
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_action
</string>
<string>
action_type/object_
jio_
action
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_action
</string>
</value>
<value>
<string>
object_
jio_
action
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
...
...
bt5/erp5_accounting/ActionTemplateItem/portal_types/Sale%20Invoice%20Transaction/add_sale_invoice_transaction_line.xml
View file @
705a86db
...
...
@@ -16,13 +16,13 @@
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_action
</string>
<string>
action_type/object_
jio_
action
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_action
</string>
</value>
<value>
<string>
object_
jio_
action
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
...
...
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionLine_view/my_aggregate_title_list.xml
View file @
705a86db
...
...
@@ -175,7 +175,7 @@
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: list(context.getPortalItemTypeList()) +
(\'Payment Transaction Group\', )
</string>
</value>
<value>
<string>
python: list(context.getPortalItemTypeList()) +
[\'Payment Transaction Group\', ]
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_createRelatedPaymentTransactionList.py
View file @
705a86db
...
...
@@ -4,9 +4,13 @@ portal = context.getPortalObject()
countMessage
=
portal
.
portal_activities
.
countMessage
invoice_type_list
=
portal
.
getPortalInvoiceTypeList
()
portal
.
portal_selections
.
updateSelectionCheckedUidList
(
selection_name
,
listbox_uid
,
uids
)
selection_uid_list
=
portal
.
portal_selections
.
getSelectionCheckedUidsFor
(
selection_name
)
if
selection_name
:
portal
.
portal_selections
.
updateSelectionCheckedUidList
(
selection_name
,
listbox_uid
,
uids
)
selection_uid_list
=
portal
.
portal_selections
.
getSelectionCheckedUidsFor
(
selection_name
)
else
:
selection_uid_list
=
uids
if
selection_uid_list
:
object_list
=
[
brain
.
getObject
()
for
brain
in
portal
.
portal_catalog
(
uid
=
selection_uid_list
)]
else
:
...
...
@@ -20,10 +24,9 @@ portal.portal_selections.setSelectionParamsFor('accounting_create_related_paymen
# XXX prevent to call this on the whole module:
if
len
(
object_list
)
>=
1000
:
return
context
.
Base_redirect
(
form_id
,
keep_items
=
{
'portal_status_message'
:
translateString
(
'Refusing to process more than 1000 objects, check your selection.'
)})
return
context
.
Base_renderMessage
(
translateString
(
'Refusing to process more than 1000 objects, check your selection.'
),
'warning'
)
tag
=
'payment_creation_%s'
%
random
.
randint
(
0
,
1000
)
activated
=
0
...
...
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_setGroupingReference.py
View file @
705a86db
...
...
@@ -8,11 +8,13 @@ psm = Base_translateString('Nothing matches.')
request
=
container
.
REQUEST
# update selected uids
portal
.
portal_selections
.
updateSelectionCheckedUidList
(
list_selection_name
,
uids
=
uids
,
listbox_uid
=
listbox_uid
,
REQUEST
=
request
)
uids
=
portal
.
portal_selections
.
getSelectionCheckedUidsFor
(
list_selection_name
)
if
list_selection_name
:
portal
.
portal_selections
.
updateSelectionCheckedUidList
(
list_selection_name
,
uids
=
uids
,
listbox_uid
=
listbox_uid
,
REQUEST
=
request
)
uids
=
portal
.
portal_selections
.
getSelectionCheckedUidsFor
(
list_selection_name
)
# XXX when should it be validated ?
# Kato: It is already validated because this is Form Dialog script
if
node
==
''
:
node
=
context
.
REQUEST
.
get
(
'field_your_node'
,
node
)
if
mirror_section
==
''
:
...
...
@@ -22,13 +24,13 @@ if grouping == '':
grouping
=
request
.
get
(
'your_grouping'
,
request
.
get
(
'field_your_grouping'
,
grouping
))
# edit selection for dialog parameters
portal
.
portal_selections
.
setSelectionParamsFor
(
'grouping_reference_fast_input_selection'
,
params
=
dict
(
node
=
node
,
grouping
=
grouping
,
mirror_section
=
mirror_section
))
if
list_selection_name
:
# edit selection for dialog parameters
portal
.
portal_selections
.
setSelectionParamsFor
(
'grouping_reference_fast_input_selection'
,
params
=
dict
(
node
=
node
,
grouping
=
grouping
,
mirror_section
=
mirror_section
))
# calculate total selected amount
total_selected_amount
=
0
...
...
@@ -42,9 +44,9 @@ if uids:
request
.
set
(
'total_selected_amount'
,
total_selected_amount
)
if
update
:
re
quest
.
set
(
'portal_status_message'
,
Base_translateString
(
'Updated'
))
return
context
.
AccountingTransactionModule_viewGroupingFastInputDialog
(
request
)
re
turn
context
.
Base_renderForm
(
'AccountingTransactionModule_viewGroupingFastInputDialog'
,
keep_items
=
{
'portal_status_message'
:
Base_translateString
(
'Updated'
)}
)
# otherwise, try to group...
if
grouping
==
'grouping'
:
...
...
@@ -53,9 +55,9 @@ if grouping == 'grouping':
if
grouped_line_list
:
psm
=
Base_translateString
(
'${grouped_line_count} lines grouped.'
,
mapping
=
dict
(
grouped_line_count
=
len
(
grouped_line_list
)))
# make sure nothing will be checked next time
portal
.
portal_selections
.
setSelectionCheckedUidsFor
(
list_selection_name
,
[])
if
list_selection_name
:
# make sure nothing will be checked next time
portal
.
portal_selections
.
setSelectionCheckedUidsFor
(
list_selection_name
,
[])
# we check if we can mark some transaction as payed.
transaction_list
=
{}
...
...
@@ -119,8 +121,9 @@ else:
psm
=
Base_translateString
(
'${ungrouped_line_count} lines ungrouped.'
,
mapping
=
dict
(
ungrouped_line_count
=
len
(
ungrouped_line_list
)))
# make sure nothing will be checked next time
portal
.
portal_selections
.
setSelectionCheckedUidsFor
(
list_selection_name
,
[])
if
list_selection_name
:
# make sure nothing will be checked next time
portal
.
portal_selections
.
setSelectionCheckedUidsFor
(
list_selection_name
,
[])
re
quest
.
set
(
'portal_status_message'
,
psm
)
return
context
.
AccountingTransactionModule_viewGroupingFastInputDialog
(
request
)
re
turn
context
.
Base_renderForm
(
'AccountingTransactionModule_viewGroupingFastInputDialog'
,
keep_items
=
{
'portal_status_message'
:
psm
}
)
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_viewAgedBalanceReportDialog/your_account_type.xml
View file @
705a86db
...
...
@@ -223,7 +223,7 @@
</item>
<item>
<key>
<string>
first_item
</string>
</key>
<value>
<int>
0
</int>
</value>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
hidden
</string>
</key>
...
...
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