imp remove old code
authorFabien Pinckaers <fp@tinyerp.com>
Tue, 14 Sep 2010 22:20:09 +0000 (00:20 +0200)
committerFabien Pinckaers <fp@tinyerp.com>
Tue, 14 Sep 2010 22:20:09 +0000 (00:20 +0200)
bzr revid: fp@tinyerp.com-20100914222009-ht0fxenguhaduf35

addons/account_voucher/voucher.py
addons/account_voucher/voucher_view.xml

index 757198a..d6b00de 100644 (file)
@@ -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):
index f51dd29..94f7f18 100644 (file)
                                     <field name="account_analytic_id" groups="base.group_extended"/>
                                 </tree>
                             </field>
-                            
-                            <!--
-                            <field name="line_dr_ids" attrs="{'invisible':[('type','in',['sale', 'receipt', False])]}" on_change="onchange_price(line_dr_ids, False, partner_id)" default_get="{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}" colspan="4" nolabel="1" height="180">
-                                <tree string="Purchase and Payments" editable="top">
-                                    <field name="account_id"/>
-                                    <field name="name"/>
-                                    <field name="amount" sum="Total Amount"/>
-                                    <field name="type" groups="base.group_extended"/>
-                                    <field name="account_analytic_id" domain="[('parent_id','!=',False)]" groups="base.group_extended"/>
-                                </tree>
-                            </field>
-                            -->
                             <group col="2" colspan="3">
                                 <separator string="Internal Notes" colspan="2"/>
                                 <field name="narration" colspan="2" nolabel="1"/>