mirror of https://github.com/OCA/web.git
Merge pull request #78 from StefanRijnhart/8.0_port_web_ir_actions_act_window_page_therp
[PRT] Port 8.0 of web_ir_actions_act_window_pagepull/81/head
commit
7ae43205f4
|
@ -0,0 +1,13 @@
|
||||||
|
Client side paging
|
||||||
|
==================
|
||||||
|
|
||||||
|
This addon allows a developer to return the following action types::
|
||||||
|
|
||||||
|
{'type': 'ir.actions.act_window.page.next'}
|
||||||
|
|
||||||
|
or::
|
||||||
|
|
||||||
|
{'type': 'ir.actions.act_window.page.prev'}
|
||||||
|
|
||||||
|
which trigger the form's controller to page into the requested direction on the
|
||||||
|
client side.
|
|
@ -2,7 +2,7 @@
|
||||||
##############################################################################
|
##############################################################################
|
||||||
#
|
#
|
||||||
# OpenERP, Open Source Management Solution
|
# OpenERP, Open Source Management Solution
|
||||||
# This module copyright (C) 2013 Therp BV (<http://therp.nl>).
|
# This module copyright (C) 2013-2015 Therp BV (<http://therp.nl>).
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
@ -19,39 +19,13 @@
|
||||||
#
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
{
|
{
|
||||||
"name" : "Window actions for client side paging",
|
"name": "Window actions for client side paging",
|
||||||
"version" : "1.0",
|
"summary": ("Allows a developer to trigger a pager to show the previous "
|
||||||
"author" : "Therp BV",
|
"or next next record in the form view"),
|
||||||
"complexity": "normal",
|
"version": "1.0",
|
||||||
"description": """
|
"author": "Therp BV",
|
||||||
Client side paging
|
"category": "Dependency",
|
||||||
=====================
|
"depends": ['web'],
|
||||||
|
'data': ['view/qweb.xml'],
|
||||||
This addon enables buttons to return::
|
'installable': True,
|
||||||
|
|
||||||
{'type': 'ir.actions.act_window.page.next'}
|
|
||||||
|
|
||||||
or::
|
|
||||||
|
|
||||||
{'type': 'ir.actions.act_window.page.prev'}
|
|
||||||
|
|
||||||
which trigger the form's controller to page into the requested direction.
|
|
||||||
""",
|
|
||||||
"category" : "Dependency",
|
|
||||||
"depends" : [
|
|
||||||
],
|
|
||||||
"data" : [
|
|
||||||
],
|
|
||||||
"js": [
|
|
||||||
'static/src/js/web_ir_actions_act_window_page.js',
|
|
||||||
],
|
|
||||||
"css": [
|
|
||||||
],
|
|
||||||
"qweb": [
|
|
||||||
],
|
|
||||||
"auto_install": False,
|
|
||||||
'installable': False,
|
|
||||||
"external_dependencies" : {
|
|
||||||
'python' : [],
|
|
||||||
},
|
|
||||||
}
|
}
|
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 7.8 KiB |
|
@ -2,7 +2,7 @@
|
||||||
//############################################################################
|
//############################################################################
|
||||||
//
|
//
|
||||||
// OpenERP, Open Source Management Solution
|
// OpenERP, Open Source Management Solution
|
||||||
// This module copyright (C) 2013 Therp BV (<http://therp.nl>).
|
// This module copyright (C) 2013-2015 Therp BV (<http://therp.nl>).
|
||||||
//
|
//
|
||||||
// This program is free software: you can redistribute it and/or modify
|
// This program is free software: you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU Affero General Public License as
|
// it under the terms of the GNU Affero General Public License as
|
||||||
|
@ -19,9 +19,9 @@
|
||||||
//
|
//
|
||||||
//############################################################################
|
//############################################################################
|
||||||
|
|
||||||
openerp.web_ir_actions_act_window_page = function(openerp)
|
openerp.web_ir_actions_act_window_page = function(instance)
|
||||||
{
|
{
|
||||||
openerp.web.ActionManager.include({
|
instance.web.ActionManager.include({
|
||||||
ir_actions_act_window_page_prev: function(action, options)
|
ir_actions_act_window_page_prev: function(action, options)
|
||||||
{
|
{
|
||||||
if(this.inner_widget && this.inner_widget.active_view == 'form' &&
|
if(this.inner_widget && this.inner_widget.active_view == 'form' &&
|
|
@ -0,0 +1,13 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<openerp>
|
||||||
|
<data>
|
||||||
|
<template id="assets_backend"
|
||||||
|
name="web_ir_actions_act_window_page assets"
|
||||||
|
inherit_id="web.assets_backend">
|
||||||
|
<xpath expr="." position="inside">
|
||||||
|
<script type="text/javascript"
|
||||||
|
src="/web_ir_actions_act_window_page/static/src/js/web_ir_actions_act_window_page.js"></script>
|
||||||
|
</xpath>
|
||||||
|
</template>
|
||||||
|
</data>
|
||||||
|
</openerp>
|
Loading…
Reference in New Issue