mrp*
This commit is contained in:
24
mrp_accountant/models/res_config_settings.py
Normal file
24
mrp_accountant/models/res_config_settings.py
Normal file
@@ -0,0 +1,24 @@
|
||||
# -*- 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")
|
||||
Reference in New Issue
Block a user