[PS] web client : bank statement : import invoice doesn't work

Bug #715688 reported by Francois Pietquin (OpenERP) on 2011-02-09
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Web Client
Low
OpenERP R&D Web Team

Bug Description

6.0.1
web client

On a bank statement, I use the button "import invoice" which open a pop-up.
On this pop-up "import entries", I clic add to select my invoices.
I select one of them and close the pop-up.
So in my pop-up "import entries", I see the invoice.
I close this pop-up to come back to my bank statement form view and there, NO LINE !

François Pietquin
Professional services

Related branches

Amit Parik (amit-parik) wrote :

Hello,

I also got this type of traceback:

Traceback (most recent call last):
  File "/home/tiny/workspace/openobject-server/openerp/netsvc.py", line 410, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/tiny/workspace/openobject-server/openerp/service/web_services.py", line 598, in dispatch
    res = fn(db, uid, *params)
  File "/home/tiny/workspace/openobject-server/openerp/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/tiny/workspace/openobject-server/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/tiny/workspace/openobject-server/openerp/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/tiny/workspace/openobject-addons/account_voucher/wizard/account_statement_from_invoice.py", line 73, in populate_statement
    elif (line.invoice and line.invoice.currency_id.id <> statement.currency.id):
  File "/home/tiny/workspace/openobject-server/openerp/osv/orm.py", line 285, in __getattr__
    return self[name]
  File "/home/tiny/workspace/openobject-server/openerp/osv/orm.py", line 205, in __getitem__
    field_values = self._table.read(self._cr, self._uid, ids, field_names, context=self._context, load="_classic_write")
  File "/home/tiny/workspace/openobject-server/openerp/osv/orm.py", line 2933, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/home/tiny/workspace/openobject-server/openerp/osv/orm.py", line 3053, in _read_flat
    res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
  File "/home/tiny/workspace/openobject-server/openerp/osv/fields.py", line 795, in get
    res = self._fnct(obj, cr, user, ids, name, self._arg, context)
  File "/home/tiny/workspace/openobject-addons/account/account_bank_statement.py", line 113, in _currency
    currency = statement.journal_id.currency
  File "/home/tiny/workspace/openobject-server/openerp/osv/orm.py", line 287, in __getattr__
    raise AttributeError(e)
AttributeError: 'Field journal_id not found in browse_record(account.bank.statement, 157)'

affects: openobject-addons → openobject-client-web
Changed in openobject-client-web:
assignee: nobody → OpenERP SA's Web Client R&D (openerp-dev-web)
importance: Undecided → Low
status: New → Confirmed

I think this bug is quite important.
Could re-evaluate its importance to medium or high?

Changed in openobject-client-web:
status: Confirmed → In Progress
Sananaz (Open ERP) (sma-tiny) wrote :

Hello francois,

The fix for web-client has been committed to lp:~openerp-dev/openobject-client-web/trunk-bug-715688-sma
 with revision number 4584.

Soon it will be merged into trunk web-client.

Thanks for reporting.

Changed in openobject-client-web:
status: In Progress → Fix Committed
Changed in openobject-client-web:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers