Files
manufacture/mrp_account_analytic/models/account_analytic_line.py
Daniel Reis 8695ca8897 [ADD] mrp_account_analytic: generate Analytic Items for manufacturing consumptions.
Extracted from the original proposed code for mrp_account_analytic_wip
2021-08-30 15:12:34 +01:00

22 lines
547 B
Python

# Copyright (C) 2020 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class AccountAnalyticLine(models.Model):
_inherit = "account.analytic.line"
manufacturing_order_id = fields.Many2one(
"mrp.production",
string="Related Manufacturing Order",
)
stock_move_id = fields.Many2one(
"stock.move",
string="Related Stock Move",
)
workorder_id = fields.Many2one(
"mrp.workorder",
string="Work Order",
)