Se agrega campo estado
This commit is contained in:
parent
39d8814e72
commit
ca137b324f
Binary file not shown.
@ -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"
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user