Vauxoo / addons-vauxoo

All our modules related to developments that solves generic issues on Odoo, or that solve internal problems on Odoo Core, if something is here, maybe it is solving an issue in your company, try it and report what you see.
http://www.vauxoo.com
193 stars 288 forks source link

[FIX] Consumable and service type products are excluded in qty2produce #1345

Closed frahikLV closed 5 years ago

frahikLV commented 5 years ago

Consumable and service type products are removed from the bill of materials when are analyzed in the get_qty_availble_to_produce method.

This bug was discovered in the task#31810 of the ticket#5182.

The client tries to produce a product with bills of material that include service, so the function doesn't consider the service because this doesn't appear in the order, and the function always returns 0.

frahikLV commented 5 years ago

@keylor2906 Could review this?

frahikLV commented 5 years ago

@keylor2906 Done :+1: