Files
dn20/mrp_accountant/models/res_config_settings.py
2026-11-08 18:46:28 +08:00

25 lines
997 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'
account_production_wip_account_id = fields.Many2one(
comodel_name='account.account',
string='WIP Account',
readonly=False,
related='company_id.account_production_wip_account_id',
)
account_production_wip_account_active = fields.Boolean(related='account_production_wip_account_id.active', string="WIP Account Active")
account_production_wip_overhead_account_id = fields.Many2one(
comodel_name='account.account',
string='WIP Overhead Account',
readonly=False,
related='company_id.account_production_wip_overhead_account_id',
)
account_production_wip_overhead_account_active = fields.Boolean(related='account_production_wip_overhead_account_id.active', string="WIP Overhead Account Active")