A Divendres, 16 de desembre de 2011 13:59:25, Cédric Krier va escriure: > On 16/12/11 08:16 +0100, Albert Cervera i Areny wrote: > > The idea is adding a new tab in the product (see product-kit.png) to > > indicate what products the kit contains and what quantity. Then, when > > the user will create a sale order or a picking, and the product is > > selected, all the products of the kit are added to the order/picking > > prepending their description with "> " (see sale-kit.png). That is > > executed recursively so one can create kits that contain other kits. > > > > The reason for doing it this way instead of using a bill of materials is > > that it requires much less information than a full BoM and it's also > > easier for users. It is also a very flexible solution for many > > situations. Although the most usual is that the company has a kit which > > is not produced first but collected at picking time, we have used it for > > other circumstances too such as a kind of synonym of a product: The > > customer is purchasing a product and we internally make the picking of > > another one but we never print the subcomponents in the sale order or > > picking reports. > > > > At the same time it's possible to decide how product price and stock are > > calculated. The price of the kit can be set in the kit product or > > calculated as the sum of its components. The stock can be calculated as > > if it was a normal product or using the stock available of the component > > with less quantity. > > I have just some concerns about the usage of a product for the kit. > My concern is about accounting and cost computation because a new > product will have those properties (which will have no meaning). > I think it is better to have a separate Model that describes kits have a > new type of sale/purchase line for kit that will add the real product > lines with an on_change. > And for report, you can link those lines to the kit like that you can > display just 1 line with the kit description.
I was talking about the sale price of the product. However, yours is a good point and it should be taken into account for the cost price of the kit which in some cases should be set to zero. At the same time, there are some use cases in which a kit can be used to include another product automatically, while the "kit product" has a meaning as a product too. -- Albert Cervera i Areny http://www.NaN-tic.com Tel: +34 93 553 18 03 http://twitter.com/albertnan http://www.nan-tic.com/blog -- tryton-dev@googlegroups.com mailing list