Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some fixes #214

Open
wants to merge 2 commits into
base: version70
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions openerp_addon/pentaho_reports/wizard/report_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import base64
import json

from psycopg2.extensions import ISOLATION_LEVEL_READ_COMMITTED
from lxml import etree

from datetime import date, datetime
Expand All @@ -20,6 +21,10 @@
class report_prompt_class(orm.TransientModel):
_name = 'ir.actions.report.promptwizard'

def create(self, cr, user, vals, context=None):
cr._cnx.set_isolation_level(ISOLATION_LEVEL_READ_COMMITTED)
return super(report_prompt_class, self).create(cr, user, vals, context)

def _multi_select_values(self, cr, uid, ids, field_name, args, context=None):
mpwiz_obj = self.pool.get('ir.actions.report.multivalues.promptwizard')
res = {}
Expand Down Expand Up @@ -467,3 +472,7 @@ class report_prompt_m2m(orm.TransientModel):
'sel_num': fields.float('Selection Number'),
'name': fields.char('Selection Value'),
}

def create(self, cr, user, vals, context=None):
cr._cnx.set_isolation_level(ISOLATION_LEVEL_READ_COMMITTED)
return super(report_prompt_m2m, self).create(cr, user, vals, context)
1 change: 1 addition & 0 deletions openerp_addon/willow_pentaho_email_patch/email_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def generate_email(self, cr, uid, template_id, res_id, context=None):
self._unlink_user_and_partner(crtemp, SUPERUSER_ID, existing_uids, context=ctx)

new_uid = user_obj.copy(crtemp, SUPERUSER_ID, uid, default={'employee_ids': False,
'invoice_ids': False,
'message_ids': False,
'name': user.name}, context=ctx)
crtemp.commit()
Expand Down