Commit de40440f authored by Jérome Perrin's avatar Jérome Perrin

trade: review Valuation Method field on Inventory Report

- add an empty item to the list, so that user have to choose something. The empty item was missing here:

![image](/uploads/5be3e9d5acf1233270516c7463dbfdd4/image.png)

If there's an empty item and we force user to choose, there will not be the problem that user can forget to select the good value and mistakenly generates for the Fifo because it's the first value.

- translate values

See merge request !1204
parents 6a883f93 f5d24730
...@@ -11,9 +11,7 @@ ...@@ -11,9 +11,7 @@
<value> <value>
<list> <list>
<string>default</string> <string>default</string>
<string>first_item</string>
<string>items</string> <string>items</string>
<string>size</string>
<string>title</string> <string>title</string>
</list> </list>
</value> </value>
...@@ -60,10 +58,6 @@ ...@@ -60,10 +58,6 @@
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>first_item</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -74,10 +68,6 @@ ...@@ -74,10 +68,6 @@
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
<item>
<key> <string>size</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -97,10 +87,6 @@ ...@@ -97,10 +87,6 @@
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>my_list_field</string> </value> <value> <string>my_list_field</string> </value>
</item> </item>
<item>
<key> <string>first_item</string> </key>
<value> <int>1</int> </value>
</item>
<item> <item>
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value> <value> <string>Base_viewFieldLibrary</string> </value>
...@@ -108,13 +94,34 @@ ...@@ -108,13 +94,34 @@
<item> <item>
<key> <string>items</string> </key> <key> <string>items</string> </key>
<value> <value>
<list/> <list>
<tuple>
<string></string>
<string></string>
</tuple>
<tuple>
<string>Fifo</string>
<string>Fifo</string>
</tuple>
<tuple>
<string>Filo</string>
<string>Filo</string>
</tuple>
<tuple>
<string>WeightedAverage</string>
<string>WeightedAverage</string>
</tuple>
<tuple>
<string>MonthlyWeightedAverage</string>
<string>MonthlyWeightedAverage</string>
</tuple>
<tuple>
<string>MovingAverage</string>
<string>MovingAverage</string>
</tuple>
</list>
</value> </value>
</item> </item>
<item>
<key> <string>size</string> </key>
<value> <int>1</int> </value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Valuation Method</string> </value> <value> <string>Valuation Method</string> </value>
...@@ -133,7 +140,7 @@ ...@@ -133,7 +140,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: [(\'Fifo\',\'Fifo\'), (\'Filo\',\'Filo\'), (\'WeightedAverage\', \'WeightedAverage\'), (\'MonthlyWeightedAverage\',\'MonthlyWeightedAverage\'), (\'MovingAverage\',\'MovingAverage\')]</string> </value> <value> <string>python: [(context.Base_translateString(label), value) for (label, value) in field.get_orig_value(\'items\')]</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
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