Comment 8 for bug 1154976

Revision history for this message
Wolfgang Taferner (TaPo-IT) (w.taferner) wrote :

Ok, here is what I did to get it working again...fixing the computation method to include account_move_lines which are not created by the bank statement / transactions (see attached patch)

and adding a view for account.bank.statement
object: account.bank.statement
inherited view: account.bank.statement.form

The domain could be improved though, but at least it works again like expected from 6.1

<?xml version="1.0"?>
              <xpath expr="//page[@name='statement_line_ids']" position="after">
                   <page string="Journal Entries">
                      <field colspan="4" name="move_line_ids" nolabel="1" widget="many2many" domain="[('journal_id.type', '=','bank'),('statement_id', '=', False)]">
                          <tree string="Statement lines">
                              <field name="date"/>
                              <field name="period_id"/>
                              <field name="journal_id"/>
                              <field name="name"/>
                              <field name="debit"/>
                              <field name="credit"/>
                          </tree>
                      </field>
                  </page>
              </xpath>

Now the view for bank statements has the possibility to add account_move_lines from bank journals (take care you only choose move_lines from the proper account)

Hope this will help others and maybe OpenERP to fix this bug/regression quickly