← Back to team overview

openerp-india team mailing list archive

[Bug 1070418] Re: [6.1 / trunk] budget position should support view accounts

 

Hello Amit,

Thanks for looking into this.

I don't know how to explain the steps to reproduce differently.

The problem appears when you add accounts of type 'view' in a budget
position. In that case, the 'practical amount' field in budget lines is
always 0.

If you look at my attached merge proposal, you'll see the problem is in
the _prac_amt() method in account_budget.py, where there is a SELECT
FROM account_analytic_line WHERE general_account_id = ANY(acc_id).
Without my MP, the acc_id values may refer to view accounts, which are
never referred to from analytic lines.

Best regards,

-sbi

-- 
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/1070418

Title:
  [6.1 / trunk] budget position should support view accounts

Status in OpenERP Addons (modules):
  Incomplete

Bug description:
  Hello,

  In account_budget module, when creating a budget position, the user
  can select view accounts and also accounts with consolidation
  children, in addition to normal accounts.

  However, when viewing budgets with positions containing only view
  accounts, the "practical amount" field is always zero.

  Since these type of accounts are accepted as budget positions, the
  system should take into account children and consolidation children
  when computing the practical amount.

  How to reproduce:
  1. install account_budget module
  2. create some moves on a general account
  3. create a budget position containing one *view* account -> debit and credit values are shown correctly in the budget position
  4. create a budget with one line referring to the above budget position -> the practical amount is always 0

  I attach a merge proposal.

  -sbi

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


References