[REM] point_of_sale: remove the old wizard of pos_detail
bzr revid: sbh@tinyerp.com-20100322060106-7e9cewt0pdl9swsi
This commit is contained in:
@@ -1,67 +0,0 @@
|
||||
# -*- encoding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
|
||||
# $Id$
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) 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 General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
from osv import fields
|
||||
from osv import osv
|
||||
import time
|
||||
import ir
|
||||
from mx import DateTime
|
||||
import datetime
|
||||
import pooler
|
||||
from tools import config
|
||||
import wizard
|
||||
import netsvc
|
||||
|
||||
|
||||
pos_details_res_form= """<?xml version="1.0"?>
|
||||
<form string="Sale by User">
|
||||
<field name="date_start" />
|
||||
<field name="date_end" />
|
||||
</form>
|
||||
"""
|
||||
|
||||
pos_details_res_field= {
|
||||
'date_start': {'string':'Start Date','type':'date','required': True,'default': lambda *a: time.strftime('%Y-%m-%d')},
|
||||
'date_end': {'string':'End Date','type':'date','required': True,'default': lambda *a: time.strftime('%Y-%m-%d')},
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
class wizard_pos_details(wizard.interface):
|
||||
|
||||
states = {
|
||||
'init' : {
|
||||
'actions' : [],
|
||||
'result' : {'type' : 'form',
|
||||
'arch' : pos_details_res_form,
|
||||
'fields' : pos_details_res_field,
|
||||
'state' : [('end', 'Cancel','gtk-cancel'),('print_report', 'Print Report','gtk-print') ]}
|
||||
},
|
||||
'print_report' : {
|
||||
'actions' : [],
|
||||
'result' : {'type' : 'print',
|
||||
'report':'pos.details',
|
||||
'state' : 'end'}
|
||||
},
|
||||
}
|
||||
wizard_pos_details('pos.details')
|
||||
Reference in New Issue
Block a user