← Back to team overview

openerp-wms-expert team mailing list archive

[Merge] lp:~numerigraphe/openobject-addons/trunk-stock-move-reason into lp:openobject-addons

 

Numérigraphe has proposed merging lp:~numerigraphe/openobject-addons/trunk-stock-move-reason into lp:openobject-addons.

Requested reviews:
  OpenERP WMS Expert (openerp-wms-expert)
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~numerigraphe/openobject-addons/trunk-stock-move-reason/+merge/84811

Each stock move has a name (called "reason" in the stock move form) that is automatically filled and customizable by users.
Unfortunately users have little opportunities to view this name because it is absent from the picking forms and reports.
Please let me propose to add them this name.
I seem to remember they were present in v5.0 and were removed in v6.0.
Lionel Sausin.
-- 
https://code.launchpad.net/~numerigraphe/openobject-addons/trunk-stock-move-reason/+merge/84811
Your team OpenERP WMS Expert is requested to review the proposed merge of lp:~numerigraphe/openobject-addons/trunk-stock-move-reason into lp:openobject-addons.
=== modified file 'stock/report/picking.rml'
--- stock/report/picking.rml	2011-12-01 15:45:05 +0000
+++ stock/report/picking.rml	2011-12-07 17:54:27 +0000
@@ -256,7 +256,7 @@
       <blockTable colWidths="256.0,74.0,58.0,60.0,73.0" style="Move_Line_Contect_Assign_State">
         <tr>
           <td>
-            <para style="terp_default_9"><font face="Helvetica" size="9.0">[ [[ (move_lines.product_id.default_code) or removeParentNode('font') ]] ]</font> [[ move_lines.product_id.name ]] [[ move_lines.product_id.variants or '']] </para>
+            <para style="terp_default_9">[[ move_lines.name ]] [[ move_lines.product_id.variants or '']] </para>
           </td>
           <td>
             <para style="terp_default_Centre_9">[[ (move_lines.prodlot_id and move_lines.prodlot_id.name) or '' ]]</para>
@@ -281,7 +281,7 @@
       <blockTable colWidths="256.0,74.0,57.0,61.0,72.0" style="Table1">
         <tr>
           <td>
-            <para style="terp_default_9"><font face="Helvetica" size="9.0">[ [[ (move_lines.product_id.default_code) or removeParentNode('font') ]] ]</font> [[ move_lines.product_id.name ]] [[ move_lines.product_id.variants or '']]</para>
+            <para style="terp_default_9">[[ move_lines.name ]] [[ move_lines.product_id.variants or '']]</para>
           </td>
           <td>
             <para style="terp_default_Centre_9">[[ (move_lines.prodlot_id and move_lines.prodlot_id.name) or '' ]]</para>

=== modified file 'stock/report/picking.sxw'
Binary files stock/report/picking.sxw	2011-01-14 00:11:01 +0000 and stock/report/picking.sxw	2011-12-07 17:54:27 +0000 differ
=== modified file 'stock/stock_view.xml'
--- stock/stock_view.xml	2011-12-06 08:12:49 +0000
+++ stock/stock_view.xml	2011-12-07 17:54:27 +0000
@@ -711,6 +711,7 @@
                         <page string="Products">
                             <field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines, 'address_in_id': address_id}">
                                 <tree colors="grey:scrapped == True" string="Stock Moves">
+                                    <field name="name" string="Reason"/>
                                     <field name="product_id"/>
                                     <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
                                     <field name="product_uom" string="UoM"/>
@@ -904,6 +905,7 @@
                         <page string="Products">
                             <field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines, 'address_out_id': address_id, 'picking_type': type}" >
                                 <tree colors="grey:scrapped==True" string="Stock Moves">
+                                    <field name="name" string="Reason"/>
                                     <field name="product_id"/>
                                     <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
                                     <field name="product_uom" string="UoM"/>
@@ -1125,6 +1127,7 @@
                         <page string="General Information">
                             <field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines, 'address_in_id': address_id, 'picking_type': type}" >
                                 <tree colors="grey:scrapped==True" string="Stock Moves">
+                                    <field name="name" string="Reason"/>
                                     <field name="product_id" />
                                     <field name="product_qty" />
                                     <field name="product_uom" string="UoM" />


Follow ups