← Back to team overview

openerp-india team mailing list archive

[Bug 1068038] [NEW] hr_expense: generated invoice may use wrong accounts in a multi-company context

 

Public bug reported:

Hello,

When generating invoices from expenses, the invoice sometimes uses wrong
accounts when the use generating the expense is from another company
than the expense's company.

I reproduced with 6.1, but it probably applies to trunk too since the
code has not changed.

How to reproduce:
- create 2 companies A and B
- create an expense for an employee of company B
- approve and invoice the expense with the user where company preference is set to A
- result: the invoice is created for company B (correct), but using accounts (payable, expense) from company A (wrong)
- expected result: the invoice should be with accounts of company A

I link a merge proposal.

Best regards,

-sbi

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
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/1068038

Title:
  hr_expense: generated invoice may use wrong accounts in a multi-
  company context

Status in OpenERP Addons (modules):
  New

Bug description:
  Hello,

  When generating invoices from expenses, the invoice sometimes uses
  wrong accounts when the use generating the expense is from another
  company than the expense's company.

  I reproduced with 6.1, but it probably applies to trunk too since the
  code has not changed.

  How to reproduce:
  - create 2 companies A and B
  - create an expense for an employee of company B
  - approve and invoice the expense with the user where company preference is set to A
  - result: the invoice is created for company B (correct), but using accounts (payable, expense) from company A (wrong)
  - expected result: the invoice should be with accounts of company A

  I link a merge proposal.

  Best regards,

  -sbi

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


Follow ups

References