Commit 6147f5af authored by Jérome Perrin's avatar Jérome Perrin

pdm: support default image in Service,Component Individual Variations

in c361a8c3 (erp5_pdm: improve product invividual variation, 2020-03-09)
we changed to allow default images in product individual variation and modified
IndividualVariation_view to add a file upload field to upload an image, but this
form is shared with other individual variations portal types.

Without setting the default image property sheet and allowing Embedded Files as
sub-documents, saving the form was causing an error.
parent 47355ba5
......@@ -8,6 +8,9 @@
<item>Sale Supply Line</item>
<item>Supply Line</item>
</portal_type>
<portal_type id="Component Individual Variation">
<item>Embedded File</item>
</portal_type>
<portal_type id="Component Module">
<item>Component</item>
</portal_type>
......@@ -83,6 +86,9 @@
<item>Service Individual Variation</item>
<item>Supply Line</item>
</portal_type>
<portal_type id="Service Individual Variation">
<item>Embedded File</item>
</portal_type>
<portal_type id="Service Module">
<item>Service</item>
</portal_type>
......
......@@ -2,6 +2,9 @@
<portal_type id="Component">
<item>DefaultImage</item>
</portal_type>
<portal_type id="Component Individual Variation">
<item>DefaultImage</item>
</portal_type>
<portal_type id="Measure Cell">
<item>Amount</item>
</portal_type>
......@@ -12,6 +15,9 @@
<item>DefaultImage</item>
<item>Reference</item>
</portal_type>
<portal_type id="Service Individual Variation">
<item>DefaultImage</item>
</portal_type>
<portal_type id="Supply Cell">
<item>Reference</item>
</portal_type>
......
Component Individual Variation | Embedded File
Component Module | Component
Component | Component Individual Variation
Component | Embedded File
......@@ -38,6 +39,7 @@ Sale Supply Line | Sale Supply Cell
Sale Supply Module | Sale Supply
Sale Supply | Sale Supply Line
Sale Supply | Supply Line
Service Individual Variation | Embedded File
Service Module | Service
Service | Internal Supply Line
Service | Measure
......
Component Individual Variation | DefaultImage
Component | DefaultImage
Measure Cell | Amount
Product Individual Variation | DefaultImage
Product Individual Variation | Reference
Product | DefaultImage
Service Individual Variation | DefaultImage
Supply Cell | Reference
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment