1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/account_asset/models/res_company.py
2024-12-10 09:04:09 +07:00

21 lines
685 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models, _
class ResCompany(models.Model):
_inherit = "res.company"
gain_account_id = fields.Many2one(
'account.account',
domain="[('deprecated', '=', False)]",
check_company=True,
help="Account used to write the journal item in case of gain while selling an asset",
)
loss_account_id = fields.Many2one(
'account.account',
domain="[('deprecated', '=', False)]",
check_company=True,
help="Account used to write the journal item in case of loss while selling an asset",
)