ImportError: No module named psycopg2
Step 1: Install the dependencies sudo apt-get install build-dep python-psycopg2 Step 2: Run this command in your virtualenv pip install psycopg2-binary Ref: Fernando Munoz
Step 1: Install the dependencies sudo apt-get install build-dep python-psycopg2 Step 2: Run this command in your virtualenv pip install psycopg2-binary Ref: Fernando Munoz
user_rel_ids = fields.Many2many(comodel_name=”course”, relation=’user_course_rel’, column1=’user_id’, column2=’course_id’) Or user_rel_id = fields.Many2many(‘course’) For Filling Data (for add new relation) user_rel_id = [(4,course_id)] According to http://odoo4u.blogspot.com/2014/10/orm-methods.html, It says: A full list of options is in the documentation for the class. This same thing will apply for one2many For a many2many and one2many field, a list of tuples is … Read more
This error raised up because you trying to update dict object by using a wrong sequence (list or tuple) structure. cash_id.create(cr, uid, lines,context=None) trying to convert lines into dict object: (0, 0, { ‘name’: l.name, ‘date’: l.date, ‘amount’: l.amount, ‘type’: l.type, ‘statement_id’: exp.statement_id.id, ‘account_id’: l.account_id.id, ‘account_analytic_id’: l.analytic_account_id.id, ‘ref’: l.ref, ‘note’: l.note, ‘company_id’: l.company_id.id }) Remove … Read more
I encountered the same problem in college having installed Linux Mint for the main project of my final year, the third solution below worked for me. When encountering this error please note before the error it may say you are missing a package or header file — you should find those and install them and … Read more