-
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] hr_payroll_document : Migration to 17.0
- Loading branch information
Showing
17 changed files
with
307 additions
and
213 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,8 +57,10 @@ Authors | |
Contributors | ||
------------ | ||
|
||
- Antoni Marroig Campomar <[email protected]> | ||
- Miquel Alzanillas Monserrat <[email protected]> | ||
- `APSL-Nagarro <https://www.apsl.tech>`__: | ||
|
||
- Antoni Marroig <[email protected]> | ||
- Miquel Alzanillas <[email protected]> | ||
|
||
Maintainers | ||
----------- | ||
|
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,3 +1,4 @@ | ||
from . import ir_attachment_payroll_custom | ||
from . import ir_attachment | ||
from . import hr_employee | ||
from . import res_users |
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
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,20 @@ | ||
from odoo import models | ||
|
||
|
||
class ResUsers(models.Model): | ||
_inherit = "res.users" | ||
|
||
def action_get_attachment_tree_view(self): | ||
action = self.env.ref("base.action_attachment").sudo().read()[0] | ||
action["context"] = { | ||
"default_res_model": self._name, | ||
"default_res_id": self.employee_id.id, | ||
} | ||
action["domain"] = str( | ||
[ | ||
("document_type", "=", "payroll"), | ||
("res_model", "=", self.employee_id._name), | ||
("res_id", "in", [self.employee_id.id]), | ||
] | ||
) | ||
return action | ||
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,2 +1,3 @@ | ||
- Antoni Marroig Campomar \<<[email protected]>\> | ||
- Miquel Alzanillas Monserrat \<<[email protected]>\> | ||
- [APSL-Nagarro](https://www.apsl.tech): | ||
- Antoni Marroig \<<[email protected]>\> | ||
- Miquel Alzanillas \<<[email protected]>\> |
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.