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
7
Merge Requests
7
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
Jérome Perrin
erp5
Commits
08071916
Commit
08071916
authored
Jan 13, 2023
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master' into zope4py2
parents
ea0850ca
784c5ab2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getBankAccountItemList.py
...s/erp5_accounting/AccountModule_getBankAccountItemList.py
+4
-2
bt5/erp5_accounting/TestTemplateItem/portal_components/test.erp5.testAccounting.py
...emplateItem/portal_components/test.erp5.testAccounting.py
+2
-2
No files found.
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getBankAccountItemList.py
View file @
08071916
...
...
@@ -70,12 +70,14 @@ bank_account_list = [brain.getObject() for brain in sorted(
)]
def
getItemList
(
bank_account
):
def
getItemList
(
bank_account
,
warning
=
False
):
reference
=
bank_account
.
getReference
()
title
=
bank_account
.
getTitle
()
or
bank_account
.
getSourceFreeText
()
or
bank_account
.
getSourceTitle
()
label
=
title
if
reference
!=
title
:
label
=
'{} - {}'
.
format
(
reference
,
title
)
if
warning
:
label
=
'??? ({})'
.
format
(
label
)
return
(
label
,
bank_account
.
getRelativeUrl
())
...
...
@@ -98,6 +100,6 @@ if base_category is not None:
translateString
(
'Invalid bank account from ${entity_title}'
,
mapping
=
{
'entity_title'
:
current_value
.
getParentTitle
()}),
None
))
item_list
.
append
(
getItemList
(
current_value
))
item_list
.
append
(
getItemList
(
current_value
,
warning
=
True
))
return
item_list
bt5/erp5_accounting/TestTemplateItem/portal_components/test.erp5.testAccounting.py
View file @
08071916
...
...
@@ -4988,7 +4988,7 @@ class TestTransactions(AccountingTestCase):
[
(
''
,
''
),
(
'Invalid bank account from Client 1'
,
None
),
(
'
client_1 bank account
'
,
client_1_bank_account
.
getRelativeUrl
()),
(
'
??? (client_1 bank account)
'
,
client_1_bank_account
.
getRelativeUrl
()),
],
)
...
...
@@ -5013,7 +5013,7 @@ class TestTransactions(AccountingTestCase):
[
(
''
,
''
),
(
'Invalid bank account from Client 1'
,
None
),
(
'
client_1 bank account
'
,
client_1_bank_account
.
getRelativeUrl
()),
(
'
??? (client_1 bank account)
'
,
client_1_bank_account
.
getRelativeUrl
()),
],
)
...
...
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