-
-
-
-
-
- Lunch amount
- report.lunch.amount
- form
- tree,form
-
-
-
-
-
-
diff --git a/addons/lunch/lunch_wizard.xml b/addons/lunch/lunch_wizard.xml
deleted file mode 100644
index ec9f7fea855..00000000000
--- a/addons/lunch/lunch_wizard.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/addons/lunch/process/lunch_process.xml b/addons/lunch/process/lunch_process.xml
deleted file mode 100644
index 4818d9d93f9..00000000000
--- a/addons/lunch/process/lunch_process.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/addons/lunch/report/__init__.py b/addons/lunch/report/__init__.py
deleted file mode 100644
index efaffa8d307..00000000000
--- a/addons/lunch/report/__init__.py
+++ /dev/null
@@ -1,4 +0,0 @@
-# -*- encoding: utf-8 -*-
-import order
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/addons/lunch/report/order.py b/addons/lunch/report/order.py
deleted file mode 100644
index 7824bade083..00000000000
--- a/addons/lunch/report/order.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Copyright (c) 2006 TINY SPRL. (http://tiny.be) All Rights Reserved.
-#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
-#
-# 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 2
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-##############################################################################
-
-import time
-from report import report_sxw
-from osv import osv
-
-
-class order(report_sxw.rml_parse):
-
- def sum_price(self, orders):
- res = 0.0
- for o in orders:
- res += o.price
- return res
-
- def __init__(self, cr, uid, name, context):
- super(order, self).__init__(cr, uid, name, context)
-
- self.localcontext.update({
- 'time': time,
- 'sum_price': self.sum_price,
- })
-
-report_sxw.report_sxw('report.lunch.order', 'lunch.order',
- 'addons/lunch/report/order.rml',parser=order, header=False)
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/addons/lunch/report/order.rml b/addons/lunch/report/order.rml
deleted file mode 100644
index a7bc1b32cdd..00000000000
--- a/addons/lunch/report/order.rml
+++ /dev/null
@@ -1,132 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Printed at : [[time.strftime("%Hh%M")]]
-
-
-
-
-
-
-
-
-
"""
-
-
-cancel_fields = {
-}
-
-def _cancel(self,cr,uid,data,context):
- return pooler.get_pool(cr.dbname).get('lunch.order').lunch_order_cancel(cr,uid,data['ids'],context)
-
-class order_cancel(wizard.interface):
- states = {
- 'init': {
- 'actions': [],
- 'result': {'type':'form', 'arch':cancel_form, 'fields':cancel_fields, 'state':[('end','No'),('cancel','Yes')]}
- },
- 'cancel': {
- 'actions': [_cancel],
- 'result': {'type':'state', 'state':'end'}
- }
- }
-order_cancel('lunch.order.cancel')
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/addons/lunch/wizard/confirm.py b/addons/lunch/wizard/confirm.py
deleted file mode 100644
index 6c42fb033c3..00000000000
--- a/addons/lunch/wizard/confirm.py
+++ /dev/null
@@ -1,67 +0,0 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Copyright (c) 2005-2006 TINY SPRL. (http://tiny.be) All Rights Reserved.
-#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
-#
-# 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 2
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-##############################################################################
-
-import wizard
-import netsvc
-import ir
-import pooler
-
-confirm_order_form = """
-
"""
-
-
-
-confirm_setting_zero_fields = {}
-
-def _set_to_zero(self,cr,uid,data,context):
- pool= pooler.get_pool(cr.dbname)
- cashmove_ref = pool.get('lunch.cashmove')
- cr.execute("select user_cashmove, box,sum(amount) from lunch_cashmove where active= 't' and box in (%s) group by user_cashmove, box"%','.join(map(str,data['ids'])))
- res= cr.fetchall()
- cr.execute("update lunch_cashmove set active = 'f' where active= 't' and box in (%s)"%','.join(map(str,data['ids'])))
-## to_unactive= {}.fromkeys([r[0] for r in cr.fetchall]).keys()
-## print to_unactive
-## cashmove_ref.write(cr,uid,to_unactive,{'active':False})
-##
- for (user_id,box_id,amount) in res:
- cashmove_ref.create(cr,uid,{'name': 'Summary for user'+ str(user_id),
- 'amount': amount,
- 'user_cashmove': user_id,
- 'box': box_id,
- 'active': True,
- })
- return {}
-
-
-class cashbox_set_to_zero(wizard.interface):
-
- states = {
-
- 'init': {
- 'action':[],
- 'result':{'type' : 'form',
- 'arch' : set_to_zero_form,
- 'fields' : confirm_setting_zero_fields,
- 'state' : [('end', 'Cancel'),('zero', 'Set to Zero') ]},
-
- },
- 'zero' : {
- 'actions' : [_set_to_zero],
- 'result' : {'type' : 'state', 'state' : 'end'}
- },
- }
-
-cashbox_set_to_zero('lunch.cashbox.clean')
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/addons/partner_ldap/__init__.py b/addons/partner_ldap/__init__.py
deleted file mode 100644
index 3ce9f39c009..00000000000
--- a/addons/partner_ldap/__init__.py
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- encoding: utf-8 -*-
-import partner
-import wizard
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/addons/partner_ldap/__terp__.py b/addons/partner_ldap/__terp__.py
deleted file mode 100644
index a04691edf52..00000000000
--- a/addons/partner_ldap/__terp__.py
+++ /dev/null
@@ -1,18 +0,0 @@
-# -*- encoding: utf-8 -*-
-{
- "name" : "Partner extension to synchronize TinyERP with ldap",
- "version" : "1.0",
- "author" : "Tiny",
- "depends" : ["base", "hr", "process"],
- "category" : "Generic Modules/Inventory Control",
- "description": "Synchronise partners through a LDAP module. Has been used to synchronise partners in Outlook and Tiny ERP.",
- "init_xml" : [],
- "demo_xml" : [],
- "update_xml" : ["wizard.xml",
- "process/partner_ldap_process.xml"
- ],
- "active": False,
- "installable": True
-}
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/addons/partner_ldap/partner.py b/addons/partner_ldap/partner.py
deleted file mode 100644
index 1bc3376356f..00000000000
--- a/addons/partner_ldap/partner.py
+++ /dev/null
@@ -1,42 +0,0 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Copyright (c) 2006 TINY SPRL. (http://tiny.be) All Rights Reserved.
-#
-# $Id$
-#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
-#
-# 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 2
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-##############################################################################
-
-from osv import osv, fields
-
-class address_ldap(osv.osv):
- _inherit = 'res.partner.address'
-
- _columns = {
- 'dn' : fields.char('Distinguished name', size=128),
- }
-
-address_ldap()
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/addons/partner_ldap/process/partner_ldap_process.xml b/addons/partner_ldap/process/partner_ldap_process.xml
deleted file mode 100644
index 71b3a1d2182..00000000000
--- a/addons/partner_ldap/process/partner_ldap_process.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/addons/partner_ldap/wizard.xml b/addons/partner_ldap/wizard.xml
deleted file mode 100644
index 1785d5c7328..00000000000
--- a/addons/partner_ldap/wizard.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
diff --git a/addons/partner_ldap/wizard/__init__.py b/addons/partner_ldap/wizard/__init__.py
deleted file mode 100644
index 4f0d100c6ac..00000000000
--- a/addons/partner_ldap/wizard/__init__.py
+++ /dev/null
@@ -1,4 +0,0 @@
-# -*- encoding: utf-8 -*-
-import synchronize
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/addons/partner_ldap/wizard/synchronize.py b/addons/partner_ldap/wizard/synchronize.py
deleted file mode 100644
index 8cf96f9a727..00000000000
--- a/addons/partner_ldap/wizard/synchronize.py
+++ /dev/null
@@ -1,149 +0,0 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Copyright (c) 2005-2006 TINY SPRL. (http://tiny.be) All Rights Reserved.
-#
-# $Id$
-#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
-#
-# 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 2
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-##############################################################################
-
-import sys
-if sys.version_info[:2] < (2, 4):
- from sets import Set as set
-
-import time
-import ldap
-import ldap.modlist
-
-import wizard
-import pooler
-
-BASE_DN = 'ou=addressbook,dc=localdomain'
-
-def terp2ldap(data):
- res = {}
- for ldap_name, terp in LDAP_TERP_MAPPER.items():
- if callable(terp) and terp(data):
- res[ldap_name] = [terp(data)]
- elif isinstance(terp, basestring) and data[terp]:
- res[ldap_name] = ['%s' % data[terp]]
- return res
-
-def get_lastname(dico):
- lnames = dico['name'].split(' ', 1)[1:]
- if lnames:
- return ' '.join(lnames)
- else:
- return dico['name']
-
-def get_street(dico):
- return ' '.join([dico[x] for x in ('street', 'street2') if dico[x]])
-
-def get_name(attribute):
- def func(dico):
- return dico[attribute][1]
- return func
-
-
-LDAP_TERP_MAPPER = {
- 'displayname': 'name',
- 'mail': 'email',
- 'o': get_name('partner_id'),
- 'telephoneNumber': 'phone',
- 'street': get_street,
- 'postalcode': 'zip',
- 'l': 'city',
- 'cn': 'name',
- 'sn': get_lastname,
- 'uid': 'id',
- }
-
-
-class sync_ldap(wizard.interface):
-
- _login_arch = '''
-
-
-
-
-
- '''
-
- _login_fields = {
- 'ldap_host': {'string': 'LDAP Host', 'type': 'char', 'size': 128},
- 'dn': {'string': 'Distinguished name', 'type': 'char', 'size': 128},
- 'password': {'string': 'Password', 'type': 'char', 'size': 128},
- }
-
- def _do_sync(self, cr, uid, data, context):
- l = ldap.open(data['form']['ldap_host'])
- l.simple_bind_s(data['form']['dn'], data['form']['password'])
- ldap_objs = dict(l.search_s(BASE_DN, ldap.SCOPE_ONELEVEL, 'objectclass=*',
- LDAP_TERP_MAPPER.keys()))
- address = pooler.get_pool(cr.dbname).get('res.partner.address')
- terp_objs = dict([(x['id'], x) for x in address.read(cr, uid, address.search(cr, uid, []))])
- ldap_set = [int(x['uid'][0]) for x in ldap_objs.values()]
- terp_set = terp_objs.keys()
- for to_delete in ldap_set:
- if to_delete in terp_set:
- continue
- l.delete_s('uid=%s,%s' % (to_delete, BASE_DN))
- for to_add in terp_set:
- if to_add in ldap_set:
- continue
- new_dn = 'uid=%s,%s' % (to_add, BASE_DN)
- ldap_data = {'objectclass' : ['organizationalPerson', 'inetOrgPerson']}
- ldap_data.update(terp2ldap(terp_objs[to_add]))
- l.add_s(new_dn, ldap.modlist.addModlist(ldap_data))
- address.write(cr, uid, [to_add], {'dn' : new_dn})
- for to_update in terp_set:
- if to_update not in ldap_set:
- continue
- current_dn = 'uid=%s,%s' % (to_update, BASE_DN)
- modlist = ldap.modlist.modifyModlist(ldap_objs[current_dn], terp2ldap(terp_objs[to_update]))
- if modlist:
- l.modify_s(current_dn, modlist)
- return {}
-
- states = {
- 'init' : {
- 'actions' : [],
- 'result' : {
- 'type' : 'form',
- 'arch' : _login_arch,
- 'fields' : _login_fields,
- 'state' : (('end', 'Cancel'),('sync', 'Synchronize'))
- },
- },
- 'sync' : {
- 'actions' : [ _do_sync ],
- 'result' : { 'type' : 'state', 'state' : 'end' },
- },
- }
-
-
-sync_ldap('partners.sync_ldap')
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/addons/sandwich/__init__.py b/addons/sandwich/__init__.py
deleted file mode 100644
index 25aa31ed040..00000000000
--- a/addons/sandwich/__init__.py
+++ /dev/null
@@ -1,6 +0,0 @@
-# -*- encoding: utf-8 -*-
-import sandwich
-import report
-import wizard
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/addons/sandwich/__terp__.py b/addons/sandwich/__terp__.py
deleted file mode 100644
index 12fe33dbb1d..00000000000
--- a/addons/sandwich/__terp__.py
+++ /dev/null
@@ -1,14 +0,0 @@
-# -*- encoding: utf-8 -*-
-{
- "name" : "Sandwich Module",
- "author" : "Tiny",
- "version" : "1.0",
- "category" : "Generic Modules/Others",
- "depends" : ["base", "product"],
- "demo_xml" : ["sandwich_demo.xml"],
- "update_xml" : ["sandwich_view.xml", "sandwich_report.xml", "sandwich_wizard.xml"],
- "active": False,
- "installable": True
-}
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/addons/sandwich/report/__init__.py b/addons/sandwich/report/__init__.py
deleted file mode 100644
index b161da86f17..00000000000
--- a/addons/sandwich/report/__init__.py
+++ /dev/null
@@ -1,4 +0,0 @@
-# -*- encoding: utf-8 -*-
-import sandwich_report
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/addons/sandwich/report/sandwich_report.py b/addons/sandwich/report/sandwich_report.py
deleted file mode 100644
index c98d0ef65e3..00000000000
--- a/addons/sandwich/report/sandwich_report.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Copyright (c) 2006 TINY SPRL. (http://tiny.be) All Rights Reserved.
-#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
-#
-# 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 2
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-##############################################################################
-
-
-import time
-from report import report_sxw
-
-#
-# sandwich command report
-#
-class sandwich_order_print(report_sxw.rml_parse):
- def __init__(self, cr, uid, name, context):
- super(sandwich_order_print, self).__init__(cr, uid, name, context)
- self.localcontext.update( {
- 'time': time,
- })
-
-report_sxw.report_sxw('report.sandwich.order.print','sandwich.order','addons/sandwich/report/sandwich_report.rml',parser=sandwich_order_print)
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/addons/sandwich/report/sandwich_report.rml b/addons/sandwich/report/sandwich_report.rml
deleted file mode 100644
index e6f63c37d9a..00000000000
--- a/addons/sandwich/report/sandwich_report.rml
+++ /dev/null
@@ -1,142 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [[ repeatIn(objects, 'o') ]]
-
-
-
-
-
-
- sandwich.order.line
- form
- []
-
-
-
-
-
-
- My order lines
- sandwich.order.line
- form
- tree,form
- [('user_id','=',uid)]
-
-
-
-
-
- My order lines of the day
- sandwich.order.line
- form
- tree,form
- [('user_id','=',uid),('date','=',time.strftime('%Y-%m-%d'))]
-
-
-
-
-
- Order lines of the day
- sandwich.order.line
- form
- tree,form
- [('date','=',time.strftime('%Y-%m-%d'))]
-
-
-
-
-
- sandwich.order.tree
- sandwich.order
- tree
-
-
-
-
-
-
-
-
-
-
- sandwich.order.form
- sandwich.order
- form
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Today's orders
- sandwich.order
- form
- tree,form
-
- [('date','=',time.strftime('%Y-%m-%d'))]
-
-
-
-
-
-
-
diff --git a/addons/sandwich/sandwich_wizard.xml b/addons/sandwich/sandwich_wizard.xml
deleted file mode 100644
index e325c784921..00000000000
--- a/addons/sandwich/sandwich_wizard.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
-
- Create Order of the day
- sandwich.order_create
-
-
-
-
-
-
-
diff --git a/addons/sandwich/wizard/__init__.py b/addons/sandwich/wizard/__init__.py
deleted file mode 100644
index c26cfc23f4e..00000000000
--- a/addons/sandwich/wizard/__init__.py
+++ /dev/null
@@ -1,32 +0,0 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Copyright (c) 2006 TINY SPRL. (http://tiny.be) All Rights Reserved.
-#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
-#
-# 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 2
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-##############################################################################
-
-import sandwich_wizard
-import order_create
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/addons/sandwich/wizard/order_create.py b/addons/sandwich/wizard/order_create.py
deleted file mode 100644
index 744553938fa..00000000000
--- a/addons/sandwich/wizard/order_create.py
+++ /dev/null
@@ -1,83 +0,0 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Copyright (c) 2005-2006 TINY SPRL. (http://tiny.be) All Rights Reserved.
-#
-# $Id: makesale.py 1183 2005-08-23 07:43:32Z pinky $
-#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
-#
-# 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 2
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-##############################################################################
-
-from mx.DateTime import now
-
-import wizard
-import netsvc
-import ir
-import pooler
-
-sale_form = """
-
-
-
-
"""
-
-sale_fields = {
- 'name' : {'string' : 'Order name', 'type': 'char'},
- 'partner_id' : {'string':'Suplier', 'relation':'res.partner', 'type':'many2one'},
-}
-
-class make_sale(wizard.interface):
- def _makeOrder(self, cr, uid, data, context):
- order = pooler.get_pool(cr.dbname).get('sandwich.order')
- line = pooler.get_pool(cr.dbname).get('sandwich.order.line')
- oid = order.create(cr, uid, {
- 'name': data['form']['name'],
- 'partner': data['form']['partner_id'],
- })
- name=data['form']['name']
- cr.execute('update sandwich_order_line set order_id=%d where order_id is null', (oid,))
- value = {
- 'domain': "[('id','in',["+str(oid)+"])]",
- 'name': "Create Sandwich Orders:"+name,
- 'view_type': 'form',
- 'view_mode': 'form,tree',
- 'res_model': 'sandwich.order',
- 'view_id': False,
- 'type': 'ir.actions.act_window',
- 'res_id': oid
- }
- return value
-
- states = {
- 'init' : {
- 'actions' : [],
- 'result' : {'type' : 'form', 'arch' : sale_form, 'fields' : sale_fields, 'state' : [('end', 'Cancel'),('order', 'Make an order')]}
- },
- 'order' : {
- 'actions': [],
- 'result': {'type': 'action', 'action': _makeOrder, 'state':'end'},
- }
- }
-make_sale('sandwich.order_create')
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/addons/sandwich/wizard/sandwich_wizard.py b/addons/sandwich/wizard/sandwich_wizard.py
deleted file mode 100644
index 21be195546f..00000000000
--- a/addons/sandwich/wizard/sandwich_wizard.py
+++ /dev/null
@@ -1,131 +0,0 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Copyright (c) 2006 TINY SPRL. (http://tiny.be) All Rights Reserved.
-#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
-#
-# 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 2
-# 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, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-##############################################################################
-
-import wizard
-import pooler
-
-#
-# This class fill in the order with kind of automatically generated order lines, based on the last order for a user concerning a type of product
-#
-class sandwich_order_wizard(wizard.interface):
-
- def _sandwich_order_wizard_order(self, cr, uid, data, context):
- if not len(data['ids']):
- return {}
- cr.execute('update sandwich_order_line set order_id=%d where order_id is null', (data['ids'][0],))
- for order in pooler.get_pool(cr.dbname).get('sandwich.order').browse(cr, uid, data['ids']):
- for user_id in data['form']['user_id'][0][2]:
- for producttype in data['form']['product_type_id'][0][2]:
- if not pooler.get_pool(cr.dbname).get('sandwich.order.line').search(cr, uid, [('user_id','=',user_id),('product_type_id','=',producttype),('order_id','=',order.id)]):
- vals = {
- 'user_id': user_id,
- 'order_id': order.id,
- 'date': order.date,
- 'product_type_id': producttype
- }
- vals.update( pooler.get_pool(cr.dbname).get('sandwich.order.line').onchange_user_id(cr, uid, uid, user_id, producttype)['value'] )
- pooler.get_pool(cr.dbname).get('sandwich.order.line').create(cr, uid, vals)
- return {}
-
- _sandwich_order_wizard_form = '''
-
-
-
-
-
'''
-
- _sandwich_order_wizard_fields = {
- 'user_id': {'string': 'User', 'type': 'many2many','relation':'res.users'},
- 'product_type_id': {'string': 'Product', 'type': 'many2many', 'relation':'sandwich.product.type'},
- }
-
- states = {
- 'init': {
- 'actions': [],
- 'result': {'type': 'form', 'arch':_sandwich_order_wizard_form, 'fields':_sandwich_order_wizard_fields, 'state':[('end','Cancel'),('complete','Complete order')]}
- },
- 'complete': {
- 'actions': [_sandwich_order_wizard_order],
- 'result': {'type': 'state', 'state': 'end'}
- }
- }
-
-sandwich_order_wizard('sandwich.order.wizard')
-
-#
-# This class send a request message to users who don't have their order filled in for this day
-#
-class sandwich_order_recall_wizard(wizard.interface):
- def _sandwich_order_recall_wizard_send(self, cr, uid, data, context):
- for user_id in data['form']['user_id'][0][2]:
- if not pooler.get_pool(cr.dbname).get('sandwich.order.line').search(cr, uid, [('user_id','=',user_id),('order_id','=',data['id'])]):
- request = pooler.get_pool(cr.dbname).get('res.request')
- request.create(cr, uid, {
- 'name' : "Please order your lunch of the day",
- 'priority' : '0',
- 'state' : 'active',
- 'body' : """Hello,
-
-It seems like you have forgotten to order your sandwich (or meal).
-As it will be ordered soon, it seems to be a rather nice idea to complete your
-order for today ASAP. If you do not, you'll probably get the same meal as yesterday...
-
-Thanks,
-
---
-Tiny ERP
-""",
- 'act_from' : uid,
- 'act_to' : user_id,
- })
- return {}
-
- _sandwich_order_recall_wizard_form = '''
-