mirror of
https://github.com/bringout/oca-ocb-mrp.git
synced 2026-04-27 23:12:06 +02:00
19.0 vanilla
This commit is contained in:
parent
accf5918df
commit
6e65e8c877
688 changed files with 225434 additions and 199401 deletions
|
|
@ -0,0 +1,11 @@
|
|||
from odoo import models
|
||||
|
||||
|
||||
class StockMove(models.Model):
|
||||
_inherit = 'stock.move'
|
||||
|
||||
def _prepare_phantom_move_values(self, bom_line, product_qty, quantity_done):
|
||||
vals = super()._prepare_phantom_move_values(bom_line, product_qty, quantity_done)
|
||||
if self.repair_id:
|
||||
vals['repair_id'] = self.repair_id.id
|
||||
return vals
|
||||
Loading…
Add table
Add a link
Reference in a new issue