Commit 75cb678e authored by Santiago Apel's avatar Santiago Apel 💬
Browse files

Merge branch 'last_contract_id' into '12.0-stage'

[ADD] log when execute

See merge request !34
parents a5c3fd76 796d8fda
# -*- coding: utf-8 -*-
from odoo import api, fields, models
import logging
_logger = logging.getLogger(__name__)
class HREmployee(models.Model):
......@@ -18,6 +21,7 @@ class HREmployee(models.Model):
record.last_contract_id = contract_id.id
else:
record.last_contract_id = False
_logger.info('_get_vigent_contract executed %s %s' %(record,contract_ids))
last_contract_id = fields.Many2one(
"hr.contract",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment