mirror of
https://github.com/bringout/oca-workflow-process.git
synced 2026-04-21 04:32:00 +02:00
Initial commit: OCA Workflow Process packages (456 packages)
This commit is contained in:
commit
d366e42934
18799 changed files with 1284507 additions and 0 deletions
|
|
@ -0,0 +1,16 @@
|
|||
# Copyright 2019 Tecnativa - Victor M.M. Torres
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import api, models
|
||||
|
||||
|
||||
class HrEmployee(models.Model):
|
||||
_inherit = "hr.employee"
|
||||
|
||||
@api.model_create_multi
|
||||
def create(self, vals_list):
|
||||
res = super().create(vals_list)
|
||||
for vals in vals_list:
|
||||
if vals.get("category_ids"):
|
||||
self.env["project.task"].invalidate_model()
|
||||
return res
|
||||
Loading…
Add table
Add a link
Reference in a new issue