Commit 04a8a113 authored by Jérome Perrin's avatar Jérome Perrin

pdm: fix "Volume" field

- Use ³ instead of the HTML entity form, ERP5JS does not allow HTML in field names
- Make Component_view uses Base_viewPDMFieldLibrary, like Product_view
- Add the proper description of this in field library
- Resource_viewFieldLibrary/my_base_volume is kept, for compatibility (not sure it's needed)
parent d2c911fb
......@@ -6246,8 +6246,8 @@ msgstr "Ansichten"
msgid "Visit"
msgstr "Besuch"
msgid "Volume (m³)"
msgstr "Volumen (m³)"
msgid "Volume (m³)"
msgstr "Volumen (m³)"
msgid "Warning"
msgstr "Warnung"
......
......@@ -5709,8 +5709,8 @@ msgstr "ソース"
msgid "Visit"
msgstr "訪問"
msgid "Volume (m³)"
msgstr "体積 (m³)"
msgid "Volume (m³)"
msgstr "体積 (m³)"
msgid "Warehouse"
msgstr "倉庫"
......
......@@ -7297,8 +7297,8 @@ msgstr "보임"
msgid "Visit"
msgstr "방문"
msgid "Volume (m³)"
msgstr "체적 (m³)"
msgid "Volume (m³)"
msgstr "체적 (m³)"
msgid "Warehouse"
msgstr "웨어하우스"
......
......@@ -3851,8 +3851,8 @@ msgstr "Главное (Бухучет)"
msgid "Visit"
msgstr "Визит"
msgid "Volume (m³)"
msgstr "Объем (м³)"
msgid "Volume (m³)"
msgstr "Объем (м³)"
msgid "Warehouse"
msgstr "Склад"
......
......@@ -8626,8 +8626,8 @@ msgstr "访问"
msgid "Virtual Machines"
msgstr "虚拟机"
msgid "Volume (m³)"
msgstr "体积(m³)"
msgid "Volume (m³)"
msgstr "体积(m³)"
msgid "Warehouse"
msgstr "仓库"
......
......@@ -79,7 +79,7 @@
</item>
<item>
<key> <string>description</string> </key>
<value> <string>Default Quantity of a resource in ERP5. It can be a product or it can be time quantity like hours or minutes for example. Quantity can be found in almost every business field of ERP5 and will always have this meaning, unless the term is different or precise, such as Priced Quantity for example.</string> </value>
<value> <string>A typical per unit volume of the resource</string> </value>
</item>
<item>
<key> <string>field_id</string> </key>
......@@ -95,11 +95,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string encoding="cdata"><![CDATA[
Volume (m&#179;)
]]></string> </value>
<value> <string>Volume (m³)</string> </value>
</item>
</dictionary>
</value>
......
......@@ -69,10 +69,6 @@
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>description</string> </key>
<value> <string>A typical per unit volume of the resource</string> </value>
</item>
<item>
<key> <string>extra_context</string> </key>
<value>
......@@ -85,11 +81,7 @@
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>Resource_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Volume (m³)</string> </value>
<value> <string>Base_viewPDMFieldLibrary</string> </value>
</item>
</dictionary>
</value>
......
......@@ -85,11 +85,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string encoding="cdata"><![CDATA[
Volume (m&#179;)
]]></string> </value>
<value> <string>Volume (m³)</string> </value>
</item>
</dictionary>
</value>
......
......@@ -18,7 +18,7 @@ ABBREVIATION_WORD_SET = ((
))
# List of words that do not need to be titlecased
LOWERCASE_WORD_SET = set(('g', 'cm', 'kg', '%', '/', '...', 'm', '-', 'g/m2', 'iCalendar', 'm&#179;', 'kB'))
LOWERCASE_WORD_SET = set(('g', 'cm', 'kg', '%', '/', '...', 'm', '-', 'g/m2', 'iCalendar', 'm³', 'kB'))
# List of words that should not be modified
SPECIALCASE_WORD_SET = set(("ChangeLog", "EGov", "iCal", "included",
......
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