Comment 2 for bug 1048305

Revision history for this message
Stéphane Bidoul (Acsone) (sbi) wrote : 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