I was create a client action and template for it.
But i can't add buttons into footer in template, all of template only add into body.
How can i add some buttons into footer ?
views/view.xml
<odoo>
<data>
<record model="ir.actions.client" id="my_id">
<field name="name">My Action</field>
<field name="tag">my_module.action</field>
</record>
</data>
</odoo>
static/src/js/action.js
openerp.my_module = function(instance, local) {
var _t = instance.web._t, _lt = instance.web._lt;
var QWeb = instance.web.qweb;
local.Action = instance.Widget.extend({
templates: 'action_template',
//.....
});
instance.web.client_actions.add('my_module.action', 'instance.my_module.Action');
}
static/src/xml/qweb_action.xml
<?xml version="1.0" encoding="UTF-8"?>
<templates>
<div t-name="action_template">
//........
</div>
</templates>