purchase_landed_costs: can't adapt type 'browse_record'

Bug #1287159 reported by Guewen Baconnier @ Camptocamp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Purchase - Workflow and Organization
Fix Released
Undecided
Guewen Baconnier @ Camptocamp

Bug Description

When confirming a purchase order with a fiscal position:

<snip>
  File "/srv/openerp/instances/openerp_test/parts/purchase-wkfl/purchase_landed_costs/purchase.py", line 624, in wkf_approve_order
    cr, uid, line_cost, context=context)
  File "/srv/openerp/instances/openerp_test/parts/purchase-wkfl/purchase_landed_costs/purchase.py", line 589, in _generate_invoice_from_landed_cost
    inv_id = invoice_obj.create(cr, uid, vals_inv, context=context)
  File "/srv/openerp/instances/openerp_test/parts/l10n_ch/l10n_ch_base_bank/invoice.py", line 122, in create
    return super(AccountInvoice, self).create(cursor, uid, vals, context=context)
  File "/srv/openerp/instances/openerp_test/parts/bank-statement-reconcile/account_invoice_reference/account_move.py", line 84, in create
    context=context)
  File "/srv/openerp/instances/openerp_test/parts/addons/mail/mail_thread.py", line 250, in create
    thread_id = super(mail_thread, self).create(cr, uid, values, context=context_operation)
  File "/srv/openerp/instances/openerp_test/parts/openerp-connector/connector/producer.py", line 42, in create
    record_id = create_original(self, cr, uid, vals, context=context)
  File "/srv/openerp/instances/openerp_test/parts/server/openerp/osv/orm.py", line 4490, in create
    cr.execute('insert into "'+self._table+'" (id'+upd0+") values ("+str(id_new)+upd1+')', tuple(upd2))
  File "/srv/openerp/instances/openerp_test/parts/server/openerp/sql_db.py", line 161, in wrapper
    return f(self, *args, **kwargs)
  File "/srv/openerp/instances/openerp_test/parts/server/openerp/sql_db.py", line 226, in execute
    res = self._obj.execute(query, params)
ProgrammingError: can't adapt type 'browse_record'

Related branches

Changed in purchase-wkfl:
status: New → Confirmed
assignee: nobody → Guewen Baconnier @ Camptocamp (gbaconnier-c2c)
Changed in purchase-wkfl:
status: Confirmed → Fix Released
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.