← Back to team overview

openerp-india team mailing list archive

[Bug 1048305] Re: hr_timesheet_invoice: bill task work generates invoice without taxes

 

Hi Fabien,

I must have missing something here. May I reopen to discuss?

Actually, I understand that picking the taxes from the general account
when there are no taxes on the product is the current behaviour when
creating an invoice manually. See http://bazaar.launchpad.net/~openerp
/openobject-addons/trunk/view/head:/account/account_invoice.py#L1438 ;
so my patche simply does the same when creating invoices in Bill Task
Work.

The other thing is a multi-company scenario, when you have the same
user/employee entering timesheets for projects of company A and company
B. There is only one product associated to the employee for its
timesheets. Now, on the product, the general accounts to use are defined
as properties, so the correct account is selected depending on the
company. The taxes however are not defined as properties, so how can we
obtain the correct tax in such situation?

Thanks for your attention,

-sbi


** Changed in: openobject-addons
       Status: Invalid => 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/1048305

Title:
  hr_timesheet_invoice: bill task work generates invoice without taxes

Status in OpenERP Addons (modules):
  New

Bug description:
  Hello,

  When running "invoice task work", the generate invoice has no taxes if
  the product "Services on Timesheets" (6.1) or "Service on Demand"
  (trunk) has no taxes defined on it (which is the default). In such a
  situation the default taxes from the sales account should be proposed.

  This applies to 6.1 and trunk.

  How to reproduce:
  1. install module hr_timesheet_invoice
  2. create a project with to_invoice = Yes and set a customer on the analytic account
  3. create a timesheet line for that project
  4. run invoice task work -> the generated invoice has no tax

  This is because in
  hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py, the taxes
  are taken from the product only.

  The correct behaviour is found in account/account_invoice.py in
  product_id_change where it uses the taxes from the sales account if no
  taxes are defined on the product.

  Best regards,

  -sbi

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


References