[Trunk] import invoices do not work

Bug #839425 reported by Frederic Clementi - Camptocamp
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

Hi guys,

Following new modifications on account voucher in Trunk, it is now impossible to import an invoice

To reproduce :
- create a invoice
- Open a new bank statement
- clique on Import invoice
- select the invoice

and you get this :

Environment Information :
System : Linux-2.6.32-33-generic-pae-i686-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 10.04.3 LTS
Release: 10.04
Codename: lucid
Operating System Release : 2.6.32-33-generic-pae
Operating System Version : #72-Ubuntu SMP Fri Jul 29 22:06:29 UTC 2011
Operating System Architecture : 32bit
Operating System Locale : fr_CH.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 6.1-dev
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/home/fclementi/openerp-instances/610/server/openerp/netsvc.py", line 440, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/fclementi/openerp-instances/610/server/openerp/service/web_services.py", line 583, in dispatch
    res = fn(db, uid, *params)
  File "/home/fclementi/openerp-instances/610/server/openerp/osv/osv.py", line 118, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/fclementi/openerp-instances/610/server/openerp/osv/osv.py", line 172, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/fclementi/openerp-instances/610/server/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/fclementi/openerp-instances/610/addons/account_voucher/wizard/account_statement_from_invoice.py", line 68, in populate_statement
    'amount': amount,
NameError: global name 'amount' is not defined

Thanks

Frederic Clementi
Camptocamp

Revision history for this message
Vincent Renaville@camptocamp (vrenaville-c2c) wrote :

Hello,

I have just create a patch for this issue.

Thanks for your precious help,

Vincent

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

Hello Frederic,

I have tested your scenario at my end But all are working fine.

I am not able to get any problem or traceback.

So would you please provide more information on this or provide the video for the same.

Also would you please provide your end revision number.

I have attached a video for your more reference so would you please check it and notify us where you faced the problem.

Thanks and waiting for your reply!

Revision history for this message
Amit Parik (amit-parik) wrote :
Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Frederic,

Would you please consider my comment #2 and reply on this.

Thanks and waiting for your reply!

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

Hello Frederic,

I have again tested your scenario at my end.

But all are working fine and I didn't face any type of the traceback.

So currently I am closing this issue if you still face the problem then you can reopen this with more precious steps.

Thanks.

Changed in openobject-addons:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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