diff options
| author | Goffin Simon <sig@odoo.com> | 2019-04-17 13:36:32 +0000 |
|---|---|---|
| committer | Goffin Simon <sig@odoo.com> | 2019-04-18 07:58:48 +0000 |
| commit | 39c3abc5fb5310e9df52ffee1a846a47dc30d40e (patch) | |
| tree | fea2bcb7d36f403b6dcd3d6b79a55f70e45e5d84 /addons/base_setup/data/base_setup_data.xml | |
| parent | 6dcf7989f8ec33ec61519fc9b9af522ee8d304cc (diff) | |
[FIX] mrp: Duplicate finished_move_line_ids from by_product in a BOM
Steps to reproduce the bug:
- Create product A (type='product',tracking='lot')
- Create product B (type='product',tracking='lot')
- Create product Z(type='consu',tracking='none')
- Create BoM for product Z with product A as component and product B
as sub_product (i.e. By product) + create any routing (i.e. 1 operation).
- Create an MO for product z, plan it, process the given work order,
input the serial/lot for the components and byproducts...
Bug:
Two lines for product B were displayed in the finished_move_line_ids of the MO
This bug occured in enterprise because the function _create_checks defined on model
'mrp.workorder' creates the quality checks that create the finished_move_line_ids
for the by_product tracked by lot or by serial number (in fuction _update_active_move_line
defined on model 'mrp.workorder').
So the finished_move_line_ids were created two times with the ones created in fuction record_production
defined on model 'mrp.workorder' in community.
Co-authored-by: amoyaux <arm@odoo.com>
opw:1963163
closes odoo/odoo#32779
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Diffstat (limited to 'addons/base_setup/data/base_setup_data.xml')
0 files changed, 0 insertions, 0 deletions
