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
amrani
erp5
Commits
6e8f5b56
Commit
6e8f5b56
authored
Dec 20, 2017
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP
parent
cfc2a84f
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
119 additions
and
10 deletions
+119
-10
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_viewFrenchAccountingTransactionFileExtended.py
...tionModule_viewFrenchAccountingTransactionFileExtended.py
+1
-0
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_viewFrenchAccountingTransactionFileExtended.xml
...ionModule_viewFrenchAccountingTransactionFileExtended.xml
+1
-1
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_viewFrenchAccountingTransactionFileExtendedActive.py
...dule_viewFrenchAccountingTransactionFileExtendedActive.py
+3
-7
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_viewFrenchAccountingTransactionFileExtendedActive.xml
...ule_viewFrenchAccountingTransactionFileExtendedActive.xml
+1
-1
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_viewFrenchAccountingTransactionFileExtendedDialog.xml
...ule_viewFrenchAccountingTransactionFileExtendedDialog.xml
+2
-1
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_viewFrenchAccountingTransactionFileExtendedDialog/your_group_by.xml
...AccountingTransactionFileExtendedDialog/your_group_by.xml
+111
-0
No files found.
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_viewFrenchAccountingTransactionFileExtended.py
View file @
6e8f5b56
...
...
@@ -22,6 +22,7 @@ context.activate().AccountingTransactionModule_viewFrenchAccountingTransactionFi
section_category
,
section_category_strict
,
at_date
,
group_by
,
simulation_state
,
ledger
,
user_name
=
person_value
.
Person_getUserId
(),
...
...
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_viewFrenchAccountingTransactionFileExtended.xml
View file @
6e8f5b56
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
section_category, section_category_strict, at_date, simulation_state, ledger=None, form_id=None, **kw
</string>
</value>
<value>
<string>
section_category, section_category_strict, at_date,
group_by,
simulation_state, ledger=None, form_id=None, **kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_viewFrenchAccountingTransactionFileExtendedActive.py
View file @
6e8f5b56
...
...
@@ -13,10 +13,6 @@ active_process = portal.portal_activities.newActiveProcess()
priority
=
4
#### AccountingTransactionModule_viewFrenchAccountingTransactionFileForPortalType
#kind = 'portal_type'
#kind = 'ledger'
kind
=
'portal_type_ledger'
method_kw
=
{
'section_uid_list'
:
section_uid_list
,
}
...
...
@@ -44,7 +40,7 @@ if ledger is not None:
# (journal_code, journal_lib, search_kw)
journal_search_kw_list
=
[]
if
kind
==
'ledger'
:
if
group_by
==
'ledger'
:
if
not
ledger_obj_list
:
for
ledger_relative_url
,
_
in
context
.
AccountingTransactionModule_getLedgerItemList
():
ledger_obj_list
.
append
(
category_tool
.
ledger
.
restrictedTraverse
(
ledger_relative_url
))
...
...
@@ -55,7 +51,7 @@ if kind == 'ledger':
ledger_search_kw
[
'default_ledger_uid'
]
=
ledger_obj
.
getUid
()
journal_search_kw_list
.
append
((
ledger_obj
.
getReference
()
or
ledger_obj
.
getId
(),
ledger_obj
.
getReference
()
or
ledger_obj
.
getId
(),
ledger_search_kw
))
elif
kind
==
'portal_type_ledger'
:
elif
group_by
==
'portal_type_ledger'
:
if
not
ledger_obj_list
:
for
ledger_relative_url
,
_
in
context
.
AccountingTransactionModule_getLedgerItemList
():
ledger_obj_list
.
append
(
category_tool
.
ledger
.
restrictedTraverse
(
ledger_relative_url
))
...
...
@@ -71,7 +67,7 @@ elif kind == 'portal_type_ledger':
portal_type_ledger_search_kw
))
#
kind
== 'portal_type'
#
group_by
== 'portal_type'
else
:
if
ledger_obj_list
:
search_kw
[
'default_ledger_uid'
]
=
[
ledger_obj
.
getUid
()
for
ledger_obj
in
ledger_obj_list
]
...
...
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_viewFrenchAccountingTransactionFileExtendedActive.xml
View file @
6e8f5b56
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
section_category, section_category_strict, at_date, simulation_state, ledger, user_name, tag, aggregate_tag, **kw
</string>
</value>
<value>
<string>
section_category, section_category_strict, at_date,
group_by,
simulation_state, ledger, user_name, tag, aggregate_tag, **kw
</string>
</value>
</item>
<item>
<key>
<string>
_proxy_roles
</string>
</key>
...
...
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_viewFrenchAccountingTransactionFileExtendedDialog.xml
View file @
6e8f5b56
...
...
@@ -35,7 +35,7 @@
</item>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
AccountingTransactionModule_viewFrenchAccountingTransaction
ExtendedFile
</string>
</value>
<value>
<string>
AccountingTransactionModule_viewFrenchAccountingTransaction
FileExtended
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
...
...
@@ -97,6 +97,7 @@
<string>
your_section_category_strict
</string>
<string>
your_at_date
</string>
<string>
your_ledger
</string>
<string>
your_group_by
</string>
</list>
</value>
</item>
...
...
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_viewFrenchAccountingTransactionFileExtendedDialog/your_group_by.xml
0 → 100644
View file @
6e8f5b56
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
items
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
your_group_by
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_dialog_mode_group_by
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewTradeFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
items
</string>
</key>
<value>
<list>
<tuple>
<string>
Portal Type
</string>
<string>
portal_type
</string>
</tuple>
<tuple>
<string>
Ledger
</string>
<string>
ledger
</string>
</tuple>
<tuple>
<string>
Both
</string>
<string>
portal_type_ledger
</string>
</tuple>
</list>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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