[go: up one dir, main page]

Menu

[r1]: / djrece / admin.py  Maximize  Restore  History

Download this file

64 lines (47 with data), 2.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# -*- coding: utf-8 -*-
# DjRece es una interfase web para utilizar PyRece desde una app de Django
""" DjRece: Copyright 2010 Alan Etkin, hexa662@gmail.com.
Este programa se distribuye bajo los términos de la licencia AGPLv3.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, version 3 of the License, or any later
version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
"""
PyRece - PyAfipWS es copyright de M. Reingart y M. Alániz
http://code.google.com/p/pyafipws/
"""
from models import *
from django.contrib import admin
class OperacionAdmin(admin.ModelAdmin):
date_hierarchy = 'fecha'
list_display = ('id', 'fecha', 'punto_de_venta_numero', 'id_consultado')
class ErrorAdmin(admin.ModelAdmin):
date_hierarchy = 'fecha'
list_display = ('id', 'fecha')
class TraceAdmin(admin.ModelAdmin):
date_hierarchy = 'fecha'
list_display = ('id', 'fecha')
class CompraAdmin(admin.ModelAdmin):
date_hierarchy = 'fecha'
list_display = ('id', 'fecha', 'punto_de_venta_numero', 'proveedor_nombre')
admin.site.register(Operacion, OperacionAdmin)
admin.site.register(Error, ErrorAdmin)
admin.site.register(Trace, TraceAdmin)
admin.site.register(Compra, CompraAdmin)
admin.site.register(Provincia)
admin.site.register(Localidad)
admin.site.register(Proveedor)
admin.site.register(Punto_de_Compra)
admin.site.register(Producto)
admin.site.register(Item_de_Operacion)
admin.site.register(Item_de_Compra)
admin.site.register(Pago)
admin.site.register(Cliente)
admin.site.register(Punto_de_Venta)