mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
IMP mrp_production_add by allowing the produce button to NOT increment the QTY of added products.
This commit is contained in:
@@ -44,6 +44,7 @@ class AddProductionItem(models.TransientModel):
|
||||
|
||||
move = item.production_id._generate_raw_move(bom_line, {'qty': item.product_qty, 'parent_line': None})
|
||||
item.production_id._adjust_procure_method()
|
||||
move.write({'unit_factor': 0.0})
|
||||
move._action_confirm()
|
||||
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user