Se agrega campo estado

This commit is contained in:
root 2023-07-26 07:14:44 +00:00
parent 39d8814e72
commit ca137b324f
3 changed files with 12 additions and 0 deletions

View File

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

View File

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