account_analytic_plans, no distributions shown if the journal has no analytic journal set

Bug #925994 reported by Leonardo Pistone
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Undecided
OpenERP Publisher's Warranty Team

Bug Description

observed in v6 server 3577 addons 5032 web 4760
and also in trunk server 4004 addons 6475 web 2105

A journal has a field "analytic journal" that is not required. if you make for example a sales invoice, and select an analytic distribution in a line, you only see the distributions that have the analytic journal specified in the current journal (i.e. sale journal). That is OK.

However, if I leave empty the field "analytic journal" in the journal, I would expect to be able to choose from all distributions, but instead I get none. Since the field is not required, I would expect some reasonable behaviour here i.e. showing all distributions.

offending code:
http://bazaar.launchpad.net/~openerp/openobject-addons/6.0/view/head:/account_analytic_plans/account_analytic_plans.py#L114

Thanks!

Tags: maintenance

Related branches

tags: added: maintenance
Changed in openobject-addons:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
Changed in openobject-addons:
status: New → Confirmed
status: Confirmed → In Progress
Revision history for this message
Somesh Khare (somesh.khare) wrote :

Hello Leonardo Pistone,

We have fixed this issue in branch lp:~openerp-dev/openobject-addons/6.0-opw-382073-skh with,

Revision ID: <email address hidden>
Revision number:5040

This branch is under the review of our experts and will be merged after the approval.

Thanks

Changed in openobject-addons:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.