hunk.code_window:             if move:
                   product_uom_factor = UoM._compute_qty_obj(prod.product_uom_id, prod.product_qty - prod.qty_produced, prod.bom_id.product_uom_id)
                   qty1 = sub_product_line.product_qty
                   qty1 *= product_uom_factor / prod.bom_id.product_qty
                   move[0].write({'product_uom_qty': qty1})
               else:
  
hunk.labels: keep replace keep keep keep keep
hunk.after_edit:                 product_uom_factor = prod.product_uom_id._compute_quantity(prod.product_qty - prod.qty_produced, prod.bom_id.product_uom_id)
  
hunk.file_path: addons/mrp_byproduct/wizard/change_production_qty.py
hunk.type: replace
file: # -*- coding: utf-8 -*-
  # Part of Odoo. See LICENSE file for full copyright and licensing details.
  
  import account_bank_statement
  import account_journal
  import barcode_rule
  import pos_category
  import pos_config
  import pos_order
  import pos_session
  import product
  import res_config
  import res_partner
  import res_users
  