Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 92 additions & 0 deletions web_ir_actions_close_wizard_refresh_view/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
=========================
Close Wizard Refresh View
=========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:7ca61bc7e8d05841bb10e91eee61bed960bba09303d8a1bd3cabbacc3efdc030
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
:target: https://github.com/OCA/web/tree/18.0/web_ir_actions_close_wizard_refresh_view
:alt: OCA/web
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_ir_actions_close_wizard_refresh_view
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

Let reload the data in a view, while closing a wizard, without reloading
the page.

**Table of contents**

.. contents::
:local:

Usage
=====

Return an action literal with the following type:
'ir.actions.close_wizard_refresh_view'.

For example:

::

def method_called_by_wizard(self):

..
..

return {
'type': 'ir.actions.close_wizard_refresh_view'
}

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/web/issues/new?body=module:%20web_ir_actions_close_wizard_refresh_view%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* LevelPrime srl
* Nova Code

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/web <https://github.com/OCA/web/tree/18.0/web_ir_actions_close_wizard_refresh_view>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions web_ir_actions_close_wizard_refresh_view/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2019 LevelPrime
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

from . import models
26 changes: 26 additions & 0 deletions web_ir_actions_close_wizard_refresh_view/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2019 LevelPrime
# Copyright 2023 Nova Code (https://www.novacode.nl)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

{
"name": "Close Wizard Refresh View",
"summary": """Allow to refresh view data without reload the page.""",
"version": "18.0.1.0.0",
"development_status": "Beta",
"author": "LevelPrime srl, Nova Code, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/web",
"license": "AGPL-3",
"category": "Web",
"depends": ["web"],
"data": ["security/ir.model.access.csv"],
"assets": {
"web.assets_backend": [
"web_ir_actions_close_wizard_refresh_view/static/src/js/*.js",
],
"web.assets_unit_tests": [
"web_ir_actions_close_wizard_refresh_view/static/tests/**/*",
],
},
"application": False,
"installable": True,
}
110 changes: 110 additions & 0 deletions web_ir_actions_close_wizard_refresh_view/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_ir_actions_close_wizard_refresh_view
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-04-23 14:35+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model,name:web_ir_actions_close_wizard_refresh_view.model_ir_actions_close_wizard_refresh_view
msgid "Action Close Wizard Window Refresh View"
msgstr "Azione chiudi finestra procedura guidata aggiorna vista"

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__help
msgid "Action Description"
msgstr "Descrizione azione"

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__name
msgid "Action Name"
msgstr "Nome azione"

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__type
msgid "Action Type"
msgstr "Tipo azione"

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__binding_model_id
msgid "Binding Model"
msgstr "Modello collegamento"

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__binding_type
msgid "Binding Type"
msgstr "Tipo collegamento"

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__binding_view_types
msgid "Binding View Types"
msgstr "Tipi vista collegamento"

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__create_uid
msgid "Created by"
msgstr "Creato da"

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__create_date
msgid "Created on"
msgstr "Creato il"

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__display_name
msgid "Display Name"
msgstr "Nome visualizzato"

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__xml_id
msgid "External ID"
msgstr "ID esterno"

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__id
msgid "ID"
msgstr "ID"

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view____last_update
msgid "Last Modified on"
msgstr "Ultima modifica il"

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__write_uid
msgid "Last Updated by"
msgstr "Ultimo aggiornamento di"

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__write_date
msgid "Last Updated on"
msgstr "Ultimo aggiornamento il"

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,help:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__help
msgid ""
"Optional help text for the users with a description of the target view, such"
" as its usage and purpose."
msgstr ""
"Testo di aiuto opzionale per l'utente con una descrizione della vista "
"obiettivo, come il suo utilizzo e obiettivo."

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,help:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__binding_model_id
msgid ""
"Setting a value makes this action available in the sidebar for the given "
"model."
msgstr ""
"Impostare un valore rende questa azione disponibile nella barra laterale per "
"il dato modello."
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_ir_actions_close_wizard_refresh_view
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model,name:web_ir_actions_close_wizard_refresh_view.model_ir_actions_close_wizard_refresh_view
msgid "Action Close Wizard Window Refresh View"
msgstr ""

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__help
msgid "Action Description"
msgstr ""

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__name
msgid "Action Name"
msgstr ""

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__type
msgid "Action Type"
msgstr ""

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__binding_model_id
msgid "Binding Model"
msgstr ""

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__binding_type
msgid "Binding Type"
msgstr ""

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__binding_view_types
msgid "Binding View Types"
msgstr ""

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__create_uid
msgid "Created by"
msgstr ""

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__create_date
msgid "Created on"
msgstr ""

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__display_name
msgid "Display Name"
msgstr ""

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__xml_id
msgid "External ID"
msgstr ""

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__id
msgid "ID"
msgstr ""

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view____last_update
msgid "Last Modified on"
msgstr ""

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__write_uid
msgid "Last Updated by"
msgstr ""

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,field_description:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__write_date
msgid "Last Updated on"
msgstr ""

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,help:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__help
msgid ""
"Optional help text for the users with a description of the target view, such"
" as its usage and purpose."
msgstr ""

#. module: web_ir_actions_close_wizard_refresh_view
#: model:ir.model.fields,help:web_ir_actions_close_wizard_refresh_view.field_ir_actions_close_wizard_refresh_view__binding_model_id
msgid ""
"Setting a value makes this action available in the sidebar for the given "
"model."
msgstr ""
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import ir_actions
10 changes: 10 additions & 0 deletions web_ir_actions_close_wizard_refresh_view/models/ir_actions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from odoo import fields, models


class IrActionsCloseWizardRefreshView(models.Model):
_name = "ir.actions.close_wizard_refresh_view"
_description = "Action Close Wizard Window Refresh View"
_inherit = "ir.actions.act_window_close"
_table = "ir_actions"

type = fields.Char(default="ir.actions.close_wizard_refresh_view")
3 changes: 3 additions & 0 deletions web_ir_actions_close_wizard_refresh_view/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Let reload the data in a view, while closing a wizard, without reloading
the page.
13 changes: 13 additions & 0 deletions web_ir_actions_close_wizard_refresh_view/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Return an action literal with the following type:
'ir.actions.close_wizard_refresh_view'.

For example:

def method_called_by_wizard(self):

..
..

return {
'type': 'ir.actions.close_wizard_refresh_view'
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_ir_actions_close_wizard_refresh_view,access_ir_actions_close_wizard_refresh_view,model_ir_actions_close_wizard_refresh_view,base.group_user,1,1,1,1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading