<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>
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;