mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
20 lines
614 B
Python
20 lines
614 B
Python
# Copyright 2020 ForgeFlow S.L.
|
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
|
from odoo import api, fields, models
|
|
|
|
|
|
class RmaMakePicking(models.TransientModel):
|
|
_inherit = "rma_make_picking.wizard"
|
|
|
|
@api.returns("rma.order.line")
|
|
def _prepare_item(self, line):
|
|
res = super(RmaMakePicking, self)._prepare_item(line)
|
|
res["sale_line_id"] = line.sale_line_id.id
|
|
return res
|
|
|
|
|
|
class RmaMakePickingItem(models.TransientModel):
|
|
_inherit = "rma_make_picking.wizard.item"
|
|
|
|
sale_line_id = fields.Many2one(comodel_name="sale.order.line", string="Sale Line")
|