-
-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[9.0] [MIG] hr_worked_days_from_timesheet
- Loading branch information
1 parent
6400571
commit b4108ad
Showing
7 changed files
with
77 additions
and
73 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
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# -*- coding: utf-8 -*- | ||
# © 2012 Odoo Canada | ||
# © 2015 Acysos S.L. | ||
# © 2017 Eficent Business and IT Consulting Services S.L. | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) | ||
|
||
from . import models | ||
from . import tests |
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
3 changes: 2 additions & 1 deletion
3
hr_worked_days_from_timesheet/models/hr_payslip_worked_days.py
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
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 |
---|---|---|
@@ -1,21 +1,22 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<openerp> | ||
<data> | ||
<record id="view_hr_payslip_form" model="ir.ui.view"> | ||
<field name="name">hr.payslip.form</field> | ||
<field name="model">hr.payslip</field> | ||
<field name="inherit_id" ref="hr_payroll.view_hr_payslip_form"/> | ||
<field name="arch" type="xml"> | ||
<separator string="Worked Days" position="replace"/> | ||
<field name="worked_days_line_ids" position="before"> | ||
<group> | ||
<separator string="Worked Days"/> | ||
<div class="oe_right oe_button_box"> | ||
<button string="Import from Timesheets" name="import_worked_days" type="object" states="draft" /> | ||
</div> | ||
</group> | ||
</field> | ||
<odoo> | ||
|
||
<record id="view_hr_payslip_form" model="ir.ui.view"> | ||
<field name="name">hr.payslip.form</field> | ||
<field name="model">hr.payslip</field> | ||
<field name="inherit_id" ref="hr_payroll.view_hr_payslip_form"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//sheet/notebook/page[1]/separator[1]" | ||
position="replace"/> | ||
<field name="worked_days_line_ids" position="before"> | ||
<group> | ||
<separator string="Worked Days"/> | ||
<div class="oe_right oe_button_box"> | ||
<button string="Import from Timesheets" name="import_worked_days" type="object" states="draft" /> | ||
</div> | ||
</group> | ||
</field> | ||
</record> | ||
</data> | ||
</openerp> | ||
</field> | ||
</record> | ||
|
||
</odoo> |