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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
erp5
Commits
519033d6
Commit
519033d6
authored
Aug 27, 2012
by
Jean-Paul Smets
Committed by
Xiaowu Zhang
Feb 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for reference and embedded image in production variation
parent
c1b36ab7
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
321 additions
and
4 deletions
+321
-4
bt5/erp5_pdm/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
...eAllowedContentTypeTemplateItem/allowed_content_types.xml
+3
-0
bt5/erp5_pdm/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
...rtalTypePropertySheetTemplateItem/property_sheet_list.xml
+3
-0
bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Product%20Individual%20Variation.xml
...ateItem/portal_types/Product%20Individual%20Variation.xml
+19
-1
bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/IndividualVariation_view.xml
...teItem/portal_skins/erp5_pdm/IndividualVariation_view.xml
+10
-2
bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/IndividualVariation_view/my_default_image_absolute_url.xml
...ndividualVariation_view/my_default_image_absolute_url.xml
+90
-0
bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/IndividualVariation_view/my_default_image_file.xml
...p5_pdm/IndividualVariation_view/my_default_image_file.xml
+90
-0
bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/IndividualVariation_view/my_reference.xml
..._skins/erp5_pdm/IndividualVariation_view/my_reference.xml
+100
-0
bt5/erp5_pdm/bt/change_log
bt5/erp5_pdm/bt/change_log
+3
-0
bt5/erp5_pdm/bt/revision
bt5/erp5_pdm/bt/revision
+1
-1
bt5/erp5_pdm/bt/template_portal_type_allowed_content_type_list
...rp5_pdm/bt/template_portal_type_allowed_content_type_list
+1
-0
bt5/erp5_pdm/bt/template_portal_type_property_sheet_list
bt5/erp5_pdm/bt/template_portal_type_property_sheet_list
+1
-0
No files found.
bt5/erp5_pdm/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
View file @
519033d6
...
@@ -35,6 +35,9 @@
...
@@ -35,6 +35,9 @@
<item>
Sale Supply Line
</item>
<item>
Sale Supply Line
</item>
<item>
Supply Line
</item>
<item>
Supply Line
</item>
</portal_type>
</portal_type>
<portal_type
id=
"Product Individual Variation"
>
<item>
Embedded File
</item>
</portal_type>
<portal_type
id=
"Product Module"
>
<portal_type
id=
"Product Module"
>
<item>
Product
</item>
<item>
Product
</item>
</portal_type>
</portal_type>
...
...
bt5/erp5_pdm/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
View file @
519033d6
...
@@ -8,6 +8,9 @@
...
@@ -8,6 +8,9 @@
<portal_type
id=
"Product"
>
<portal_type
id=
"Product"
>
<item>
DefaultImage
</item>
<item>
DefaultImage
</item>
</portal_type>
</portal_type>
<portal_type
id=
"Product Individual Variation"
>
<item>
Reference
</item>
</portal_type>
<portal_type
id=
"Supply Cell"
>
<portal_type
id=
"Supply Cell"
>
<item>
Reference
</item>
<item>
Reference
</item>
</portal_type>
</portal_type>
...
...
bt5/erp5_pdm/PortalTypeTemplateItem/portal_types/Product%20Individual%20Variation.xml
View file @
519033d6
...
@@ -48,12 +48,30 @@
...
@@ -48,12 +48,30 @@
</item>
</item>
<item>
<item>
<key>
<string>
permission
</string>
</key>
<key>
<string>
permission
</string>
</key>
<value>
<string></string>
</value>
<value>
<none/>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
</item>
</item>
<item>
<key>
<string>
type_class
</string>
</key>
<value>
<string>
Variation
</string>
</value>
</item>
<item>
<key>
<string>
type_interface
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
type_mixin
</string>
</key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
</record>
</record>
...
...
bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/IndividualVariation_view.xml
View file @
519033d6
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
enctype
</string>
</key>
<key>
<string>
enctype
</string>
</key>
<value>
<string></string>
</value>
<value>
<string>
multipart/form-data
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
group_list
</string>
</key>
<key>
<string>
group_list
</string>
</key>
...
@@ -94,6 +94,7 @@
...
@@ -94,6 +94,7 @@
<value>
<value>
<list>
<list>
<string>
my_title
</string>
<string>
my_title
</string>
<string>
my_reference
</string>
<string>
my_variation_base_category
</string>
<string>
my_variation_base_category
</string>
</list>
</list>
</value>
</value>
...
@@ -101,7 +102,10 @@
...
@@ -101,7 +102,10 @@
<item>
<item>
<key>
<string>
right
</string>
</key>
<key>
<string>
right
</string>
</key>
<value>
<value>
<list/>
<list>
<string>
my_default_image_absolute_url
</string>
<string>
my_default_image_file
</string>
</list>
</value>
</value>
</item>
</item>
</dictionary>
</dictionary>
...
@@ -143,6 +147,10 @@
...
@@ -143,6 +147,10 @@
<key>
<string>
update_action
</string>
</key>
<key>
<string>
update_action
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
</item>
</item>
<item>
<key>
<string>
update_action_title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
</record>
</record>
...
...
bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/IndividualVariation_view/my_default_image_absolute_url.xml
0 → 100644
View file @
519033d6
<?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/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_default_image_absolute_url
</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_default_image_absolute_url
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewPDMFieldLibrary
</string>
</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>
bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/IndividualVariation_view/my_default_image_file.xml
0 → 100644
View file @
519033d6
<?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/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_default_image_file
</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_default_image_file
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewPDMFieldLibrary
</string>
</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>
bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/IndividualVariation_view/my_reference.xml
0 → 100644
View file @
519033d6
<?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/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_reference
</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>
extra_context
</string>
</key>
<value>
<string></string>
</value>
</item>
<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>
extra_context
</string>
</key>
<value>
<string></string>
</value>
</item>
<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>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
The default reference of the service
</string>
</value>
</item>
<item>
<key>
<string>
extra_context
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_reference
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewPDMFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Reference
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_pdm/bt/change_log
View file @
519033d6
2012-08-27 jps
* Add support for images in individual variation
2011-12-14 arnaud.fontaine
2011-12-14 arnaud.fontaine
* Allow to jump from Organisation to its related Sale Supplies, Internal Supplies and Purchase Supplies.
* Allow to jump from Organisation to its related Sale Supplies, Internal Supplies and Purchase Supplies.
...
...
bt5/erp5_pdm/bt/revision
View file @
519033d6
571
572
\ No newline at end of file
\ No newline at end of file
bt5/erp5_pdm/bt/template_portal_type_allowed_content_type_list
View file @
519033d6
...
@@ -12,6 +12,7 @@ Internal Supply Module | Internal Supply
...
@@ -12,6 +12,7 @@ Internal Supply Module | Internal Supply
Internal Supply | Internal Supply Line
Internal Supply | Internal Supply Line
Internal Supply | Supply Line
Internal Supply | Supply Line
Measure | Measure Cell
Measure | Measure Cell
Product Individual Variation | Embedded File
Product Module | Product
Product Module | Product
Product | Embedded File
Product | Embedded File
Product | Internal Supply Line
Product | Internal Supply Line
...
...
bt5/erp5_pdm/bt/template_portal_type_property_sheet_list
View file @
519033d6
Component | DefaultImage
Component | DefaultImage
Measure Cell | Amount
Measure Cell | Amount
Product Individual Variation | Reference
Product | DefaultImage
Product | DefaultImage
Supply Cell | Reference
Supply Cell | Reference
\ No newline at end of file
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