diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2017-01-13 11:14:41 +0100 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2017-01-13 13:25:00 +0100 |
| commit | 8fd6f85169da859a7743dab389d8a3de9dd86cfe (patch) | |
| tree | 006e80dc4eb695b7655c1c6066080373a6153abd /addons/web/static/src/js/framework/data_model.js | |
| parent | 11e99a0b53fe6c5f9dd04c22d4cb9b800cbb2f1d (diff) | |
[FIX] product_extended: Compute from BoM
The price suggested thanks to the "Compute from BoM" button only takes
into account the price of the products listed in the BoM lines.
In v9, there was a "Recursive" option that provided the possibility to
compute the prices of all products implied in the BoM, recursively. This
option has been removed since it was leading to a "black box" behavior
that was unclear to the users.
However, limiting the price computation to the BoM lines only is too
restrictive since it doesn't even take into account the phantom BoMs.
By using the `explode` method, we have access to:
- all products not manufactured
- all products manufactured which are not kits (phantom BoM)
It means that the cost of manufactured products (not kits) should still
be computed before the product itself.
opw-697866
Diffstat (limited to 'addons/web/static/src/js/framework/data_model.js')
0 files changed, 0 insertions, 0 deletions
