mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-24 12:12:07 +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,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',
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -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);
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
.o_form_view {
|
||||
.o_calendar_warning {
|
||||
cursor: help;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
.o_hr_contract_state {
|
||||
.o_status {
|
||||
vertical-align: unset !important;
|
||||
}
|
||||
}
|
||||
|
||||
.o_hr_contract_job_id {
|
||||
min-height: 1.5rem;
|
||||
}
|
||||
|
|
@ -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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue