oca-ocb-hr/odoo-bringout-oca-ocb-hr_expense/hr_expense/models/res_company.py
Ernad Husremovic e1d89e11e3 19.0 vanilla
2026-03-09 09:31:00 +01:00

21 lines
786 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class ResCompany(models.Model):
_inherit = "res.company"
expense_journal_id = fields.Many2one(
"account.journal",
string="Default Expense Journal",
check_company=True,
domain="[('type', '=', 'purchase')]",
help="The company's default journal used when an employee expense is created.",
)
company_expense_allowed_payment_method_line_ids = fields.Many2many(
"account.payment.method.line",
string="Payment methods available for expenses paid by company",
check_company=True,
domain="[('payment_type', '=', 'outbound'), ('journal_id', '!=', False), ('journal_id.active', '=', True)]",
)