tree视图增加全局按钮
-
odoo自带的模块
base_import可以满足你的要求,你这里显示的“导入”按钮,就是通过这个模块来添加进来的<t t-name="ImportView.import_button"> <button t-if='widget.options.import_enabled' type="button" class="btn btn-sm btn-default o_button_import"> Import </button> </t> <t t-extend="ListView.buttons"> <t t-jquery="button.o_list_button_add" t-operation="after"> <t t-call="ImportView.import_button"/> </t> </t> <t t-extend="KanbanView.buttons"> <t t-jquery="button.o-kanban-button-new" t-operation="after"> <t t-call="ImportView.import_button"/> </t> </t>
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login