Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class HrEmployee(models.Model):
- _inherit = ['hr.employee']
- asset_ids = fields.One2many('account.asset.asset','employee_id', string='Assets Owned')
- class AccountAssetAsset(models.Model):
- _inherit = ['account.asset.asset']
- employee_id = fields.Many2one('hr.employee', string="Employee")
Add Comment
Please, Sign In to add comment