diff --git a/__pycache__/recepcion.cpython-39.opt-1.pyc b/__pycache__/recepcion.cpython-39.opt-1.pyc index 99106a6..6351248 100644 Binary files a/__pycache__/recepcion.cpython-39.opt-1.pyc and b/__pycache__/recepcion.cpython-39.opt-1.pyc differ diff --git a/recepcion.py b/recepcion.py index 682a0cc..32edcf4 100644 --- a/recepcion.py +++ b/recepcion.py @@ -10,7 +10,12 @@ class Recepcion(ModelView,ModelSQL): contacto=fields.Many2One("party.contact_mechanism", "Contacto") referencia=fields.Char("Referencia") fecha_entrada=fields.DateTime("Fecha y hora de entrada") - + descripcion=fields.Text("Descripcion") + estado= fields.Selection([("borrador","Borrador"),("registrado","Registrado")],"Estado") @classmethod def default_fecha_entrada(cls): return datetime.now() + + @classmethod + def default_estado(cls): + return "borrador" diff --git a/view/recepcion_form.xml b/view/recepcion_form.xml index 2ef570d..bef5bf0 100644 --- a/view/recepcion_form.xml +++ b/view/recepcion_form.xml @@ -12,5 +12,11 @@ this repository contains the full copyright notices and license terms. -->