Warehouse stock locations should be internal location

Bug #882481 reported by Numérigraphe
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 2

Bug Description

For the moment the stock location in a warehouse can by any type except "view".
I suggest it would make sense to allow only "internal" locations.
Lionel Sausin.

Related branches

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Lionel,

Thanks for the reporting!

As per my Opinion it's good suggestion and it should be improve.

Your patch is fine...nice catch..:)

Thanks again.

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Nhomar - Vauxoo (nhomar) wrote : Re: [Bug 882481] Re: Warehouse stock locations should be internal location

IMHO, view location never should accept moves, when you see "stock by
location" view, it can give numbers that need analisys to have sense,
making dificult use this feate, ioh, if you have a parent location where
you want that receive moves, just change its type and ready.

But by default it is working fine.

Regards.

my 2cents

Revision history for this message
Numérigraphe (numerigraphe) wrote :

Dear Nhomar Hernandez,
The problem here would be a warehouse configured with a stock location type "inventory", "customer" etc.
That would not make sense would it ?
Lionel

Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

thanks for the fixed, applied in trunk r5590

Changed in openobject-addons:
status: Confirmed → Fix Released
Revision history for this message
Ferdinand (office-chricar) wrote :

in stock.py (trunk)

./stock.py:2753: 'lot_input_id': fields.many2one('stock.location', 'Location Input', required=True, domain=[('usage','<>','view')]),
./stock.py:2754: 'lot_stock_id': fields.many2one('stock.location', 'Location Stock', required=True, domain=[('usage','=','internal')]),
./stock.py:2755: 'lot_output_id': fields.many2one('stock.location', 'Location Output', required=True, domain=[('usage','<>','view')]),

this seems not to be fixed completely

IMHO lot_input_id and lot_output_id must be internal too
or do I miss something ?

Exmple
purchase.py
uses lot_input_id as destination...

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.