From e4840121407e0a83ae61f95a29e1cc291de6ae20 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Wed, 15 Sep 2010 00:20:09 +0200 Subject: [PATCH] imp remove old code bzr revid: fp@tinyerp.com-20100914222009-ht0fxenguhaduf35 --- addons/account_voucher/voucher.py | 28 ---------------------------- addons/account_voucher/voucher_view.xml | 12 ------------ 2 files changed, 40 deletions(-) diff --git a/addons/account_voucher/voucher.py b/addons/account_voucher/voucher.py index 757198a..d6b00de 100644 --- a/addons/account_voucher/voucher.py +++ b/addons/account_voucher/voucher.py @@ -661,34 +661,6 @@ class account_voucher(osv.osv): default['date'] = time.strftime('%Y-%m-%d') return super(account_voucher, self).copy(cr, uid, id, default, context) -# # TODO: remove this -# def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False): -# """ -# Returns views and fields for current model where view will depend on {view_type}. -# @param view_id: list of fields, which required to read signatures -# @param view_type: defines a view type. it can be one of (form, tree, graph, calender, gantt, search, mdx) -# @param context: context arguments, like lang, time zone -# @param toolbar: contains a list of reports, wizards, and links related to current model -# -# @return: Returns a dict that contains definition for fields, views, and toolbars -# """ -# data_pool = self.pool.get('ir.model.data') -# journal_pool = self.pool.get('account.journal') -# voucher_type = { -# 'sale':'view_sale_receipt_form', -# 'purchase':'view_purchase_receipt_form', -# 'payment':'view_vendor_payment_form', -# 'receipt':'view_vendor_receipt_form' -# } -# if view_type == 'form': -# tview = voucher_type.get(context.get('type')) -# tview = tview or 'view_voucher_form' -# result = data_pool._get_id(cr, uid, 'account_voucher', tview) -# view_id = data_pool.browse(cr, uid, result, context=context).res_id -# -# res = super(account_voucher, self).fields_view_get(cr, uid, view_id, view_type, context, toolbar, submenu) -# return res - account_voucher() class account_voucher_line(osv.osv): diff --git a/addons/account_voucher/voucher_view.xml b/addons/account_voucher/voucher_view.xml index f51dd29..94f7f18 100644 --- a/addons/account_voucher/voucher_view.xml +++ b/addons/account_voucher/voucher_view.xml @@ -46,18 +46,6 @@ - - -- 1.7.10.4