From 9bbeaca7d3a3594d775fb114c40469ec2a45e37e Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Sun, 25 Sep 2011 23:08:44 +0200 Subject: [PATCH] [IMP] useability and code cleaning bzr revid: fp@tinyerp.com-20110925210844-g86ikbvnvnsjpzpk --- .../point_of_sale/account_statement_view.xml | 28 ++++------- .../account_statement_wizard.xml | 9 ---- .../point_of_sale/point_of_sale_sequence.xml | 2 +- addons/point_of_sale/point_of_sale_view.xml | 4 +- .../wizard/all_closed_cashbox_of_the_day.py | 48 ------------------- .../wizard/all_closed_cashbox_of_the_day.xml | 31 ------------ .../point_of_sale/wizard/pos_box_entries.xml | 2 +- addons/point_of_sale/wizard/pos_box_out.xml | 2 +- 8 files changed, 14 insertions(+), 112 deletions(-) delete mode 100644 addons/point_of_sale/account_statement_wizard.xml delete mode 100644 addons/point_of_sale/wizard/all_closed_cashbox_of_the_day.py delete mode 100644 addons/point_of_sale/wizard/all_closed_cashbox_of_the_day.xml diff --git a/addons/point_of_sale/account_statement_view.xml b/addons/point_of_sale/account_statement_view.xml index ee922d4fee6..e314f6af1bc 100644 --- a/addons/point_of_sale/account_statement_view.xml +++ b/addons/point_of_sale/account_statement_view.xml @@ -20,17 +20,6 @@ - - - - account.bank.statement.inherit account.bank.statement @@ -139,14 +128,6 @@ - - + + + diff --git a/addons/point_of_sale/account_statement_wizard.xml b/addons/point_of_sale/account_statement_wizard.xml deleted file mode 100644 index 25f099810b4..00000000000 --- a/addons/point_of_sale/account_statement_wizard.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/addons/point_of_sale/point_of_sale_sequence.xml b/addons/point_of_sale/point_of_sale_sequence.xml index d2d4bcc313c..bf83fe17942 100644 --- a/addons/point_of_sale/point_of_sale_sequence.xml +++ b/addons/point_of_sale/point_of_sale_sequence.xml @@ -14,7 +14,7 @@ POS Order pos.order POS - 6 + 4 diff --git a/addons/point_of_sale/point_of_sale_view.xml b/addons/point_of_sale/point_of_sale_view.xml index 3ffc5f7dc92..d7089ec3fd1 100644 --- a/addons/point_of_sale/point_of_sale_view.xml +++ b/addons/point_of_sale/point_of_sale_view.xml @@ -694,12 +694,12 @@ groups="group_pos_manager"/> diff --git a/addons/point_of_sale/wizard/all_closed_cashbox_of_the_day.py b/addons/point_of_sale/wizard/all_closed_cashbox_of_the_day.py deleted file mode 100644 index 330668548e4..00000000000 --- a/addons/point_of_sale/wizard/all_closed_cashbox_of_the_day.py +++ /dev/null @@ -1,48 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2004-2010 Tiny SPRL (). -# -# 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, 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 Affero 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 . -# -############################################################################## - -from osv import osv - -class all_closed_cashbox_of_the_day(osv.osv_memory): - _name = 'all.closed.cashbox.of.the.day' - _description = 'All closed cashbox of the day' - - def print_report(self, cr, uid, ids, context=None): - """ - To get the date and print the report - @param self: The object pointer. - @param cr: A database cursor - @param uid: ID of the user currently logged in - @param context: A standard dictionary - @return : retrun report - """ - if context is None: - context = {} - datas = {'ids': context.get('active_ids', [])} - return { - 'type': 'ir.actions.report.xml', - 'report_name': 'all.closed.cashbox.of.the.day', - 'datas': datas, - } - -all_closed_cashbox_of_the_day() - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/addons/point_of_sale/wizard/all_closed_cashbox_of_the_day.xml b/addons/point_of_sale/wizard/all_closed_cashbox_of_the_day.xml deleted file mode 100644 index e78ef5c6d6a..00000000000 --- a/addons/point_of_sale/wizard/all_closed_cashbox_of_the_day.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - all closed cashbox of the day - all.closed.cashbox.of.the.day - form - -
-