In Product Return, link Invoice with a line without product_id raises an error

Bug #1311520 reported by Romain Deheele - Camptocamp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP RMA
New
Undecided
Unassigned

Bug Description

Hello,

In Product Return, link Invoice with a line without product_id raises an error:

  File "/home/rdeheele/oerp/sandbox/parts/openerp-rma/crm_claim_rma/crm_claim_rma.py", line 461, in onchange_invoice_id
    warehouse_id, context=context)
  File "/home/rdeheele/oerp/sandbox/parts/openerp-rma/crm_claim_rma/crm_claim_rma.py", line 268, in get_destination_location
    seller = prod.seller_info_id
  File "/home/rdeheele/oerp/sandbox/parts/server/openerp/osv/orm.py", line 502, in __getattr__
    return self[name]
  File "/home/rdeheele/oerp/sandbox/parts/server/openerp/osv/orm.py", line 405, in __getitem__
    field_values = self._table.read(self._cr, self._uid, ids, field_names, context=self._context, load="_classic_write")
  File "/home/rdeheele/oerp/sandbox/parts/server/openerp/osv/orm.py", line 3680, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/home/rdeheele/oerp/sandbox/parts/server/openerp/osv/orm.py", line 3732, in _read_flat
    cr.execute(query, [tuple(sub_ids)] + rule_params)
  File "/home/rdeheele/oerp/sandbox/parts/server/openerp/sql_db.py", line 161, in wrapper
    return f(self, *args, **kwargs)
  File "/home/rdeheele/oerp/sandbox/parts/server/openerp/sql_db.py", line 226, in execute
    res = self._obj.execute(query, params)
ProgrammingError: operator does not exist: integer = boolean
LINE 1: ...d FROM "product_product" WHERE product_product.id IN (false)...
                                                             ^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.

Regards,

Romain

Related branches

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.