bill task work selects wrong receivable account in multi-company context
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Medium
|
OpenERP R&D Addons Team 3 | |||
OpenERP Community Backports (Addons) | Status tracked in 7.0 | |||||
6.1 |
New
|
Undecided
|
Unassigned | |||
7.0 |
Fix Released
|
Undecided
|
Laurent Mignon (Acsone) |
Bug Description
Hello,
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_
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.
-sbi
Related branches
- Stéphane Bidoul (Acsone) (community): Disapprove
- Olivier Dony (Odoo): Pending requested
-
Diff: 337 lines (+304/-1) (has conflicts)4 files modifiedaccount/account_invoice_view.xml (+1/-1)
hr_timesheet_invoice/tests/__init__.py (+26/-0)
hr_timesheet_invoice/tests/test_multi_company.py (+115/-0)
hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py (+162/-0)
- Stéphane Bidoul (Acsone) (community): Approve (code review and test)
- OpenERP Core Team: Pending requested
-
Diff: 209 lines (+153/-7)4 files modifiedaccount/account_invoice_view.xml (+1/-1)
hr_timesheet_invoice/hr_timesheet_invoice.py (+12/-6)
hr_timesheet_invoice/tests/__init__.py (+26/-0)
hr_timesheet_invoice/tests/test_multi_company.py (+114/-0)
- Holger Brunn (Therp): Approve (code review)
- Stéphane Bidoul (Acsone) (community): Approve (code review)
- Stefan Rijnhart (Opener): Approve
-
Diff: 211 lines (+155/-7)4 files modifiedaccount/account_invoice_view.xml (+1/-1)
hr_timesheet_invoice/hr_timesheet_invoice.py (+12/-6)
hr_timesheet_invoice/tests/__init__.py (+26/-0)
hr_timesheet_invoice/tests/test_multi_company.py (+116/-0)
summary: |
- bill task work selects wrong partner account + bill task work selects wrong receivable account in multi-company context |
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 |
tags: | added: costing |
ported to github https:/ /github. com/odoo/ odoo/issues/ 371