[FIX] stock: forbid adding new lines when processing picking
authorRavi Gohil <rgo@tinyerp.com>
Thu, 9 Oct 2014 11:21:29 +0000 (16:51 +0530)
committerMartin Trigaux <mat@odoo.com>
Mon, 27 Oct 2014 13:37:36 +0000 (14:37 +0100)
Source and destination locations are required and not displayed in the form view.
Adding new items when recieving a picking can not be easily guessed as we can put different locations for each line, using default locations may not be the expected result.
Instead should modify the original picking or create new one.
Fixes #2074, opw 612768

addons/stock/wizard/stock_partial_picking_view.xml

index ef474bb..07c9671 100644 (file)
@@ -18,7 +18,7 @@
                     <field name="hide_tracking" invisible="1"/>
                     <separator string="Transfer Products" name="product_separator"/>
                     <field name="move_ids" context="{'hide_tracking': hide_tracking}">
-                        <tree editable="bottom" string="Product Moves">
+                        <tree editable="bottom" string="Product Moves" create="false">
                             <field name="product_id" on_change="onchange_product_id(product_id)"/>
                             <field name="quantity" />
                             <field name="product_uom" groups="product.group_uom"/>