2
0

Fixed dynamic build of the name of the view to be called when errors are found

This commit is contained in:
Stéphane Valaeys 2020-01-17 16:05:25 +01:00 committed by Rodrigo
parent cd3bd6bbd2
commit 44c9368b2e
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
{ {
'name': 'Assets Management', 'name': 'Assets Management',
'version': '12.0.2.1.2', 'version': '12.0.2.1.3',
'license': 'AGPL-3', 'license': 'AGPL-3',
'depends': [ 'depends': [
'account', 'account',

View File

@ -26,7 +26,7 @@ class AccountAssetCompute(models.TransientModel):
module = __name__.split('addons.')[1].split('.')[0] module = __name__.split('addons.')[1].split('.')[0]
result_view = self.env.ref( result_view = self.env.ref(
'%s.%s_view_form_result' '%s.%s_view_form_result'
% (module, self._name)) % (module, self._table))
self.note = _("Compute Assets errors") + ':\n' + error_log self.note = _("Compute Assets errors") + ':\n' + error_log
return { return {
'name': _('Compute Assets result'), 'name': _('Compute Assets result'),