Initial commit: Hr packages

This commit is contained in:
Ernad Husremovic 2025-08-29 15:20:50 +02:00
commit 62531cd146
2820 changed files with 1432848 additions and 0 deletions

View file

@ -0,0 +1,24 @@
/** @odoo-module **/
import { useService } from "@web/core/utils/hooks";
import { ListController } from "@web/views/list/list_controller";
export class HrContractHistoryListController extends ListController {
setup() {
super.setup();
this.actionService = useService('action');
}
/**
* @override
*/
async createRecord({ group } = {}) {
this.actionService.doAction({
name: this.env._t('New Employee'),
type: 'ir.actions.act_window',
res_model: 'hr.employee',
views: [[false, 'form']],
view_mode: 'form',
});
}
}

View file

@ -0,0 +1,12 @@
/** @odoo-module **/
import { registry } from "@web/core/registry";
import { listView } from "@web/views/list/list_view";
import { HrContractHistoryListController } from "./hr_contract_history_list_controller";
export const HrContractHistoryView = {
...listView,
Controller: HrContractHistoryListController,
}
registry.category("views").add('hr_contract_history_list', HrContractHistoryView);

View file

@ -0,0 +1,5 @@
.o_form_view {
.o_calendar_warning {
cursor: help;
}
}

View file

@ -0,0 +1,9 @@
.o_hr_contract_state {
.o_status {
vertical-align: unset !important;
}
}
.o_hr_contract_job_id {
min-height: 1.5rem;
}

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
<t t-name="hr_contract.CalendarMismatch" owl="1">
<div class="o-tooltip px-1 py-2">
<p style="font-size: 12px;" class="text-danger"
t-esc="text"/>
</div>
</t>
</templates>