Skip to content

Commit

Permalink
Merge pull request #1251 from OCA/16.0
Browse files Browse the repository at this point in the history
Syncing from upstream OCA/web (16.0)
  • Loading branch information
bt-admin authored Mar 23, 2024
2 parents 0024670 + baf5899 commit 3415709
Show file tree
Hide file tree
Showing 15 changed files with 626 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ addon | version | maintainers | summary
[web_field_numeric_formatting](web_field_numeric_formatting/) | 16.0.1.0.0 | | Allow to render float and integer fields without thousands separator
[web_group_expand](web_group_expand/) | 16.0.1.0.0 | | Group Expand Buttons
[web_help](web_help/) | 16.0.2.0.0 | | Help Framework
[web_hide_field_with_key](web_hide_field_with_key/) | 16.0.1.0.1 | [![franzpoize](https://github.com/franzpoize.png?size=30px)](https://github.com/franzpoize) | Hide fields for models
[web_ir_actions_act_multi](web_ir_actions_act_multi/) | 16.0.1.0.0 | | Enables triggering of more than one action on ActionManager
[web_ir_actions_act_window_message](web_ir_actions_act_window_message/) | 16.0.1.0.1 | | Show a message box to users
[web_ir_actions_act_window_page](web_ir_actions_act_window_page/) | 16.0.1.0.0 | | Allows a developer to trigger a pager to show the previous or next next record in the form view
Expand Down
2 changes: 1 addition & 1 deletion setup/_metapackage/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.0.20240309.1
16.0.20240322.0
1 change: 1 addition & 0 deletions setup/_metapackage/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
'odoo-addon-web_field_numeric_formatting>=16.0dev,<16.1dev',
'odoo-addon-web_group_expand>=16.0dev,<16.1dev',
'odoo-addon-web_help>=16.0dev,<16.1dev',
'odoo-addon-web_hide_field_with_key>=16.0dev,<16.1dev',
'odoo-addon-web_ir_actions_act_multi>=16.0dev,<16.1dev',
'odoo-addon-web_ir_actions_act_window_message>=16.0dev,<16.1dev',
'odoo-addon-web_ir_actions_act_window_page>=16.0dev,<16.1dev',
Expand Down
6 changes: 6 additions & 0 deletions setup/web_hide_field_with_key/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
95 changes: 95 additions & 0 deletions web_hide_field_with_key/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
========================
Web hide field with keys
========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:2f9505d660c7b606386565a2d225a9b3c971cc9e8346f7514ed98753d03b3225
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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/16.0/web_hide_field_with_key
:alt: OCA/web
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_hide_field_with_key
: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=16.0
:alt: Try me on Runboat

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

This allows to hide field by pressing the "p" key on the keyboard

**Table of contents**

.. contents::
:local:

Usage
=====

Add the class web-hide-field to a field:

::

<field name="name" class="web-hide-field">

Then press the "p" key and the field will disappear

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_hide_field_with_key%0Aversion:%2016.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
~~~~~~~

* Akretion

Contributors
~~~~~~~~~~~~

* Francois Poizat <[email protected]>

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.

.. |maintainer-franzpoize| image:: https://github.com/franzpoize.png?size=40px
:target: https://github.com/franzpoize
:alt: franzpoize

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-franzpoize|

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Empty file.
18 changes: 18 additions & 0 deletions web_hide_field_with_key/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "Web hide field with keys",
"summary": "Hide fields for models",
"category": "Misc",
"author": "Akretion,Odoo Community Association (OCA)",
"license": "AGPL-3",
"version": "16.0.1.0.1",
"depends": ["base", "product"],
"maintainers": ["franzpoize"],
"website": "https://github.com/OCA/web",
"assets": {
"web.assets_common": [
"web_hide_field_with_key/static/src/js/**/*",
],
},
"data": [],
"external_dependencies": {},
}
13 changes: 13 additions & 0 deletions web_hide_field_with_key/i18n/web_hide_field_with_key.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
#
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"
1 change: 1 addition & 0 deletions web_hide_field_with_key/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Francois Poizat <[email protected]>
1 change: 1 addition & 0 deletions web_hide_field_with_key/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This allows to hide field by pressing the "p" key on the keyboard
7 changes: 7 additions & 0 deletions web_hide_field_with_key/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Add the class web-hide-field to a field:

::

<field name="name" class="web-hide-field">

Then press the "p" key and the field will disappear
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3415709

Please sign in to comment.