Fixed dynamic build of the name of the view to be called when errors are found
This commit is contained in:
parent
cd3bd6bbd2
commit
44c9368b2e
@ -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',
|
||||||
|
@ -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'),
|
||||||
|
Loading…
Reference in New Issue
Block a user