diff options
| author | Denis Ledoux <dle@odoo.com> | 2015-08-19 14:26:04 +0200 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2015-08-19 14:29:09 +0200 |
| commit | 37a2f426a9b2ae6db40a68f3abef529fed11ee74 (patch) | |
| tree | 8bb9ad1b82bb6cc4aa9925d65ef4438bec423426 /addons/web/controllers/main.py | |
| parent | 5fe858d7aa68e09c4eaa28261f16574be4106379 (diff) | |
[FIX] hr_timesheet_invoice: invoice timesheet of contract with no customer
If there is no partner on the contract to which are invoiced
the timesheets, the error telling you to set a partner (and a pricelist)
must be raised before trying to create the invoice, not before
creating the lines of the invoice.
In this case, this is because if you set no customer
on the contract, there is no pricelist automatically filled
as well, and the currency is took from the pricelist,
which will be False in the case there is no pricelist
on the contract, and you cannot create an invoice
with no currency set.
opw-647672
Diffstat (limited to 'addons/web/controllers/main.py')
0 files changed, 0 insertions, 0 deletions
