[ADD]rma_account_analytic

This commit is contained in:
aheficent
2018-01-03 14:59:06 +01:00
committed by Aaron ForgeFlow
parent a2e0e1a902
commit 73c61da794
3 changed files with 4 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from . import rma_order
from . import rma_order_line
from . import procurement

View File

@@ -3,3 +3,4 @@
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
from . import rma_add_stock_move
from . import rma_make_picking

View File

@@ -13,5 +13,5 @@ class RmaAddStockMove(models.TransientModel):
def _prepare_rma_line_from_stock_move(self, sm, lot=False):
data = super(RmaAddStockMove, self)._prepare_rma_line_from_stock_move(
sm, lot)
data.update(analytic_account_id=sm.analytic_account_id)
data.update(analytic_account_id=sm.analytic_account_id.id)
return data