From ca137b324fe2ed2bc6de85c8014ca159ca9a40a6 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 26 Jul 2023 07:14:44 +0000 Subject: [PATCH] Se agrega campo estado --- __pycache__/recepcion.cpython-39.opt-1.pyc | Bin 868 -> 1146 bytes recepcion.py | 6 ++++++ view/recepcion_form.xml | 6 ++++++ 3 files changed, 12 insertions(+) diff --git a/__pycache__/recepcion.cpython-39.opt-1.pyc b/__pycache__/recepcion.cpython-39.opt-1.pyc index cb7ec08bca482f296962e401104c2f17c0aeb38a..8d1f519504dcfda51d753aa7f10e3865702a7abe 100644 GIT binary patch delta 468 zcmY+9u};G<5QcM36w)|J(;}pbCm;-Lh=ljg+laYUPj+cX|nNlPM_bO}CZBIDypHZC3#RCzZA=P4~X z@lH3CAmVd28jDgt5Wiou+ZCm{lN=853MxCx#meGXegK1(?4bQw2HNl@H0wN5DI6sf zlo8b9TZ%c>()c4&2CA$g%5Kxgyc{y~+m5;uNQs4>JAIZhpk(ZZ?0SLHk4y3d&P2^j|=reJngCI`|M+#>PLo;I(Zwgm1gC_T64aS1W zcNtB&H5qR)C+8HeWGLdCEX$P2$UnK6NsHM}lW(#HbE6}7a!z7#ac*i!Mt({WH_+T7 rPE-P9SrHqM0O4W*Ai=@N!pOqJ!^p$P#mL1pS(e3E0A0`I1Qsa(z4sw% 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. -->