← Back to team overview

openerp-india team mailing list archive

[Bug 1067541] Re: bill task work selects wrong receivable account in multi-company context

 

** Summary changed:

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

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1067541

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

Status in OpenERP Addons (modules):
  New

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_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.

  -sbi

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1067541/+subscriptions


References