mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
19 lines
673 B
Python
19 lines
673 B
Python
# -*- coding: utf-8 -*-
|
|
# © 2018 Eficent Business and IT Consulting Services S.L.
|
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
|
|
|
from odoo import models, api
|
|
|
|
|
|
class RmaMakePicking(models.TransientModel):
|
|
_inherit = 'rma_make_picking.wizard'
|
|
_description = 'Wizard to create pickings from rma lines'
|
|
|
|
@api.model
|
|
def _get_procurement_data(self, item, group, qty, picking_type):
|
|
procurement_data = super(RmaMakePicking, self)._get_procurement_data(
|
|
item, group, qty, picking_type)
|
|
procurement_data.update(
|
|
account_analytic_id=item.line_id.analytic_account_id.id)
|
|
return procurement_data
|