콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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>



아바타
취소
관련 게시물 답글 화면 활동
2
12월 24
1616
0
5월 23
3673
0
6월 20
2839
0
11월 24
1482
1
2월 24
13129