se agrega campo de estado

This commit is contained in:
stark 2023-07-26 07:15:07 -05:00
parent 8fe1454eb9
commit 434e702e34
3 changed files with 12 additions and 1 deletions

View File

@ -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"

View File

@ -12,5 +12,11 @@ this repository contains the full copyright notices and license terms. -->
<field name="referencia"/>
<label name="fecha_entrada"/>
<field name="fecha_entrada"/>
<newline/>
<label name="descripcion"/>
<field name="descripcion"/>
<label name="estado"/>
<field name="estado"/>
</form>