[FIX] web,account: add support to have possibility to click on a link of type action in help message and fix account dashboard help message
This commit is contained in:
committed by
Cédric Snauwaert
parent
7c8a46be2c
commit
2dd7c07fd8
@@ -305,7 +305,8 @@
|
||||
<field name="domain">[]</field>
|
||||
<field name="help" type="html">
|
||||
<p style="margin-left: -90px;">
|
||||
To track activities in your bank accounts and analyse your sales and purchase journals, install the chart of account matching your country or configure the custom chart of accounts.
|
||||
This Dashboard helps you manage your accounting.
|
||||
If you have not yet installed a chart of account, please <strong><a type="action" name="%(open_account_charts_modules)d">install</a></strong> one first.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -7,6 +7,13 @@ var pyeval = require('web.pyeval');
|
||||
var Widget = require('web.Widget');
|
||||
|
||||
var View = Widget.extend({
|
||||
events: {
|
||||
'click a[type=action]': function (ev) {
|
||||
ev.preventDefault();
|
||||
var action_data = $(ev.target).attr('name');
|
||||
this.do_action(action_data);
|
||||
}
|
||||
},
|
||||
// name displayed in view switchers
|
||||
display_name: '',
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user