Breaking News
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:

 
Toggle Footer