Community mailing list archives
Re: Product to belong to only specific Warehousesby
Hi all. Thanks for the suggested technique they are pretty neat.
So it seem the need is not that generic in Odoo and so we need to implement by coding, is it?
On Sun, Aug 7, 2016 at 1:58 AM, Jordi Ballester Alomar <email@example.com> wrote:
Kitti, we have a similar need. We want to maintain warehouse specific product parmeters, such.as.lead times. We would use an object with product + wh as key.
Then, in the product def search you could filter out that are not.in that table, if the warehouse is passed in the context.
We are working on a sort of API here:We have a temporally PR with the finishing process here:https://github.com/Vauxoo/
Let me explain:Basically it does not make too much sense start to overwrite all methods per model to contextualize that model to a warehouse (IMHO too much code) what we are doing is create a sort of API that IF a field called warehous_id exists in the model then chack ACL, search and set default to the warehouse in the User.It is now a PoC that we will implement in 3 huge users Ideas are welcome but basically at the end we will re-create the multicompany environment but mult-warehouse with too much less restrictive behavior.Until now the default value is set into Sales orders (first PoC) and the ACl are for Picking and Sock Move (PR) but we are planning add there all involved models.I hoper the Idea is clear, but the point is that the segmentation per warehouse works like the message system just inherit = [model]and gualá the model is aware of the multi-warehouse process.Best regards.--