Commit 796d8fda authored by Santiago Apel's avatar Santiago Apel 💬
Browse files

[ADD] log when execute

parent 56da7fe4
# -*- 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