Add analytic accounting for MO. Post expense entries for: 1. raw material cost (change with consumed) 2. work center cost (change with real duration on work order) Task-2469742 PR #68708
13 lines
413 B
Python
13 lines
413 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class MrpWorkcenter(models.Model):
|
|
_inherit = 'mrp.workcenter'
|
|
|
|
costs_hour_account_id = fields.Many2one(
|
|
'account.analytic.account', string='Analytic Account',
|
|
help="Fill this only if you want automatic analytic accounting entries on production orders.")
|