Skip to content

Commit e429f49

Browse files
author
Stefan Rijnhart
committed
[PRT] Port 8.0 of web_ir_actions_act_window_page
1 parent 0809cf6 commit e429f49

File tree

6 files changed

+39
-39
lines changed

6 files changed

+39
-39
lines changed
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Client side paging
2+
=====================
3+
4+
This addon enables buttons to return::
5+
6+
{'type': 'ir.actions.act_window.page.next'}
7+
8+
or::
9+
10+
{'type': 'ir.actions.act_window.page.prev'}
11+
12+
which trigger the form's controller to page into the requested direction.

__unported__/web_ir_actions_act_window_page/__openerp__.py web_ir_actions_act_window_page/__openerp__.py

+11-36
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
##############################################################################
33
#
44
# OpenERP, Open Source Management Solution
5-
# This module copyright (C) 2013 Therp BV (<http://therp.nl>).
5+
# This module copyright (C) 2013-2015 Therp BV (<http://therp.nl>).
66
#
77
# This program is free software: you can redistribute it and/or modify
88
# it under the terms of the GNU Affero General Public License as
@@ -19,39 +19,14 @@
1919
#
2020
##############################################################################
2121
{
22-
"name" : "Window actions for client side paging",
23-
"version" : "1.0",
24-
"author" : "Therp BV",
25-
"complexity": "normal",
26-
"description": """
27-
Client side paging
28-
=====================
29-
30-
This addon enables buttons to return::
31-
32-
{'type': 'ir.actions.act_window.page.next'}
33-
34-
or::
35-
36-
{'type': 'ir.actions.act_window.page.prev'}
37-
38-
which trigger the form's controller to page into the requested direction.
39-
""",
40-
"category" : "Dependency",
41-
"depends" : [
42-
],
43-
"data" : [
44-
],
45-
"js": [
46-
'static/src/js/web_ir_actions_act_window_page.js',
47-
],
48-
"css": [
49-
],
50-
"qweb": [
51-
],
52-
"auto_install": False,
53-
'installable': False,
54-
"external_dependencies" : {
55-
'python' : [],
56-
},
22+
"name": "Window actions for client side paging",
23+
"summary": ("Allows a developer to trigger a pager to show the previous "
24+
"or next next record in the form view by returning the "
25+
"appropriate window action"),
26+
"version": "1.0",
27+
"author": "Therp BV",
28+
"category": "Dependency",
29+
"depends": ['web'],
30+
'data': ['view/qweb.xml'],
31+
'installable': True,
5732
}

__unported__/web_ir_actions_act_window_page/static/src/js/web_ir_actions_act_window_page.js web_ir_actions_act_window_page/static/src/js/web_ir_actions_act_window_page.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//############################################################################
33
//
44
// OpenERP, Open Source Management Solution
5-
// This module copyright (C) 2013 Therp BV (<http://therp.nl>).
5+
// This module copyright (C) 2013-2015 Therp BV (<http://therp.nl>).
66
//
77
// This program is free software: you can redistribute it and/or modify
88
// it under the terms of the GNU Affero General Public License as
@@ -19,9 +19,9 @@
1919
//
2020
//############################################################################
2121

22-
openerp.web_ir_actions_act_window_page = function(openerp)
22+
openerp.web_ir_actions_act_window_page = function(instance)
2323
{
24-
openerp.web.ActionManager.include({
24+
instance.web.ActionManager.include({
2525
ir_actions_act_window_page_prev: function(action, options)
2626
{
2727
if(this.inner_widget && this.inner_widget.active_view == 'form' &&
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<openerp>
3+
<data>
4+
<template id="assets_backend"
5+
name="web_ir_actions_act_window_page assets"
6+
inherit_id="web.assets_backend">
7+
<xpath expr="." position="inside">
8+
<script type="text/javascript"
9+
src="/web_ir_actions_act_window_page/static/src/js/web_ir_actions_act_window_page.js"></script>
10+
</xpath>
11+
</template>
12+
</data>
13+
</openerp>

0 commit comments

Comments
 (0)