mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
22 lines
677 B
Python
22 lines
677 B
Python
# -*- coding: utf-8 -*-
|
|
# © 2017 Eficent Business and IT Consulting Services S.L.
|
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
|
from openerp 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')
|