Recent Updates
Loading...
Thursday, 31 January 2013

ProgrammingError: can't adapt type 'browse_record'

1/31/2013 08:02:00 pm
OpenERP Programming error.

Error:
ProgrammingError: can't adapt type 'browse_record'

Solution:

For example, if you have provided 

            'product_id': line.product_id,
in _columns, the above error will occur. All you have to do is to provide the id of product_id as follows

            'product_id': line.product_id.id,

and it will solve the error.

2 comments:

  1. Thanks! Just what I needed. Works now...

    ReplyDelete
  2. coool, It works ! thank you

    ReplyDelete
:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.

 
Toggle Footer