account-closing/account_cutoff_prepaid/models/company.py

16 lines
592 B
Python
Raw Normal View History

2021-03-23 19:28:14 +00:00
# Copyright 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from flectra import models, fields
class ResCompany(models.Model):
_inherit = 'res.company'
default_prepaid_revenue_account_id = fields.Many2one(
'account.account', string='Default Account for Prepaid Revenue',
domain=[('deprecated', '=', False)])
default_prepaid_expense_account_id = fields.Many2one(
'account.account', string='Default Account for Prepaid Expense',
domain=[('deprecated', '=', False)])