-
24muk_web_client/README.md
-
4muk_web_client/__init__.py
-
16muk_web_client/__manifest__.py
-
5muk_web_client/doc/changelog.rst
-
48muk_web_client/doc/index.rst
-
43muk_web_client/i18n/de.po
-
40muk_web_client/i18n/muk_web_client.pot
-
20muk_web_client/models/__init__.py
-
29muk_web_client/models/res_config_settings.py
-
46muk_web_client/static/description/index.html
-
10muk_web_client/static/src/js/client_channels.js
-
49muk_web_client/views/res_config_settings_view.xml
-
17muk_web_client_refresh/README.md
-
3muk_web_client_refresh/__init__.py
-
20muk_web_client_refresh/__manifest__.py
-
20muk_web_client_refresh/controllers/__init__.py
-
34muk_web_client_refresh/controllers/main.py
-
6muk_web_client_refresh/doc/changelog.rst
-
53muk_web_client_refresh/doc/index.rst
-
126muk_web_client_refresh/i18n/de.po
-
105muk_web_client_refresh/i18n/muk_web_client_refresh.pot
-
4muk_web_client_refresh/models/__init__.py
-
42muk_web_client_refresh/models/res_config_settings.py
-
BINmuk_web_client_refresh/static/description/demo.gif
-
105muk_web_client_refresh/static/description/index.html
-
BINmuk_web_client_refresh/static/description/screenshot_chatter.png
-
BINmuk_web_client_refresh/static/description/screenshot_view.png
-
47muk_web_client_refresh/static/src/js/client_refresh.js
-
82muk_web_client_refresh/views/refresh_action_view.xml
-
41muk_web_client_refresh/views/res_config_settings_view.xml
-
3muk_web_utils/README.md
-
2muk_web_utils/__init__.py
-
10muk_web_utils/__manifest__.py
-
5muk_web_utils/doc/changelog.rst
-
46muk_web_utils/doc/index.rst
-
39muk_web_utils/static/description/index.html
-
2muk_web_utils/static/src/js/common.js
-
34muk_web_utils/static/src/js/mimetype.js
-
3muk_web_utils/tests/__init__.py
-
12muk_web_utils/tests/test_utils.py
@ -1,24 +0,0 @@ |
|||||
# MuK Web Client |
|
||||
|
|
||||
Extends the Odoo web client to include |
|
||||
bus channels. Channels can be created to listen to Odoo bus |
|
||||
notifications. To add a channel listener to the client just |
|
||||
extend the web client and declare a new bus channel. |
|
||||
|
|
||||
### Example |
|
||||
|
|
||||
```javascript |
|
||||
var WebClient = require('web.WebClient'); |
|
||||
var session = require('web.session'); |
|
||||
|
|
||||
WebClient.include({ |
|
||||
show_application: function() { |
|
||||
var channel = session.db + '_mychannel'; |
|
||||
this.bus_declare_channel(channel, this.doSomething); |
|
||||
return this._super(); |
|
||||
}, |
|
||||
doSomething: function(message) { |
|
||||
... |
|
||||
} |
|
||||
}); |
|
||||
``` |
|
@ -1,3 +1,8 @@ |
|||||
|
`2.0.0` |
||||
|
------- |
||||
|
|
||||
|
- Migrated to Python 3 |
||||
|
|
||||
`1.0.0` |
`1.0.0` |
||||
------- |
------- |
||||
|
|
||||
|
@ -0,0 +1,48 @@ |
|||||
|
============== |
||||
|
MuK Web Client |
||||
|
============== |
||||
|
|
||||
|
Extends the Odoo web client to include bus channels. Channels can be created to |
||||
|
listen to Odoo bus notifications. To add a channel listener to the client just |
||||
|
extend the web client and declare a new bus channel. |
||||
|
|
||||
|
Installation |
||||
|
============ |
||||
|
|
||||
|
To install this module, you need to: |
||||
|
|
||||
|
Download the module and add it to your Odoo addons folder. Afterward, log on to |
||||
|
your Odoo server and go to the Apps menu. Trigger the debug modus and update the |
||||
|
list by clicking on the "Update Apps List" link. Now install the module by |
||||
|
clicking on the install button. |
||||
|
|
||||
|
Configuration |
||||
|
============= |
||||
|
|
||||
|
No additional configuration is needed to use this module. |
||||
|
|
||||
|
Usage |
||||
|
============= |
||||
|
|
||||
|
This module has no direct visible effect on the system. It adds bus channels |
||||
|
to the existing web client. |
||||
|
|
||||
|
Credits |
||||
|
======= |
||||
|
|
||||
|
Contributors |
||||
|
------------ |
||||
|
|
||||
|
* Mathias Markl <mathias.markl@mukit.at> |
||||
|
|
||||
|
Author & Maintainer |
||||
|
------------------- |
||||
|
|
||||
|
This module is maintained by the `MuK IT GmbH <https://www.mukit.at/>`_. |
||||
|
|
||||
|
MuK IT is an Austrian company specialized in customizing and extending Odoo. |
||||
|
We develop custom solutions for your individual needs to help you focus on |
||||
|
your strength and expertise to grow your business. |
||||
|
|
||||
|
If you want to get in touch please contact us via mail |
||||
|
(sale@mukit.at) or visit our website (https://mukit.at). |
@ -1,16 +1,53 @@ |
|||||
# Translation of Odoo Server. |
# Translation of Odoo Server. |
||||
# This file contains the translation of the following modules: |
# This file contains the translation of the following modules: |
||||
|
# * muk_web_client |
||||
# |
# |
||||
msgid "" |
msgid "" |
||||
msgstr "" |
msgstr "" |
||||
"Project-Id-Version: Odoo Server 11.0\n" |
"Project-Id-Version: Odoo Server 11.0\n" |
||||
"Report-Msgid-Bugs-To: \n" |
"Report-Msgid-Bugs-To: \n" |
||||
"POT-Creation-Date: 2018-01-19 12:40+0000\n" |
|
||||
"PO-Revision-Date: 2018-01-19 12:40+0000\n" |
|
||||
|
"POT-Creation-Date: 2018-05-04 22:53+0000\n" |
||||
|
"PO-Revision-Date: 2018-05-05 00:55+0200\n" |
||||
"Last-Translator: <>\n" |
"Last-Translator: <>\n" |
||||
"Language-Team: \n" |
"Language-Team: \n" |
||||
"MIME-Version: 1.0\n" |
"MIME-Version: 1.0\n" |
||||
"Content-Type: text/plain; charset=UTF-8\n" |
"Content-Type: text/plain; charset=UTF-8\n" |
||||
"Content-Transfer-Encoding: \n" |
|
||||
|
"Content-Transfer-Encoding: 8bit\n" |
||||
"Plural-Forms: \n" |
"Plural-Forms: \n" |
||||
|
"Language: de\n" |
||||
|
"X-Generator: Poedit 2.0.6\n" |
||||
|
|
||||
|
#. module: muk_web_client |
||||
|
#: model:ir.ui.view,arch_db:muk_web_client.res_config_settings_view_form |
||||
|
msgid "<strong>Save</strong> this page and come back here to set up the feature." |
||||
|
msgstr "<strong>Speichern</strong> diese Seite und kommen Sie hierher zurück, um das Feature einzurichten." |
||||
|
|
||||
|
#. module: muk_web_client |
||||
|
#: model:ir.ui.view,arch_db:muk_web_client.res_config_settings_view_form |
||||
|
msgid "Automated Refresh" |
||||
|
msgstr "Automatisches Neuladen" |
||||
|
|
||||
|
#. module: muk_web_client |
||||
|
#: model:ir.ui.view,arch_db:muk_web_client.res_config_settings_view_form |
||||
|
msgid "Define action rules to automatically refresh views" |
||||
|
msgstr "Definieren von Aktionsregeln zur automatischen Aktualisierung von Ansichten" |
||||
|
|
||||
|
#. module: muk_web_client |
||||
|
#: model:ir.model.fields,help:muk_web_client.field_res_config_settings_module_muk_web_client_refresh |
||||
|
msgid "Define action rules to automatically refresh views." |
||||
|
msgstr "Definieren von Aktionsregeln zur automatischen Aktualisierung von Ansichten." |
||||
|
|
||||
|
#. module: muk_web_client |
||||
|
#: model:ir.ui.view,arch_db:muk_web_client.res_config_settings_view_form |
||||
|
msgid "Web Client" |
||||
|
msgstr "Web Client" |
||||
|
|
||||
|
#. module: muk_web_client |
||||
|
#: model:ir.model.fields,field_description:muk_web_client.field_res_config_settings_module_muk_web_client_refresh |
||||
|
msgid "Web Refresh" |
||||
|
msgstr "Web Refresh" |
||||
|
|
||||
|
#. module: muk_web_client |
||||
|
#: model:ir.model,name:muk_web_client.model_res_config_settings |
||||
|
msgid "res.config.settings" |
||||
|
msgstr "res.config.settings" |
@ -0,0 +1,20 @@ |
|||||
|
################################################################################### |
||||
|
# |
||||
|
# Copyright (C) 2017 MuK IT GmbH |
||||
|
# |
||||
|
# This program is free software: you can redistribute it and/or modify |
||||
|
# it under the terms of the GNU Affero General Public License as |
||||
|
# published by the Free Software Foundation, either version 3 of the |
||||
|
# License, or (at your option) any later version. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU Affero General Public License for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU Affero General Public License |
||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################### |
||||
|
|
||||
|
from . import res_config_settings |
@ -0,0 +1,29 @@ |
|||||
|
################################################################################### |
||||
|
# |
||||
|
# Copyright (C) 2017 MuK IT GmbH |
||||
|
# |
||||
|
# This program is free software: you can redistribute it and/or modify |
||||
|
# it under the terms of the GNU Affero General Public License as |
||||
|
# published by the Free Software Foundation, either version 3 of the |
||||
|
# License, or (at your option) any later version. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU Affero General Public License for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU Affero General Public License |
||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################### |
||||
|
|
||||
|
from odoo import fields, models |
||||
|
|
||||
|
class ResConfigSettings(models.TransientModel): |
||||
|
|
||||
|
_inherit = 'res.config.settings' |
||||
|
|
||||
|
module_muk_web_client_refresh = fields.Boolean( |
||||
|
string="Web Refresh", |
||||
|
help="Define action rules to automatically refresh views.") |
||||
|
|
@ -0,0 +1,49 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
|
||||
|
<!-- |
||||
|
Copyright (C) 2017 MuK IT GmbH |
||||
|
|
||||
|
This program is free software: you can redistribute it and/or modify |
||||
|
it under the terms of the GNU Affero General Public License as |
||||
|
published by the Free Software Foundation, either version 3 of the |
||||
|
License, or (at your option) any later version. |
||||
|
|
||||
|
This program is distributed in the hope that it will be useful, |
||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
GNU Affero General Public License for more details. |
||||
|
|
||||
|
You should have received a copy of the GNU Affero General Public License |
||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
--> |
||||
|
|
||||
|
<odoo> |
||||
|
|
||||
|
<record id="res_config_settings_view_form" model="ir.ui.view"> |
||||
|
<field name="name">res.config.settings.view.form</field> |
||||
|
<field name="model">res.config.settings</field> |
||||
|
<field name="inherit_id" ref="base_setup.res_config_settings_view_form"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<div name="multi_company" position="after"> |
||||
|
<h2>Web Client</h2> |
||||
|
<div class="row mt16 o_settings_container" name="web_client"> |
||||
|
<div class="col-xs-12 col-md-6 o_setting_box"> |
||||
|
<div class="o_setting_left_pane"> |
||||
|
<field name="module_muk_web_client_refresh" /> |
||||
|
</div> |
||||
|
<div class="o_setting_right_pane"> |
||||
|
<label string="Automated Refresh" for="module_muk_web_client_refresh"/> |
||||
|
<div class="text-muted"> |
||||
|
Define action rules to automatically refresh views |
||||
|
</div> |
||||
|
<div class="content-group" attrs="{'invisible': [('module_muk_web_client_refresh','=',False)]}" id="msg_module_muk_web_client_refresh"> |
||||
|
<div class="text-warning mt16"><strong>Save</strong> this page and come back here to set up the feature.</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
</odoo> |
@ -1,17 +0,0 @@ |
|||||
# MuK Web Client Refresh |
|
||||
|
|
||||
Adds a "refresh" channel to the web client, |
|
||||
which can be used to trigger a view refresh without refreshing the |
|
||||
browser itself. Furthermore, it allows the user the creation of |
|
||||
"refresh" rules. These rules can be applied to any Odoo model and |
|
||||
trigger a refresh either on create, write or unlink. |
|
||||
|
|
||||
## Python Support |
|
||||
|
|
||||
Besides creating a "refresh" rule, a view refresh can be triggered |
|
||||
manually via python. This can be useful if there is a need for a |
|
||||
view refresh on other operations like an action. |
|
||||
|
|
||||
```python |
|
||||
self.env['bus.bus'].sendone('refresh', [self.env.cr.dbname, self._name, self._uid]) |
|
||||
``` |
|
@ -0,0 +1,20 @@ |
|||||
|
################################################################################### |
||||
|
# |
||||
|
# Copyright (C) 2017 MuK IT GmbH |
||||
|
# |
||||
|
# This program is free software: you can redistribute it and/or modify |
||||
|
# it under the terms of the GNU Affero General Public License as |
||||
|
# published by the Free Software Foundation, either version 3 of the |
||||
|
# License, or (at your option) any later version. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU Affero General Public License for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU Affero General Public License |
||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################### |
||||
|
|
||||
|
from . import main |
@ -0,0 +1,34 @@ |
|||||
|
################################################################################### |
||||
|
# |
||||
|
# Copyright (C) 2017 MuK IT GmbH |
||||
|
# |
||||
|
# This program is free software: you can redistribute it and/or modify |
||||
|
# it under the terms of the GNU Affero General Public License as |
||||
|
# published by the Free Software Foundation, either version 3 of the |
||||
|
# License, or (at your option) any later version. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU Affero General Public License for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU Affero General Public License |
||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################### |
||||
|
|
||||
|
import logging |
||||
|
|
||||
|
from odoo import http |
||||
|
from odoo.http import request |
||||
|
|
||||
|
_logger = logging.getLogger(__name__) |
||||
|
|
||||
|
class RefreshController(http.Controller): |
||||
|
|
||||
|
@http.route('/config/muk_web_client_refresh.refresh_delay', type='json', auth="user") |
||||
|
def refresh_delay(self, **kw): |
||||
|
params = request.env['ir.config_parameter'].sudo() |
||||
|
return { |
||||
|
'refresh_delay': int(params.get_param("muk_web_client_refresh.refresh_delay", default=10000)) |
||||
|
} |
@ -1,3 +1,9 @@ |
|||||
|
`2.0.0` |
||||
|
------- |
||||
|
|
||||
|
- Migrated to Python 3 |
||||
|
- Replaced Auto Refresh Rule by Automated Action |
||||
|
|
||||
`1.0.0` |
`1.0.0` |
||||
------- |
------- |
||||
|
|
||||
|
@ -0,0 +1,53 @@ |
|||||
|
====================== |
||||
|
MuK Web Client Refresh |
||||
|
====================== |
||||
|
|
||||
|
Adds a channel called "refresh" to the web client, which can be used to trigger |
||||
|
a view reload without refreshing the browser itself. Furthermore, it allows the |
||||
|
user the creation of action rules. These rules can be applied to any model and |
||||
|
trigger a refresh either on create, update or unlink. |
||||
|
|
||||
|
Installation |
||||
|
============ |
||||
|
|
||||
|
To install this module, you need to: |
||||
|
|
||||
|
Download the module and add it to your Odoo addons folder. Afterward, log on to |
||||
|
your Odoo server and go to the Apps menu. Trigger the debug modus and update the |
||||
|
list by clicking on the "Update Apps List" link. Now install the module by |
||||
|
clicking on the install button. |
||||
|
|
||||
|
Configuration |
||||
|
============= |
||||
|
|
||||
|
To configure this module, you need to: |
||||
|
|
||||
|
#. Go to *Settings* while being in debug mode. |
||||
|
#. Afterwards go to *Technical -> Automation -> Automated Refresh*. |
||||
|
#. And create a new refresh action. |
||||
|
|
||||
|
Usage |
||||
|
============= |
||||
|
|
||||
|
Besides creating a action rule, a view refresh can be triggered manually via python. |
||||
|
This can be useful if there is a need for a view reload on other operations. |
||||
|
|
||||
|
Credits |
||||
|
======= |
||||
|
|
||||
|
Contributors |
||||
|
------------ |
||||
|
|
||||
|
* Mathias Markl <mathias.markl@mukit.at> |
||||
|
|
||||
|
Author & Maintainer |
||||
|
------------------- |
||||
|
|
||||
|
This module is maintained by the `MuK IT GmbH <https://www.mukit.at/>`_. |
||||
|
|
||||
|
MuK IT is an Austrian company specialized in customizing and extending Odoo. |
||||
|
We develop custom solutions for your individual needs to help you focus on |
||||
|
your strength and expertise to grow your business. |
||||
|
|
||||
|
If you want to get in touch please contact us via mail |
||||
|
(sale@mukit.at) or visit our website (https://mukit.at). |
@ -0,0 +1,42 @@ |
|||||
|
################################################################################### |
||||
|
# |
||||
|
# Copyright (C) 2017 MuK IT GmbH |
||||
|
# |
||||
|
# This program is free software: you can redistribute it and/or modify |
||||
|
# it under the terms of the GNU Affero General Public License as |
||||
|
# published by the Free Software Foundation, either version 3 of the |
||||
|
# License, or (at your option) any later version. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU Affero General Public License for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU Affero General Public License |
||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################### |
||||
|
|
||||
|
from odoo import api, fields, models |
||||
|
|
||||
|
class ResConfigSettings(models.TransientModel): |
||||
|
|
||||
|
_inherit = 'res.config.settings' |
||||
|
|
||||
|
refresh_delay = fields.Integer( |
||||
|
string="Delay", |
||||
|
help="""Delays the execution of refresh and thus prevents the view from being reloaded too often. |
||||
|
For example, a delay of 1000 (ms) would mean that the view cannot be reloaded more than once a second. """) |
||||
|
|
||||
|
def set_values(self): |
||||
|
res = super(ResConfigSettings, self).set_values() |
||||
|
param = self.env['ir.config_parameter'].sudo() |
||||
|
param.set_param("muk_web_client_refresh.refresh_delay", self.refresh_delay) |
||||
|
return res |
||||
|
|
||||
|
@api.model |
||||
|
def get_values(self): |
||||
|
res = super(ResConfigSettings, self).get_values() |
||||
|
params = self.env['ir.config_parameter'].sudo() |
||||
|
res.update(refresh_delay=int(params.get_param("muk_web_client_refresh.refresh_delay", default=1000))) |
||||
|
return res |
After Width: 800 | Height: 450 | Size: 381 KiB |
Before Width: 839 | Height: 620 | Size: 42 KiB After Width: 1420 | Height: 800 | Size: 62 KiB |
Before Width: 839 | Height: 620 | Size: 23 KiB After Width: 1420 | Height: 800 | Size: 53 KiB |
@ -0,0 +1,82 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
|
||||
|
<!-- |
||||
|
Copyright (C) 2017 MuK IT GmbH |
||||
|
|
||||
|
This program is free software: you can redistribute it and/or modify |
||||
|
it under the terms of the GNU Affero General Public License as |
||||
|
published by the Free Software Foundation, either version 3 of the |
||||
|
License, or (at your option) any later version. |
||||
|
|
||||
|
This program is distributed in the hope that it will be useful, |
||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
GNU Affero General Public License for more details. |
||||
|
|
||||
|
You should have received a copy of the GNU Affero General Public License |
||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
--> |
||||
|
|
||||
|
<odoo> |
||||
|
|
||||
|
<record id="view_client_refresh_actions_form" model="ir.ui.view"> |
||||
|
<field name="name">base.automation.form</field> |
||||
|
<field name="model">base.automation</field> |
||||
|
<field name="mode">primary</field> |
||||
|
<field name="inherit_id" ref="base_automation.view_base_automation_form"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath expr="//field[@name='name']" position="attributes"> |
||||
|
<attribute name="placeholder">e.g. Refresh Users on Create</attribute> |
||||
|
</xpath> |
||||
|
<xpath expr="//field[@name='state']" position="attributes"> |
||||
|
<attribute name="readonly">1</attribute> |
||||
|
</xpath> |
||||
|
<xpath expr="//field[@name='code']" position="attributes"> |
||||
|
<attribute name="readonly">1</attribute> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<record id="view_client_refresh_actions_tree" model="ir.ui.view"> |
||||
|
<field name="name">base.automation.tree</field> |
||||
|
<field name="model">base.automation</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<tree string="Automation"> |
||||
|
<field name="sequence" widget="handle"/> |
||||
|
<field name="name"/> |
||||
|
<field name="trigger"/> |
||||
|
<field name="model_id"/> |
||||
|
</tree> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<record id="action_client_refresh_actions" model="ir.actions.act_window"> |
||||
|
<field name="name">Automated Refresh</field> |
||||
|
<field name="res_model">base.automation</field> |
||||
|
<field name="view_type">form</field> |
||||
|
<field name="view_mode">tree,form</field> |
||||
|
<field name="domain"> |
||||
|
[ |
||||
|
['code', '=', 'env["bus.bus"].sendone("refresh", {"model": model._name, "uid": env.user.id, "ids": (record | records).mapped("id")})'] |
||||
|
] |
||||
|
</field> |
||||
|
<field name="context"> |
||||
|
{ |
||||
|
'default_state': 'code', |
||||
|
'default_code': 'env["bus.bus"].sendone("refresh", {"model": model._name, "uid": env.user.id, "ids": (record | records).mapped("id")})' |
||||
|
} |
||||
|
</field> |
||||
|
<field name="help" type="html"> |
||||
|
<p class="oe_view_nocontent_create"> |
||||
|
Click to setup a new automated refresh action. |
||||
|
</p> |
||||
|
</field> |
||||
|
<field name="view_ids" eval="[(5, 0, 0), |
||||
|
(0, 0, {'view_mode': 'tree', 'view_id': ref('view_client_refresh_actions_tree')}), |
||||
|
(0, 0, {'view_mode': 'form', 'view_id': ref('view_client_refresh_actions_form')})]"/> |
||||
|
</record> |
||||
|
|
||||
|
<menuitem id="menu_client_refresh_actions" parent="base.menu_automation" |
||||
|
action="action_client_refresh_actions" sequence="2"/> |
||||
|
|
||||
|
</odoo> |
@ -0,0 +1,41 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
|
||||
|
<!-- |
||||
|
Copyright (C) 2017 MuK IT GmbH |
||||
|
|
||||
|
This program is free software: you can redistribute it and/or modify |
||||
|
it under the terms of the GNU Affero General Public License as |
||||
|
published by the Free Software Foundation, either version 3 of the |
||||
|
License, or (at your option) any later version. |
||||
|
|
||||
|
This program is distributed in the hope that it will be useful, |
||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
GNU Affero General Public License for more details. |
||||
|
|
||||
|
You should have received a copy of the GNU Affero General Public License |
||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
--> |
||||
|
|
||||
|
<odoo> |
||||
|
|
||||
|
<record id="res_config_settings_view_form" model="ir.ui.view"> |
||||
|
<field name="name">res.config.settings.view.form</field> |
||||
|
<field name="model">res.config.settings</field> |
||||
|
<field name="inherit_id" ref="base_setup.res_config_settings_view_form"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<div id="msg_module_muk_web_client_refresh" position="replace"> |
||||
|
<div class="content-group" attrs="{'invisible': [('module_muk_web_client_refresh','=',False)]}"> |
||||
|
<button name="%(muk_web_client_refresh.action_client_refresh_actions)d" |
||||
|
string="Configure Actions" type="action" class="oe_link" icon="fa-arrow-right"/> |
||||
|
<div class="mt16 row"> |
||||
|
<label for="refresh_delay" string="Delay" class="col-xs-3 col-md-3 o_light_label"/> |
||||
|
<field name="refresh_delay" nolabel="1"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
</odoo> |
||||
|
|
@ -1,3 +0,0 @@ |
|||||
# MuK Web Utils |
|
||||
|
|
||||
Technical module to provide some utility features. |
|
@ -1,3 +1,8 @@ |
|||||
|
`2.0.0` |
||||
|
------- |
||||
|
|
||||
|
- Migrated to Python 3 |
||||
|
|
||||
`1.0.0` |
`1.0.0` |
||||
------- |
------- |
||||
|
|
||||
|
@ -0,0 +1,46 @@ |
|||||
|
============= |
||||
|
MuK Web Utils |
||||
|
============= |
||||
|
|
||||
|
Technical module to provide some utility features and libraries that can be used |
||||
|
in other applications. This module has no direct effect on the running system. |
||||
|
|
||||
|
Installation |
||||
|
============ |
||||
|
|
||||
|
To install this module, you need to: |
||||
|
|
||||
|
Download the module and add it to your Odoo addons folder. Afterward, log on to |
||||
|
your Odoo server and go to the Apps menu. Trigger the debug modus and update the |
||||
|
list by clicking on the "Update Apps List" link. Now install the module by |
||||
|
clicking on the install button. |
||||
|
|
||||
|
Configuration |
||||
|
============= |
||||
|
|
||||
|
No additional configuration is needed to use this module. |
||||
|
|
||||
|
Usage |
||||
|
============= |
||||
|
|
||||
|
This module has no direct visible effect on the system. It provide utility features. |
||||
|
|
||||
|
Credits |
||||
|
======= |
||||
|
|
||||
|
Contributors |
||||
|
------------ |
||||
|
|
||||
|
* Mathias Markl <mathias.markl@mukit.at> |
||||
|
|
||||
|
Author & Maintainer |
||||
|
------------------- |
||||
|
|
||||
|
This module is maintained by the `MuK IT GmbH <https://www.mukit.at/>`_. |
||||
|
|
||||
|
MuK IT is an Austrian company specialized in customizing and extending Odoo. |
||||
|
We develop custom solutions for your individual needs to help you focus on |
||||
|
your strength and expertise to grow your business. |
||||
|
|
||||
|
If you want to get in touch please contact us via mail |
||||
|
(sale@mukit.at) or visit our website (https://mukit.at). |