bill task work selects wrong receivable account in multi-company context

Bug #1067541 reported by Stéphane Bidoul (Acsone) on 2012-10-16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP R&D Addons Team 3
OpenERP Community Backports (Addons)
Status tracked in 7.0
Laurent Mignon (Acsone)

Bug Description


When running Bill Task Work, it is possible to create an invoice where the partner account (field account_id) is from a different company than the invoice.

This one applies to 6.1 and trunk.
It is a variant of lp:1047826.

How to reproduce:
1. install trunk and accounting module and hr_timesheet_invoice module
2. create 2 companies A and B with diferrent charts of account
3. create a 3rd company M as partent of A and B
4. set set user preferences to company M
5. create a partner
6. create an analytic account named Project1 for company A with invoice factor = 100%
7. create timesheets on Project1
8. run bill task work
9. you get a draft invoice for company A (the account's company), this is correct
10. if you click on the receivable account to see the details, you see it is the receivable account of company M -> this is not correct.

I'll attach a merge proposal.


Related branches

summary: - bill task work selects wrong partner account
+ bill task work selects wrong receivable account in multi-company context
Amit Parik (amit-parik) on 2012-10-19
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
Changed in ocb-addons:
status: New → Fix Committed
status: Fix Committed → New
Amit Parik (amit-parik) on 2013-10-21
tags: added: costing
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers