[MERGE] forward port branch saas-11 up to 6825ddf9ad

This commit is contained in:
Christophe Simonis
2017-01-18 14:42:04 +01:00
2 changed files with 3 additions and 2 deletions
@@ -41,7 +41,7 @@ class ProjectIssueReport(models.Model):
c.working_hours_open,
c.working_hours_close,
c.stage_id,
date(c.date_closed) as date_closed,
c.date_closed as date_closed,
c.company_id as company_id,
c.priority as priority,
c.project_id as project_id,
+2 -1
View File
@@ -292,7 +292,8 @@ class BaseModel(object):
model = self.env['ir.model'].browse(cr.fetchone()[0])
self._context['todo'].append((10, model.modified, [list(params)]))
if 'module' in self._context:
if self._module == self._context.get('module'):
# self._module is the name of the module that last extended self
xmlid = 'model_' + self._name.replace('.', '_')
cr.execute("SELECT * FROM ir_model_data WHERE name=%s AND module=%s",
(xmlid, self._context['module']))