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
99 changes: 99 additions & 0 deletions web_filter_paste_multiline/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
======================
Filter Multiline Paste
======================

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

.. |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-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-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_filter_paste_multiline
: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_filter_paste_multiline
: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|

When using the **Add Custom Filter** dialog (Filters → Add Custom
Filter) with an **is in** or **is not in** operator, Odoo normally
inserts pasted text as a single value, even when the clipboard contains
multiple lines.

|image1|

When this module is installed, when a multi-line text is pasted in the
search value with the **is in** or **is not in** operator, it is
automatically expanded as one value per line, as if the user had typed
each value one by one. Each line becomes a separate tag in the filter:

|image2|

.. |image1| image:: https://raw.githubusercontent.com/OCA/web/18.0/web_filter_paste_multiline/static/description/paste_before.png
.. |image2| image:: https://raw.githubusercontent.com/OCA/web/18.0/web_filter_paste_multiline/static/description/paste_after.png

**Table of contents**

.. contents::
:local:

Usage
=====

Open a list view and go to **Filters → Add Custom Filter**. Pick any
field, set the operator to **is in** (or **is not in**), then paste a
list of values copied from a spreadsheet, a text file, or any other
source that produces one value per line.

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_filter_paste_multiline%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
-------

* QoQa

Contributors
------------

- Guewen Baconnier <guewen.baconnier@qoqa.com>

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_filter_paste_multiline>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Empty file.
22 changes: 22 additions & 0 deletions web_filter_paste_multiline/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2026 QoQa Services SA
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html)

{
"name": "Filter Multiline Paste",
"category": "Hidden/Tools",
"version": "18.0.1.0.0",
"license": "LGPL-3",
"author": "QoQa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/web",
"depends": ["web"],
"installable": True,
"assets": {
"web.assets_backend": [
"web_filter_paste_multiline/static/src/list_paste_multiline.esm.js",
"web_filter_paste_multiline/static/src/list_paste_multiline.xml",
],
"web.assets_unit_tests": [
"web_filter_paste_multiline/static/tests/*",
],
},
}
3 changes: 3 additions & 0 deletions web_filter_paste_multiline/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
1 change: 1 addition & 0 deletions web_filter_paste_multiline/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Guewen Baconnier \<<guewen.baconnier@qoqa.com>\>
12 changes: 12 additions & 0 deletions web_filter_paste_multiline/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
When using the **Add Custom Filter** dialog (Filters → Add Custom Filter)
with an **is in** or **is not in** operator, Odoo normally inserts pasted
text as a single value, even when the clipboard contains multiple lines.

![](../static/description/paste_before.png)

When this module is installed, when a multi-line text is pasted in the
search value with the **is in** or **is not in** operator, it is
automatically expanded as one value per line, as if the user had typed
each value one by one. Each line becomes a separate tag in the filter:

![](../static/description/paste_after.png)
4 changes: 4 additions & 0 deletions web_filter_paste_multiline/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Open a list view and go to **Filters → Add Custom Filter**. Pick any
field, set the operator to **is in** (or **is not in**), then paste a list
of values copied from a spreadsheet, a text file, or any other source that
produces one value per line.
Loading
Loading