[hr_timesheet_invoice] : Error when trying to reinvoice

Bug #751269 reported by Bogdan Stanciu
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 3

Bug Description

Hello!

I was using hr timesheet, project modules to track time spent on different tasks and to create invoices.

Everything works as expected, a newinvoice is created.

However, if I try to create another invoice (for whatever reason, mistake included) the following traceback shows-up:

1. go to Project>Invoice>Invoice tasks
2. select already invoiced lines
3. click action>fill in the dialog box if needed, click create invoice
4. traceback:

Environment Information :
System : Linux-2.6.35-28-generic-i686-with-Ubuntu-10.10-maverick
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 10.10
Release: 10.10
Codename: maverick
Operating System Release : 2.6.35-28-generic
Operating System Version : #49-Ubuntu SMP Tue Mar 1 14:40:58 UTC 2011
Operating System Architecture : 32bit
Operating System Locale : fr_CH.UTF8
Python Version : 2.6.6
OpenERP-Client Version : 6.1-dev
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 410, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 598, in dispatch
    res = fn(db, uid, *params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/openerp/addons/hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py", line 129, in do_create
    data['product'] = data['product'][0]
TypeError: 'int' object is unsubscriptable

While it is maybe correct NOT to recreate the same invoice, an error message should capture this event, and not a blocking error.

thank you!

bogdan

Related branches

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

I have checked your issue But I am not faced any type of traceback.

I am confirming this issue for the problem of recreate invoice if the invoice in open state(validate) then at the recreate invoice time the error message should be generated.

Thanks.

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
summary: - [6.1 trunk] [hr_timesheet_invoice] : Error when trying to reinvoice
+ [hr_timesheet_invoice] : Error when trying to reinvoice
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Priyesh (OpenERP) (pso-openerp) wrote :

Hello,

Problem of recreating invoice if invoice already exists is fixed in
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-751269-pso.
Rev-Id: <email address hidden>
Rev-no: 4639

It will be merged soon with Addons branch.

Thanks for reporting.

Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
milestone: none → 6.1
qdp (OpenERP) (qdp)
Changed in openobject-addons:
status: Fix Committed → Fix Released
Revision history for this message
Bogdan Stanciu (bstanciu) wrote : Re: [Bug 751269] Re: [hr_timesheet_invoice] : Error when trying to reinvoice

On 20. 04. 11 18:01, qdp (OpenERP) wrote:
> ** Changed in: openobject-addons
> Status: Fix Committed => Fix Released
>
Thank you!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.