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
137
Merge Requests
137
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
06f701a4
Commit
06f701a4
authored
Jan 24, 2018
by
Arnaud Fontaine
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 'ledger' category to Trade Model Path.
parent
9ac52814
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
138 additions
and
1 deletion
+138
-1
bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_view.xml
...plateItem/portal_skins/erp5_trade/TradeModelPath_view.xml
+1
-0
bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_view/my_ledger.xml
...portal_skins/erp5_trade/TradeModelPath_view/my_ledger.xml
+110
-0
product/ERP5/Document/BusinessProcess.py
product/ERP5/Document/BusinessProcess.py
+1
-1
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/TradeModelPath/ledger_category.xml
...portal_property_sheets/TradeModelPath/ledger_category.xml
+26
-0
No files found.
bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_view.xml
View file @
06f701a4
...
...
@@ -105,6 +105,7 @@
<string>
my_payment_mode
</string>
<string>
my_delivery_mode
</string>
<string>
my_incoterm
</string>
<string>
my_ledger
</string>
</list>
</value>
</item>
...
...
bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeModelPath_view/my_ledger.xml
0 → 100644
View file @
06f701a4
<?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>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_ledger
</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>
</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>
items
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_view_mode_ledger
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewPDMFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
items
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Ledger
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: getattr(here.portal_categories[field.getId().replace(\'my_\', \'\', 1)], preferences.getPreference(\'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\'))(local_sort_id=(\'int_index\', \'translated_title\'), checked_permission=\'View\')
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/Document/BusinessProcess.py
View file @
06f701a4
...
...
@@ -769,7 +769,7 @@ class BusinessProcess(Path, XMLObject):
property_dict
.
update
(
trade_model_path
.
getArrowCategoryDict
(
context
=
amount
))
# More categories
for
base_category
in
(
'delivery_mode'
,
'incoterm'
,
'payment_mode'
):
for
base_category
in
(
'delivery_mode'
,
'incoterm'
,
'payment_mode'
,
'ledger'
):
value
=
trade_model_path
.
getPropertyList
(
base_category
)
if
value
:
property_dict
[
base_category
]
=
value
...
...
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/TradeModelPath/ledger_category.xml
0 → 100644
View file @
06f701a4
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Category Property"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ledger_category
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category Property
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
Arnaud Fontaine
@arnau
mentioned in commit
b28c0c00
·
Mar 13, 2018
mentioned in commit
b28c0c00
mentioned in commit b28c0c009f4cf9f0fe93a75fa7de50247a16d4ca
Toggle commit list
Arnaud Fontaine
@arnau
mentioned in commit
37fa9e68
·
Mar 13, 2018
mentioned in commit
37fa9e68
mentioned in commit 37fa9e68eaedf469787b7a55ec30953cc6633d47
Toggle commit list
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