Analytic defaults doesn't work with purchase orders

Bug #1082249 reported by Andres Calle (TRESCLOUD)
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Low
OpenERP R&D Addons Team 3

Bug Description

1) Steps to reproduce the issue you have observed
In a database with the sample data go to Accounting / Configuration / Analytic Accounting / Analytic Defaults and create an analytic_dafault for product "Ice Cream" and partner "Agrolait", then make a Purchase Order and select partner Agrolait then add a product line with product Ice Cream... the analytic default should have load but it doesn't.

2) The result you observed
I'm trying to use account_analytic_default to automatically select the analytic account on a "purchase order" based on partner and product. But it doesn't selects any analytic account, however it worked just fine when creating supplier invoices from blank.

3) The result you expected
It should work according to Comunity Book where is stated "Working with Analytic Default (...) the correct analytic account will be proposed when creating an order or an invoice."

Even more, usually you create a purchase order prior to a suplier invoice, then if the purchase order didn't have any analytic account at its creation time the supllier invoice won't either even if defaults are set.

4) The platform you are using (and browser version, if relevant)
OpenERP 6.1 with modules analytic 6.1.1.1, account_analytic_default 6.1.1.0
Windows 7 Home Edition with Chrome

5) The OpenERP version you are using (e.g. 6.1.1-20120910-233309), if possible including the specific revision (e.g. r.2824) if you use the source repositories.
OpenERP 6.1-20121118-003301

This bug has a some relation with bug 493444 but the fix provided seems not to cover the scenario of purchase orders.

Thanks for your help.

Best Regards,

Andrés Calle
TRESCLOUD Cía Ltda.

Related branches

Revision history for this message
Twinkle Christian(OpenERP) (tch-openerp) wrote :

Hello Andres,

I have checked your issue with 6.1 as well as latest trunk . But, Currently "account_analytic_default" module functionality only worked for invoice part only, So If you tried with customer/supplier invoice then it's working fine.

But, We didn't implemented this for Sale/purchase Order, but it's good improvement that's why I am confirming this issue.

Thanks for reporting..!!

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Khushboo Bhatt(openerp) (kbh-openerp) wrote :

Hello Andres Calle,

This issue has been fixed on lp:~openerp-dev/openobject-addons/trunk-bug-1082249-kbh
branch with following rev no and rev ID

Rev No : 8173
Revision ID: <email address hidden>

Thanks,
Khushboo.

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Andres Calle (TRESCLOUD) (andres-calle) wrote :

Hi Khushboo!

Thanks for your help, I tried to test but I am not yet so familiar with launchpad and I couldn't get to the specific code modified. However I will test on next week with the nightly builds.

Best Regards,

Andrés Calle
TRESCLOUD

Revision history for this message
Khushboo Bhatt(openerp) (kbh-openerp) wrote :

 Hi Andres Calle,

  Whenever this fix will be merged in trunk branch then after you can see the code on next nightly build from that day.

Thank you,
Khushboo.

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.