mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-28 09:52:02 +02:00
19.0 vanilla
This commit is contained in:
parent
79f83631d5
commit
73afc09215
6267 changed files with 1534193 additions and 1130106 deletions
|
|
@ -0,0 +1,15 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import api, models
|
||||
|
||||
|
||||
class HrEmployee(models.Model):
|
||||
_inherit = 'hr.employee'
|
||||
|
||||
@api.model
|
||||
def default_get(self, fields):
|
||||
result = super().default_get(fields)
|
||||
project_company_id = self.env.context.get('create_project_employee_mapping', False)
|
||||
if project_company_id:
|
||||
result['company_id'] = project_company_id
|
||||
return result
|
||||
Loading…
Add table
Add a link
Reference in a new issue