Debian Codegraph @

addons/mrp_account/report/mrp_report_mo_overview.py

raw
1 # -*- coding: utf-8 -*-
2 # Part of Odoo. See LICENSE file for full copyright and licensing details.
3
4 from odoo import models
5
6
7 class ReportMrpReport_Mo_Overview(models.AbstractModel):
8 _inherit = 'report.mrp.report_mo_overview'
9
10 def _get_unit_cost(self, move):
11 if move.state == 'done':
12 price_unit = move._get_price_unit()
13 return move.product_id.uom_id._compute_price(price_unit, move.product_uom)
14 return super()._get_unit_cost(move)