openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #15971
[Bug 1044186] Re: [6.1/trunk]Orderpoint and location
Hello Jordg,
I have completely checked your issue. I have tested your issue with 2
different scenario with minimum stock rule and without minimum stock
rule.
1) I have created on chain location 'Quality control' to Stock location
with automated move and assign Quality control in to our warehouse's
input location but i don't create the minimum stock rule for the product
and run the scheduler with automated order point. So It will create a PO
for that product , I confirmed it and check the reception the
reception's destination location is 'Quality control' and I have done
the reception. So finally the stock move are.
Supplier to 'Quality control' and 'Quality control' to Stock which is
quite good.
2) Now about the 2nd scenario, I have created the same chain location
and created a minimum stock rule for the product and assign the stock
location on minimum stock rule's location. Now I runs the scheduler with
automated order point So It will create a PO for that product , I
confirmed it and check the reception the reception's destination
location is 'Stock' as well as stock move is direct Supplier to
Stock'. The *reason* behind it is when we run the scheduler with
automated order point it will run the all procurement rule with that
assigned location .
So I would like to suggest you have to configure like following manner
which will helps you, because we have to run the procurement for manage
our location's stock, So it never checks the warehouse's input location,
So please configure like this.
Create one chain location 'Quality control' to Stock location with
automated move(you can put this as a Manual if you want to manually done
the internal move ) and assign Quality control as your minimum stock
rule's location , So it will created automated move form 'Quality
control' to Stock. Now runs the scheduler with automated order point ,
Confirmed the generated PO, done the reception and check the stock move
which will like this.
Supplier to 'Quality Control' and 'Quality Control' to Stock which is
fine and stratified your case.
Hope this will helps.
Correct me If I am wrong,
Please Check it and let me know!
** Changed in: openobject-addons
Status: New => Incomplete
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1044186
Title:
[6.1/trunk]Orderpoint and location
Status in OpenERP Addons (modules):
Incomplete
Bug description:
Version 6.1
revno: 6952
branch-nick: 6.1
I noticed this issue when using the stock_location module to enable
pushed flows, however even without using stock_location I believe
there is a problem with minimum stock rules and location.
When the scheduler processes the minimum stock rules it creates a procurement for each product that falls below the specified value. The procurement location_id in this case is inherited from the location specified in the minimum stock rule.
In my case I have set the incoming location (lot_input_id) to "Receptions" apposed to "Stock" so that I can perform an operation such as Suppliers->QC->Stock.
The result is that when a procurement is created for a minimum stock rule it always ends up in "Stock" location no matter what I have set lot_input_id.
If I have set my warehouse to receive incomming to Receptions, then
that's where they should go.
The problem can be fixed in procurement/schedulers.py in _prepare_orderpoint_procurement(), however there may be a more eligant solution.
eg:
def _prepare_orderpoint_procurement(self, cr, uid, orderpoint, product_qty, context=None):
product = self.pool.get('product.product').browse(cr, uid, orderpoint.product_id.id, context=context)
warehouse = self.pool.get('stock.warehouse').browse(cr, uid, orderpoint.warehouse_id.id, context=context)
if product.supply_method == 'buy':
location_id = warehouse.lot_input_id.id
elif product.supply_method == 'produce':
location_id = warehouse.lot_stock_id.id
else:
return {}
logger.info("%s._prepare_orderpoint_procurement(): #1: location_id %s", self._name, location_id)
return {'name': orderpoint.name,
'date_planned': self._get_orderpoint_date_planned(cr, uid, orderpoint, datetime.today(), context=context),
'product_id': orderpoint.product_id.id,
'product_qty': product_qty,
'company_id': orderpoint.company_id.id,
'product_uom': orderpoint.product_uom.id,
'location_id': location_id,
'procure_method': 'make_to_order',
'origin': orderpoint.name}
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1044186/+subscriptions
References