class Mcab(PeristentObject): numero_is = CounterField(db_name='mcab', title="Numero") pro_is = LookupField(Pro, title="Proveïdor", required=True) ref_is = StringField(title="Referencia") data_is = DateField(title="Data", required=True) datae_is = DateField(title="Data Entrega") envio_is = CompositeField(Envio, title="Entrega", required=True) obs_is = TextField(title="Observacions") mlins_is = DetailSpec('mlin', title="Linees Comanda") class Mlin(PersistentObject): mcab_is = LookupField(Mcab, title="Comanda", readonly=True) data_is = DateField(title="Data", computed=True) datae_is = DateField(title="Data Entrega", computed=True) pro_is = LookupField(Pro, title="Proveidor", computed=True) art_is = LookupField(Art, title="Article", required=True) des_is = StringField(title="Descripcio", required=True) quant_is = QuantityField(title="Quant. dem", required=True) preu_is = PreuField(title="Preu") impor_is = ImportField(title="Import", computed=True) ser_is = BoolField(options=[(False,"Pendent"),(True,"Servit")], title="Situacio", computed=True) impor_is = ImportField(title="Import", computed=True)