Skip to content

Commit 3b56fd6

Browse files
Davidcelm1990
David
authored andcommitted
[ADD] web_widget_domain_editor_dialog: New module
1 parent 0215f0a commit 3b56fd6

13 files changed

+831
-0
lines changed
+105
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
===============================
2+
Web Widget Domain Editor Dialog
3+
===============================
4+
5+
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
6+
!! This file is generated by oca-gen-addon-readme !!
7+
!! changes will be overwritten. !!
8+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9+
10+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
11+
:target: https://odoo-community.org/page/development-status
12+
:alt: Beta
13+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
14+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
15+
:alt: License: AGPL-3
16+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
17+
:target: https://github.com/OCA/web/tree/11.0/web_widget_domain_editor_dialog
18+
:alt: OCA/web
19+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
20+
:target: https://translation.odoo-community.org/projects/web-11-0/web-11-0-web_widget_domain_editor_dialog
21+
:alt: Translate me on Weblate
22+
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
23+
:target: https://runbot.odoo-community.org/runbot/162/11.0
24+
:alt: Try me on Runbot
25+
26+
|badge1| |badge2| |badge3| |badge4| |badge5|
27+
28+
Since v11 introduced the new domain editor widget it's not possible to edit
29+
the selected records from the current domain.
30+
31+
This module reintroduces that dialog to complement the current widget with the
32+
powerful search engine of Odoo.
33+
34+
**Table of contents**
35+
36+
.. contents::
37+
:local:
38+
39+
Usage
40+
=====
41+
42+
In any view with a domain field widget and model, but we'll make the example
43+
with a user filter:
44+
45+
#. Enter debug mode.
46+
#. Go to the *Debug menu* and select the option *Manage Filters*
47+
#. Create a new one
48+
#. Put a name to the filter and select a model (e.g.: Contact)
49+
#. Click on the record selection button and a list dialog opens. There you can
50+
either:
51+
52+
* Select individual records: those ids will be added to the domain.
53+
* Set filters that will be applied to the domain and select all the records
54+
to add it as a new filter.
55+
* Set groups that will be converted into search filters, select all the
56+
records and those unfolded groups will be set as filters to.
57+
58+
You can still edit the filter with Odoo's widget after that.
59+
60+
.. figure:: https://raw.githubusercontent.com/OCA/web/11.0/web_widget_domain_editor_dialog/static/src/img/behaviour.png
61+
:align: center
62+
:width: 600 px
63+
64+
Bug Tracker
65+
===========
66+
67+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
68+
In case of trouble, please check there if your issue has already been reported.
69+
If you spotted it first, help us smashing it by providing a detailed and welcomed
70+
`feedback <https://github.com/OCA/web/issues/new?body=module:%20web_widget_domain_editor_dialog%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
71+
72+
Do not contact contributors directly about support or help with technical issues.
73+
74+
Credits
75+
=======
76+
77+
Authors
78+
~~~~~~~
79+
80+
* Tecnativa
81+
82+
Contributors
83+
~~~~~~~~~~~~
84+
85+
* `Tecnativa <https://www.tecnativa.com>`_
86+
87+
* David Vidal <[email protected]>
88+
* Jairo Llopis <[email protected]>
89+
90+
Maintainers
91+
~~~~~~~~~~~
92+
93+
This module is maintained by the OCA.
94+
95+
.. image:: https://odoo-community.org/logo.png
96+
:alt: Odoo Community Association
97+
:target: https://odoo-community.org
98+
99+
OCA, or the Odoo Community Association, is a nonprofit organization whose
100+
mission is to support the collaborative development of Odoo features and
101+
promote its widespread use.
102+
103+
This module is part of the `OCA/web <https://github.com/OCA/web/tree/11.0/web_widget_domain_editor_dialog>`_ project on GitHub.
104+
105+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

web_widget_domain_editor_dialog/__init__.py

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright 2019 Tecnativa - David Vidal
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3+
{
4+
'name': 'Web Widget Domain Editor Dialog',
5+
'summary': 'Recovers the Domain Editor Dialog functionality',
6+
'version': '11.0.1.0.0',
7+
'category': 'Web',
8+
'author': 'Tecnativa,'
9+
'Odoo Community Association (OCA)',
10+
'website': 'https://github.com/OCA/web',
11+
'license': 'AGPL-3',
12+
'depends': [
13+
'web',
14+
],
15+
'data': [
16+
'views/templates.xml',
17+
],
18+
'application': False,
19+
'installable': True,
20+
}
+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * web_widget_domain_editor_dialog
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 11.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2019-02-22 11:23+0000\n"
10+
"PO-Revision-Date: 2019-02-22 11:23+0000\n"
11+
"Last-Translator: <>\n"
12+
"Language-Team: \n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: \n"
17+
18+
#. module: web_widget_domain_editor_dialog
19+
#. openerp-web
20+
#: code:addons/web_widget_domain_editor_dialog/static/src/js/widget_domain_editor_dialog.js:18
21+
#, python-format
22+
msgid "Custom Filter"
23+
msgstr "Filtro personalizado"
24+
25+
#. module: web_widget_domain_editor_dialog
26+
#. openerp-web
27+
#: code:addons/web_widget_domain_editor_dialog/static/src/js/basic_fields.js:21
28+
#, python-format
29+
msgid "Select records..."
30+
msgstr "Seleccionar registros..."
31+
32+
#. module: web_widget_domain_editor_dialog
33+
#. openerp-web
34+
#: code:addons/web_widget_domain_editor_dialog/static/src/js/widget_domain_editor_dialog.js:31
35+
#, python-format
36+
msgid "Selected domain"
37+
msgstr "Dominio seleccionado"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * web_widget_domain_editor_dialog
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 11.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2019-02-22 11:22+0000\n"
10+
"PO-Revision-Date: 2019-02-22 11:22+0000\n"
11+
"Last-Translator: <>\n"
12+
"Language-Team: \n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: \n"
17+
18+
#. module: web_widget_domain_editor_dialog
19+
#. openerp-web
20+
#: code:addons/web_widget_domain_editor_dialog/static/src/js/widget_domain_editor_dialog.js:18
21+
#, python-format
22+
msgid "Custom Filter"
23+
msgstr ""
24+
25+
#. module: web_widget_domain_editor_dialog
26+
#. openerp-web
27+
#: code:addons/web_widget_domain_editor_dialog/static/src/js/basic_fields.js:21
28+
#, python-format
29+
msgid "Select records..."
30+
msgstr ""
31+
32+
#. module: web_widget_domain_editor_dialog
33+
#. openerp-web
34+
#: code:addons/web_widget_domain_editor_dialog/static/src/js/widget_domain_editor_dialog.js:31
35+
#, python-format
36+
msgid "Selected domain"
37+
msgstr ""
38+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
* `Tecnativa <https://www.tecnativa.com>`_
2+
3+
* David Vidal <[email protected]>
4+
* Jairo Llopis <[email protected]>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Since v11 introduced the new domain editor widget it's not possible to edit
2+
the selected records from the current domain.
3+
4+
This module reintroduces that dialog to complement the current widget with the
5+
powerful search engine of Odoo.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
In any view with a domain field widget and model, but we'll make the example
2+
with a user filter:
3+
4+
#. Enter debug mode.
5+
#. Go to the *Debug menu* and select the option *Manage Filters*
6+
#. Create a new one
7+
#. Put a name to the filter and select a model (e.g.: Contact)
8+
#. Click on the record selection button and a list dialog opens. There you can
9+
either:
10+
11+
* Select individual records: those ids will be added to the domain.
12+
* Set filters that will be applied to the domain and select all the records
13+
to add it as a new filter.
14+
* Set groups that will be converted into search filters, select all the
15+
records and those unfolded groups will be set as filters to.
16+
17+
You can still edit the filter with Odoo's widget after that.
18+
19+
.. figure:: ../static/src/img/behaviour.png
20+
:align: center
21+
:width: 600 px

0 commit comments

Comments
 (0)