[FIX]Back
authorDenis Ledoux dle@openerp.com <>
Mon, 26 Nov 2012 15:01:24 +0000 (16:01 +0100)
committerDenis Ledoux dle@openerp.com <>
Mon, 26 Nov 2012 15:01:24 +0000 (16:01 +0100)
bzr revid: dle@openerp.com-20121126150124-u5wf45ticx73gsip

addons/account/account_view.xml
addons/account/static/src/js/account_move_line_quickadd.js

index fb8866b..0ca68f4 100644 (file)
             <field name="model">account.move.line</field>
             <field eval="4" name="priority"/>
             <field name="arch" type="xml">
-                <tree_account_move_line_quickadd colors="red:state == 'draft';black:state == 'valid'" string="Journal Items" create="true" on_write="on_create_write" version="7.0" editable="top">
+                <tree colors="red:state == 'draft';black:state == 'valid'" string="Journal Items" create="true" on_write="on_create_write" version="7.0" editable="top">
                     <field name="journal_id" options='{"no_open":True}' invisible="context.get('journal_id',False)"/>
                     <field name="period_id" options='{"no_open":True}' invisible="context.get('period_id',False)"/>
                     <field name="date"/>
                     <field name="currency_id" readonly="True" invisible="not context.get('currency',False)" />
                     <field name="state" />
                     <field name="company_id" invisible="1"/>
-                </tree_account_move_line_quickadd>
+                </tree>
             </field>
         </record>
 
index 47f5aec..997b2b0 100644 (file)
@@ -45,14 +45,8 @@ openerp.account.quickadd = function (instance) {
                 self.current_period = result['period_id'];
                 self.current_journal = result['journal_id'];
             });
-            
             return tmp;
         },
-        load_view: function(context) {
-            debugger;
-            this.$el.parent().addClass("oe_view_manager_view_list");
-            return this._super.apply(this, arguments);
-        },
         do_search: function(domain, context, group_by) {
             var self = this;
             this.last_domain = domain;