A Divendres, 16 de desembre de 2011 12:47:37, Mathias Behrle va escriure: > > 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. > > > > We're going to work on that in the next few days so if you have any > > concerns or needs that we could take into account when working on that > > they will be very welcomed. > > My questions are: > > - It would be nice to have the same working also for purchase. And if it > could be possible to choose, if a kit is exploded to its components or > purchased as kit.
I think we should have modules product_kit, sale_kit, stock_kit, purchase_kit, etc. By now we only need product the first three but somebody else could implement purchase_kit if needed. Your idea is interesting and maybe each module should add a flag to indicate wether the kit should be expanded in each case or not: sale, purchase, shipment, etc. > - Where do you want to save the 'property' kit of product? Is a kit just a > product containing 'kit product lines' or will it have a Boolean to be > marked as kit? The latter could perhaps simplify the usage, because the > view could be changed according to the Boolean and perhaps it could boost > performance when searching for kits in domains. In our OpenERP implementation there is no such boolean and we just check if the product has lines or not. But I think it is a good idea to add a flag for that. -- 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