reports-analytic-balance-and inverted-analytic-balance

Asked by os33

Hello,

I created some projects and sub-projects which are linked with analytic accounts (view) and sub-analytic accounts(normal).

The entries are only in sub analytic-accounts.

I tried some report : Financial management>Charts>Analytic Chart of Accounts.

I selected a parent analytic account.

If I print the analytic balance of the (parent) analytic account it seems ok but if I print the inverted analytic balance report, I've no data.

The Cost Ledger and Cost Ledger (quantity only) reports don't have any data too.

Is it normal or a bug?

Thanks for your answer

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#1

Hello,

please apply the following patch which will solve the error trace-back in cost_ledger report (there is one error trace-back in server side regarding field pricelist_id which is not exist in account analytic line object.):
=== modified file 'hr_timesheet_invoice/report/cost_ledger.py'
--- hr_timesheet_invoice/report/cost_ledger.py 2009-10-09 11:49:00 +0000
+++ hr_timesheet_invoice/report/cost_ledger.py 2010-01-12 07:06:10 +0000
@@ -88,7 +88,7 @@
             revenue = 0.0
             if lines[id].amount < 0 and lines[id].product_id and lines[id].product_uom_id and lines[id].account_id.pricelist_id:
                 ctx = {'uom': lines[id].product_uom_id.id}
- price = price_obj.price_get(self.cr, self.uid, [lines[id].pricelist_id.id], lines[id].product_id.id, lines[id].unit_amount, ctx)[lines[id].pricelist_id.id]
+ price = price_obj.price_get(self.cr, self.uid, [lines[id].account_id.pricelist_id.id], lines[id].product_id.id, lines[id].unit_amount, ctx)[lines[id].account_id.pricelist_id.id]
                 revenue = round(price * lines[id].unit_amount, 2)
             r['revenue'] = revenue
             self.sum_revenue[account_id] += revenue

And cost_ledger and inverted analytic balance report not consider client account it will take the selected analytic account id and fetch the balance and entries of selected account.

Thanks.

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#2

And cost_ledger and inverted analytic balance report not consider child account it will take the selected analytic account id and fetch the balance and entries of selected account.

Thanks

Can you help with this problem?

Provide an answer of your own, or ask os33 for more information if necessary.

To post a message you must log in.