tareas.py
604 Bytes
from odoo.exceptions import UserError, ValidationError, Warning
from datetime import datetime, timedelta
from odoo import models, fields, api
#from lib.config import config
DEFAULT_SERVER_DATE_FORMAT = "%Y-%m-%d %H:%M:%S"
DEFAULT_SERVER_TIME_FORMAT = "%H:%M:%S"
DEFAULT_SERVER_DATETIME_FORMAT = "%s %s" % (
DEFAULT_SERVER_DATE_FORMAT,
DEFAULT_SERVER_TIME_FORMAT)
class hgt_tarea(models.Model):
_inherit = 'hgt.tarea'
horas_liquidadas = fields.Float(
string='Minutos Liquidados',
)
liquidado = fields.Boolean(
string=u'Liquidado?',
)