-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.0.3.0.0] hr_timesheet_attendance_schedule
* No CUD on attendance schedule tree and form * Attendance schedule view enhancements * New feature: Attendance schedule change * Warning: Add module dependency
- Loading branch information
Showing
13 changed files
with
604 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
hr_timesheet_attendance_schedule/data/base_sequence_configurator_data.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright 2019 OpenSynergy Indonesia | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> | ||
|
||
<openerp> | ||
<data> | ||
|
||
<record id="base_sequence_schedule_change" model="base.sequence_configurator"> | ||
<field name="model_id" ref="hr_timesheet_attendance_schedule.model_hr_timesheet_attendance_schedule_change"/> | ||
<field name="sequence_field_id" search="[('model_id.model','=','hr.timesheet_attendance_schedule_change'),('name','=','name')]"/> | ||
<field name="fallback_sequence_id" ref="hr_timesheet_attendance_schedule.seq_schedule_change"/> | ||
</record> | ||
|
||
<record id="base_sequence_schedule_change_line" model="base.sequence_configurator_line"> | ||
<field name="generator_id" ref="hr_timesheet_attendance_schedule.base_sequence_schedule_change"/> | ||
<field name="sequence" eval="1"/> | ||
<field name="sequence_computation_code">result = False</field> | ||
</record> | ||
|
||
</data> | ||
</openerp> |
33 changes: 33 additions & 0 deletions
33
hr_timesheet_attendance_schedule/data/base_workflow_policy_data.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright 2019 OpenSynergy Indonesia | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> | ||
|
||
<openerp> | ||
<data> | ||
|
||
<record id="base_workflow_attendance_schedule_change" model="base.workflow_policy"> | ||
<field name="model_id" ref="hr_timesheet_attendance_schedule.model_hr_timesheet_attendance_schedule_change"/> | ||
</record> | ||
<record id="base_workflow_line_loan_in_confirm" model="base.workflow_policy_line"> | ||
<field name="workflow_id" ref="hr_timesheet_attendance_schedule.base_workflow_attendance_schedule_change"/> | ||
<field name="field_id" search="[('model_id.model','=','hr.timesheet_attendance_schedule_change'),('name','=','confirm_ok')]"/> | ||
<field name="python_code">result = document.company_id.schedule_change_confirm_grp_ids.ids</field> | ||
</record> | ||
<record id="base_workflow_line_loan_in_valid" model="base.workflow_policy_line"> | ||
<field name="workflow_id" ref="hr_timesheet_attendance_schedule.base_workflow_attendance_schedule_change"/> | ||
<field name="field_id" search="[('model_id.model','=','hr.timesheet_attendance_schedule_change'),('name','=','valid_ok')]"/> | ||
<field name="python_code">result = document.company_id.schedule_change_valid_grp_ids.ids</field> | ||
</record> | ||
<record id="base_workflow_line_loan_in_cancel" model="base.workflow_policy_line"> | ||
<field name="workflow_id" ref="hr_timesheet_attendance_schedule.base_workflow_attendance_schedule_change"/> | ||
<field name="field_id" search="[('model_id.model','=','hr.timesheet_attendance_schedule_change'),('name','=','cancel_ok')]"/> | ||
<field name="python_code">result = document.company_id.schedule_change_cancel_grp_ids.ids</field> | ||
</record> | ||
<record id="base_workflow_line_loan_in_restart" model="base.workflow_policy_line"> | ||
<field name="workflow_id" ref="hr_timesheet_attendance_schedule.base_workflow_attendance_schedule_change"/> | ||
<field name="field_id" search="[('model_id.model','=','hr.timesheet_attendance_schedule_change'),('name','=','restart_ok')]"/> | ||
<field name="python_code">result = document.company_id.schedule_change_restart_grp_ids.ids</field> | ||
</record> | ||
|
||
</data> | ||
</openerp> |
18 changes: 18 additions & 0 deletions
18
hr_timesheet_attendance_schedule/data/ir_sequence_data.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0"?> | ||
<openerp> | ||
<data noupdate="1"> | ||
|
||
<record model="ir.sequence.type" id="seq_type_schedule_change"> | ||
<field name="name">Attendance Schedule Change</field> | ||
<field name="code">schedule.change</field> | ||
</record> | ||
|
||
<record model="ir.sequence" id="seq_schedule_change"> | ||
<field name="name">Attendance Schedule Change Sequence</field> | ||
<field name="code">schedule.change</field> | ||
<field name="padding" eval="6"/> | ||
<field name="prefix">CHG/%(y)s/</field> | ||
</record> | ||
|
||
</data> | ||
</openerp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.