Community mailing list archives

community@mail.odoo.com

Re: Product to belong to only specific Warehouses

by
Ecosoft Co. LTD, Kitti Upariphutthiphong
- 08/07/2016 13:10:48

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?

Kitti

On Aug 7, 2016 14:22, "Nhomar Hernandez" <nhomar@vauxoo.com> wrote:

On Sun, Aug 7, 2016 at 1:58 AM, Jordi Ballester Alomar <jordi.ballester@eficent.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.

Regards,
Jordi


We are working on a sort of API here:


We have a temporally PR with the finishing process here:


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.
--
Nhomar Hernandez
CEO Vauxoo.
Twitter: @nhomar
Odoo Gold Partner
Skype: nhomar00 (Envia mail previo no lo superviso siempre).
Móvil Venezuela:
+58 4144110269
Móvil México:
+52 1 4773933942

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe