You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
593 B
19 lines
593 B
# -*- coding: utf-8 -*-
|
|
from odoo import models, fields, api
|
|
|
|
|
|
class HrContract(models.Model):
|
|
_inherit = 'hr.employee'
|
|
|
|
transfer_detail = fields.One2many('transfer.detail', 'employee_id', string='Transfer Details')
|
|
|
|
|
|
class TransferDetails(models.Model):
|
|
|
|
_name = 'transfer.detail'
|
|
_description = 'Transfer Details'
|
|
|
|
employee_id = fields.Many2one('hr.employee', string='Employee')
|
|
date = fields.Date(string='Date', copy=False)
|
|
company_id = fields.Many2one('res.company', string='Company')
|
|
pre_company = fields.Many2one('res.company', string='Previous Company')
|
|
|