[6.0][account_analytic_default] salesman chosen is wrong

Bug #656036 reported by Vianney - www.akretion.com.br
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
JMA(Open ERP)

Bug Description

The salesman used to choose the analytic account is the user_id, which is wrong when the user creating the sale order is not the same as the one who creates the invoice... In this case it is the user creating the invoice who will be used to choose the analytic account and not the one who created the sale order.

Here is a patch solving this problem :

Related branches

Revision history for this message
Vianney - www.akretion.com.br (vianneydc) wrote :

I forgot the patch, sorry, here it is :

Revision history for this message
JMA(Open ERP) (jma-openerp) wrote :

Hello Vianney,
'uid' would always prompt the current user.
This is not a good approach.
Thanks for pointing this out.

Changed in openobject-addons:
assignee: nobody → JMA(Open ERP) (jma-openerp)
status: New → Confirmed
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Thanks Vianney.
Fixed by revision 4247 <email address hidden>.

Changed in openobject-addons:
milestone: none → 6.0
status: Confirmed → Fix Released
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.