← Back to team overview

openerp-india team mailing list archive

[Bug 1047826] Re: bill task work selects wrong journal in multi-company context

 

** Description changed:

  Hello,
  
  When running Bill Task Works in a multi company context, the system
  sometimes creates an invoice for the wrong company
  
  This is for 6.1 and probably trunk too.
  
  How to reproduce:
  0. install modules accounting and hr_timesheet_invoice
  1. create company Parent and Subsidiary as child of Parent
  2. make sure Administrator has access to Parent Subsidiary, set Administrator default filter to Parent in preferences
  3. rename Sales Journals to Sales Journal (parent) and Sales Journal (subsidiary) so they can be distinguished
  4. create a customer on company Subsidiary named "Customer Subsidiary"
  5. create a project named "Project for Subsidiary" with To Invoice = Yes and set customer to Customer Subsidiary
  6. create a timesheet line on the analytic account "Project for Subsidiary"
  7. run Bill Task Work and create the invoce (see screenshot 1)
  
  -> the invoice generated has the correct customer and account (in yellow
  in screenshot 2), but uses the wrong journal and sales account (in red
  in screenshot 2); therefore an error message is produced when validating
  the invoice (Error occurred while validating the field(s) company_id:
  Company must be the same for its related account and period.).
  
- I'll attach a merge proposal which uses the partner's company_id for the
- generated invoice.
+ I'll attach a merge proposal which uses the analytic account's
+ company_id for the generated invoice.
  
  Best regards,
  
  -sbi

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

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

Status in OpenERP Addons (modules):
  New

Bug description:
  Hello,

  When running Bill Task Works in a multi company context, the system
  sometimes creates an invoice for the wrong company

  This is for 6.1 and probably trunk too.

  How to reproduce:
  0. install modules accounting and hr_timesheet_invoice
  1. create company Parent and Subsidiary as child of Parent
  2. make sure Administrator has access to Parent Subsidiary, set Administrator default filter to Parent in preferences
  3. rename Sales Journals to Sales Journal (parent) and Sales Journal (subsidiary) so they can be distinguished
  4. create a customer on company Subsidiary named "Customer Subsidiary"
  5. create a project named "Project for Subsidiary" with To Invoice = Yes and set customer to Customer Subsidiary
  6. create a timesheet line on the analytic account "Project for Subsidiary"
  7. run Bill Task Work and create the invoce (see screenshot 1)

  -> the invoice generated has the correct customer and account (in
  yellow in screenshot 2), but uses the wrong journal and sales account
  (in red in screenshot 2); therefore an error message is produced when
  validating the invoice (Error occurred while validating the field(s)
  company_id: Company must be the same for its related account and
  period.).

  I'll attach a merge proposal which uses the analytic account's
  company_id for the generated invoice.

  Best regards,

  -sbi

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


References