mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
15 lines
416 B
Python
15 lines
416 B
Python
from odoo import models
|
|
|
|
|
|
class MrpUnbuild(models.Model):
|
|
_inherit = "mrp.unbuild"
|
|
|
|
def _generate_move_from_existing_move(
|
|
self, move, factor, location_id, location_dest_id
|
|
):
|
|
result = super(MrpUnbuild, self)._generate_move_from_existing_move(
|
|
move, factor, location_id, location_dest_id
|
|
)
|
|
result.origin_mrp_manufacture_move_id = move.id
|
|
return result
|