← Back to team overview

openerp-india team mailing list archive

[Bug 1036498] [NEW] end balance dont consider balance_start in statement reconcilation

 

Public bug reported:

With latest revno for 6.1.

Create and approve a supplier invoice
pay it
Go to partial processing, statement reconciliation create one for journal used to pay invoice, select the bank move line
Click on compute

See the balance_end get the total in credit amount for line, this is
wrong because needs to less balance_start.

The _end_balance function for balance_end field is not wrong: just
consider last balance and sum(amount) from lines, the change is in the
store option in field this change with:

        'balance_end': fields.function(_end_balance,
            store = {
                'account.bank.statement': (lambda self, cr, uid, ids, c={}: ids, ['line_ids','move_line_ids'], 10),
                'account.bank.statement.line': (_get_statement, ['amount'], 10),
            },
            string="Computed Balance", help='Balance as calculated based on Starting Balance and transaction lines'),

In 6.0 was store=True

Please check, this is locking bug store arguments are not working, i
attached and image showing the message.

Regards,

** Affects: openobject-addons
     Importance: Undecided
         Status: New


** Tags: account reconciliation

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1036498

Title:
  end balance dont consider balance_start in statement reconcilation

Status in OpenERP Addons (modules):
  New

Bug description:
  With latest revno for 6.1.

  Create and approve a supplier invoice
  pay it
  Go to partial processing, statement reconciliation create one for journal used to pay invoice, select the bank move line
  Click on compute

  See the balance_end get the total in credit amount for line, this is
  wrong because needs to less balance_start.

  The _end_balance function for balance_end field is not wrong: just
  consider last balance and sum(amount) from lines, the change is in the
  store option in field this change with:

          'balance_end': fields.function(_end_balance,
              store = {
                  'account.bank.statement': (lambda self, cr, uid, ids, c={}: ids, ['line_ids','move_line_ids'], 10),
                  'account.bank.statement.line': (_get_statement, ['amount'], 10),
              },
              string="Computed Balance", help='Balance as calculated based on Starting Balance and transaction lines'),

  In 6.0 was store=True

  Please check, this is locking bug store arguments are not working, i
  attached and image showing the message.

  Regards,

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1036498/+subscriptions


Follow ups

References