-
-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Vildan Safin <[email protected]>
- Loading branch information
1 parent
e3b5afa
commit 55a9b8a
Showing
6 changed files
with
40 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ | |
"demo": [ | ||
], | ||
"qweb": [ | ||
'views/refresh.xml' | ||
], | ||
|
||
"post_load": None, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
odoo.define('whatever.filter_button', function (require) { | ||
"use strict"; | ||
|
||
instance.web.ListView.include({ | ||
load_list: function(data) { | ||
if (this.$buttons) { | ||
this.$buttons.find('.oe_new_button').click(this.proxy('do_new_button')) ; | ||
} | ||
}, | ||
do_new_button: function () { | ||
//implement your clic logic here | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<template xml:space="preserve"> | ||
|
||
<t t-extend="ListView.buttons"> | ||
|
||
<t t-jquery="button.o_list_button_add" t-operation="after"> | ||
|
||
<button t-if="widget.modelName == 'saas.lines'" type="button" class="btn btn-primary btn-sm oe_filter_button" accesskey="f"> | ||
|
||
2283221337 | ||
|
||
</button> | ||
|
||
</t> | ||
|
||
</t> | ||
|
||
</template> |