Skip to content

Commit

Permalink
[ADD]rma_purchase_operating_unit
Browse files Browse the repository at this point in the history
[FIX]rma_purchase_analytic
  • Loading branch information
AaronHForgeFlow authored and JasminSForgeFlow committed Sep 26, 2023
1 parent 4c3da0d commit 23d3bde
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions rma_purchase_analytic/wizards/rma_add_purchase.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ class RmaLineMakePurchaseOrder(models.TransientModel):
_inherit = "rma.order.line.make.purchase.order"
_description = "Make Purchases Order from RMA Line"


@api.model
def _prepare_purchase_order_line(self, po, item):
res = super(RmaLineMakePurchaseOrder, self)._prepare_purchase_order_line(po, line)
res['analytic_account_id'] = item.analytic_account_id.id
return vals
res = super(RmaLineMakePurchaseOrder, self)._prepare_purchase_order_line(po, item)
res['analytic_account_id'] = item.line_id.analytic_account_id.id
return res

0 comments on commit 23d3bde

Please sign in to comment.