[trunk/7.0] stock.picking creation form 'warehouse_id' is writeable even if no purchase.order linked

Bug #1203683 reported by Guewen Baconnier @ Camptocamp
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Medium
OpenERP R&D Addons Team 2

Bug Description

When creating (or modifying) an incoming shipment, we can input a value for the field 'Destination Warehouse' (warehouse_id). It's a fields.related to the warehouse_id field of the purchase.order. When the user does that on a stock.picking not linked to a purchase.order and saves the stock.picking, the value of origin is lost without warning.

Steps to reproduce:

* connect on Runbot
* Go to Warehouse -> Incoming Shipments
* Click the create button
* fill the 'Destination Warehouse' field
* Save

Observed behavior: the Destination Warehouse field is empty.

Expected behavior: the Destination Warehouse field in the form should be hidden or non writeable if the Purchase Order (purchase.order) field is not set.

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Same behavior observed on stock.move here: https://bugs.launchpad.net/openobject-addons/+bug/1203676

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Medium
status: New → Confirmed
summary: - [7.0] stock.picking creation form 'warehouse_id' is writeable even if
- no purchase.order linked
+ [trunk/7.0] stock.picking creation form 'warehouse_id' is writeable even
+ if no purchase.order linked
Changed in openobject-addons:
status: Confirmed → Fix Committed
Changed in openobject-addons:
status: Fix Committed → In Progress
Changed in openobject-addons:
status: In Progress → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.