diff --git a/__pycache__/recepcion.cpython-39.opt-1.pyc b/__pycache__/recepcion.cpython-39.opt-1.pyc index cb7ec08..8d1f519 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 721a64a..65cc963 100644 --- a/recepcion.py +++ b/recepcion.py @@ -11,11 +11,17 @@ class Recepcion(ModelView, ModelSQL): metodo_contacto=fields.Many2One('party.contact_mechanism', "Contacto") hora_entrada = fields.DateTime('Hora Entrada') referencia = fields.Char("Referencia") + descripcion = fields.Text("Descripcion") + estado = fields.Selection([("borrador","Borrador"),("registrado", "Registrado")],"Estado") @classmethod def default_hora_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 1656898..b2a6693 100644 --- a/view/recepcion_form.xml +++ b/view/recepcion_form.xml @@ -12,4 +12,10 @@ this repository contains the full copyright notices and license terms. -->