-
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.1.0.0][hr_payslip_multiple_approval]
- Loading branch information
Showing
9 changed files
with
83 additions
and
170 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,5 +1,7 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2018 OpenSynergy Indonesia | ||
# Copyright 2020 OpenSynergy Indonesia | ||
# Copyright 2020 PT. Simetri Sinergi Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from . import models | ||
from . import( | ||
models, | ||
) |
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
127 changes: 0 additions & 127 deletions
127
hr_payslip_multiple_approval/i18n/hr_payslip_tier_validation.pot
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2018 OpenSynergy Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from . import hr_payslip | ||
from . import tier_definition | ||
# Copyright 2020 OpenSynergy Indonesia | ||
# Copyright 2020 PT. Simetri Sinergi Indonesia | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
from . import( | ||
hr_payslip, | ||
tier_definition, | ||
) |
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,12 +1,42 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2018 OpenSynergy Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from openerp import models | ||
# Copyright 2020 OpenSynergy Indonesia | ||
# Copyright 2020 PT. Simetri Sinergi Indonesia | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
from openerp import models, api | ||
|
||
|
||
class HrPayslip(models.Model): | ||
_name = "hr.payslip" | ||
_inherit = ["hr.payslip", "tier.validation"] | ||
_state_from = ["verify"] | ||
_state_to = ["done"] | ||
_inherit = [ | ||
"hr.payslip", | ||
"tier.validation", | ||
] | ||
_state_from = [ | ||
"draft", | ||
"verify", | ||
] | ||
_state_to = [ | ||
"done", | ||
] | ||
|
||
@api.multi | ||
def validate_tier(self): | ||
_super = super(HrPayslip, self) | ||
_super.validate_tier() | ||
for document in self: | ||
if document.validated: | ||
document.signal_workflow("button_done") | ||
|
||
@api.multi | ||
def restart_validation(self): | ||
_super = super(HrPayslip, self) | ||
_super.restart_validation() | ||
for document in self: | ||
document.request_validation() | ||
|
||
@api.multi | ||
def hr_verify_sheet(self): | ||
_super = super(HrPayslip, self) | ||
_super.hr_verify_sheet() | ||
for document in self: | ||
document.request_validation() |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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