mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-27 09:32:02 +02:00
Initial commit: Hr packages
This commit is contained in:
commit
62531cd146
2820 changed files with 1432848 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
|||
# 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'), ('company_id', '=', company_id)]",
|
||||
help="The company's default journal used when an employee expense is created.",
|
||||
)
|
||||
company_expense_journal_id = fields.Many2one(
|
||||
"account.journal",
|
||||
string="Default Company Expense Journal",
|
||||
check_company=True,
|
||||
domain="[('type', 'in', ['cash', 'bank']), ('company_id', '=', company_id)]",
|
||||
help="The company's default journal used when a company expense is created.",
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue