Files
manufacture/mrp_analytic_cost_material/models/account_analytic_line.py
2020-12-15 02:24:03 +05:30

23 lines
594 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"
stock_move_id = fields.Many2one(
"stock.move",
string="Related Stock Move",
)
manufacturing_order_id = fields.Many2one(
"mrp.production",
string="Related Manufacturing Order",
)
product_category_id = fields.Many2one(
related="product_id.categ_id",
string="Product Category",
store=True,
)