Files
manufacture/mrp_analytic_cost/models/mrp_production.py
2022-03-30 23:21:22 +02:00

13 lines
366 B
Python

# Copyright (C) 2020 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models
class MrpProduction(models.Model):
_inherit = "mrp.production"
def generate_analytic_lines(self):
"""Generate Analytic Lines for a MO"""
return self.mapped("move_raw_ids").generate_mrp_raw_analytic_line()