<field name="type">tree</field>
<field eval="4" name="priority"/>
<field name="arch" type="xml">
- <tree colors="red:state == 'draft';black:state == 'valid'" string="Journal Items" editable="top" on_write="on_create_write">
+ <tree colors="red:state == 'draft';black:reconcile_id > 0" string="Journal Items" editable="top" on_write="on_create_write">
<field name="date"/>
<field name="period_id" invisible="1"/>
<field name="move_id"/>
<field name="amount_currency" attrs="{'readonly':[('state','=','valid')]}"/>
<field name="currency_id" attrs="{'readonly':[('state','=','valid')]}"/>
<field name="state" invisible="1"/>
+ <field name="reconcile_id" invisible="1"/>
</tree>
</field>
</record>
display: inline-block ;
width:100%;
margin: 10px;
-}
\ No newline at end of file
+}
+.openerp .oe_extended_form_view .oe_form_field_progressbar.ui-progressbar {
+ width: 200px !important;
+}
\ No newline at end of file
instance.account.list_button = instance.web.form.WidgetButton.extend({
on_click: function() {
+ var self = this
var list_view = this.view.getParent().list_view.controller
ids = list_view.get_selected_ids()
if (ids.length == 0) {
self.do_action(result.result, function () {
// reload view
list_view.reload();
+ self.getParent().reload()
});
});
+
}
})