|
@@ -104,18 +104,19 @@ class AuditLog(models.Model):
|
|
|
|
|
|
@api.one
|
|
|
def _render_html(self):
|
|
|
- thead = ''
|
|
|
- for head in (_('Nombre'), _('Valor Anterior'), _('Nuevo Valor')):
|
|
|
- thead += '<th>%s</th>' % head
|
|
|
- thead = '<thead><tr class="oe_list_header_columns">%s</tr></thead>' % thead
|
|
|
- tbody = ''
|
|
|
- for line in self._get_content():
|
|
|
- row = ''
|
|
|
- for item in line:
|
|
|
- row += '<td>%s</td>' % item
|
|
|
- tbody += '<tr>%s</tr>' % row
|
|
|
- tbody = '<tbody>%s</tbody>' % tbody
|
|
|
- self.data_html = '<table class="oe_list_content">%s%s</table>' % (thead, tbody)
|
|
|
+ if self.method == 'write':
|
|
|
+ thead = ''
|
|
|
+ for head in (_('Nombre'), _('Valor Anterior'), _('Nuevo Valor')):
|
|
|
+ thead += '<th>%s</th>' % head
|
|
|
+ thead = '<thead><tr class="oe_list_header_columns">%s</tr></thead>' % thead
|
|
|
+ tbody = ''
|
|
|
+ for line in self._get_content():
|
|
|
+ row = ''
|
|
|
+ for item in line:
|
|
|
+ row += '<td>%s</td>' % item
|
|
|
+ tbody += '<tr>%s</tr>' % row
|
|
|
+ tbody = '<tbody>%s</tbody>' % tbody
|
|
|
+ self.data_html = '<table class="oe_list_content">%s%s</table>' % (thead, tbody)
|
|
|
|
|
|
@api.multi
|
|
|
def unlink(self):
|