mirror of
https://github.com/bringout/oca-hr.git
synced 2026-04-23 11:32:09 +02:00
Reorganized 67 HR-related modules for better structure: - Moved all odoo-bringout-oca-hr-* packages from packages/oca-technical/ - Now organized in dedicated packages/oca-hr/ submodule - Includes attendance, expense, holiday, employee, and contract modules - Maintains all module functionality while improving project organization This creates a cleaner separation between general technical modules and HR-specific functionality. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
19 lines
576 B
Python
19 lines
576 B
Python
# Copyright (C) 2021 Open Source Integrators
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class HrExpense(models.Model):
|
|
_inherit = "hr.expense"
|
|
|
|
payment_type_id = fields.Many2one(
|
|
comodel_name="account.journal", string="Payment Journal"
|
|
)
|
|
|
|
def _get_default_expense_sheet_values(self):
|
|
values = super()._get_default_expense_sheet_values()
|
|
if self.payment_type_id:
|
|
for val in values:
|
|
val["bank_journal_id"] = self.payment_type_id.id
|
|
return values
|