se agrega campo de estado
This commit is contained in:
parent
8fe1454eb9
commit
434e702e34
Binary file not shown.
@ -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"
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user