I see no real issue here. Consumable doesn't mean "doesn't exist in the warehouse". It is just that the picking of the product always succeed.
You can make a patch to add the field on the view but as we show the product not the template, it will require to have a standard method to display such inherited fields.
Cédric Krieradded 1 deleted label and removed 1 deleted label
Given the fact that we do not allow to use these products in an inventory I think it's inconsistent to show their stock and that it's something more than "the picking always succeeds".
On 2015-09-01 15:51, Albert Cervera i Areny wrote:
> Given the fact that we do not allow to use these products in an inventory I think it's inconsistent to show their stock and that it's something more than "the picking always succeeds".
OK, so I think we should allow to do inventory on consumable product but
probably not fill the inventory by default with them.
I think we'd rather define what is the purpose of consumable flag in product. When it is appropriate and when it is not.
I see the possible uses for consumables:
- You deliver some products which you don't want the system to take into account its stock because it's not manageable. For example, small screws, where you'll purchase in bulk and won't be checking real stock against Tryton because you know it'll always be wrong.
- You need a product in a production for which stock is virtually infinite, such as water from the tap. Yet you want the product in the bom and specially its cost computed in the production.
- You deliver a product and for some reason your process does not allow you to indicate the product has been received before you make the delivery. So instead of "Forcing assignment" for the shipment you just mark the product as Consumable so any user can work with it without the need of forcing other products.
Are there other uses?
As I understand the latter is the one that we're trying to address but it seems a bit strange for me and should probably managed in some other way rather than consumables.
On 2015-09-01 16:56, Albert Cervera i Areny wrote:
> I think we'd rather define what is the purpose of consumable flag in product.
The purpose is clear for me. It is to allow assignation of such product
on location where normally the product is not there.
Short: http://hg.tryton.org/modules/stock/file/335a646d9733/move.py#l734
> When it is appropriate and when it is not.
I think we can not make such statement because every case is different.
> I see the possible uses for consumables:
>
> - You deliver some products which you don't want the system to take into account its stock because it's not manageable. For example, small screws, where you'll purchase in bulk and won't be checking real stock against Tryton because you know it'll always be wrong.
It is not precise enough and there are many solution to such problem
like define the product as a service or as consumable etc.
> - You need a product in a production for which stock is virtually infinite, such as water from the tap. Yet you want the product in the bom and specially its cost computed in the production.
It is probably wrong to define tap water as a stockable product but in
some case it could work to defined as consumable but other case it
probably requires something else.
> - You deliver a product and for some reason your process does not allow you to indicate the product has been received before you make the delivery. So instead of "Forcing assignment" for the shipment you just mark the product as Consumable so any user can work with it without the need of forcing other products.
This is a very weird case because you can not delivery something you did
not receive.
Here is review283991002 which allows to add consumable products on inventory and adds the field on the product_quantities view to allow to filter them out when required.
New changeset adc890c2ad62 by Sergi Almacellas Abellana in branch 'default':
Allow consumable products on inventories
https://hg.tryton.org/modules/stock/rev/adc890c2ad62
Roundup Robotadded 1 deleted label and removed 1 deleted label
New changeset e50cf1e241e6 by Sergi Almacellas Abellana in branch 'default':
Allow consumable products on inventories
https://hg.tryton.org/tryton-env/rev/e50cf1e241e6