mirror of https://github.com/OCA/web.git
[MIG] Migrate the module web_m2x_options to v14.
parent
267d9abbad
commit
69ab93611d
|
@ -14,13 +14,13 @@ web_m2x_options
|
||||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||||
:alt: License: AGPL-3
|
:alt: License: AGPL-3
|
||||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
|
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
|
||||||
:target: https://github.com/OCA/web/tree/13.0/web_m2x_options
|
:target: https://github.com/OCA/web/tree/14.0/web_m2x_options
|
||||||
:alt: OCA/web
|
:alt: OCA/web
|
||||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||||
:target: https://translation.odoo-community.org/projects/web-13-0/web-13-0-web_m2x_options
|
:target: https://translation.odoo-community.org/projects/web-14-0/web-14-0-web_m2x_options
|
||||||
:alt: Translate me on Weblate
|
:alt: Translate me on Weblate
|
||||||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
||||||
:target: https://runbot.odoo-community.org/runbot/162/13.0
|
:target: https://runbot.odoo-community.org/runbot/162/14.0
|
||||||
:alt: Try me on Runbot
|
:alt: Try me on Runbot
|
||||||
|
|
||||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||||
|
@ -149,7 +149,7 @@ Bug Tracker
|
||||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
|
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.
|
In case of trouble, please check there if your issue has already been reported.
|
||||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||||
`feedback <https://github.com/OCA/web/issues/new?body=module:%20web_m2x_options%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
`feedback <https://github.com/OCA/web/issues/new?body=module:%20web_m2x_options%0Aversion:%2014.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.
|
Do not contact contributors directly about support or help with technical issues.
|
||||||
|
|
||||||
|
@ -159,6 +159,7 @@ Credits
|
||||||
Authors
|
Authors
|
||||||
~~~~~~~
|
~~~~~~~
|
||||||
|
|
||||||
|
* initOS GmbH
|
||||||
* ACSONE SA/NV
|
* ACSONE SA/NV
|
||||||
* 0k.io
|
* 0k.io
|
||||||
* Tecnativa
|
* Tecnativa
|
||||||
|
@ -178,6 +179,7 @@ Contributors
|
||||||
* David Vidal <david.vidal@tecnativa.com>
|
* David Vidal <david.vidal@tecnativa.com>
|
||||||
* Ernesto Tejeda <ernesto.tejeda87@gmail.com>
|
* Ernesto Tejeda <ernesto.tejeda87@gmail.com>
|
||||||
* Bhavesh Odedra <bodedra@opensourceintegrators.com>
|
* Bhavesh Odedra <bodedra@opensourceintegrators.com>
|
||||||
|
* Dhara Solanki <dhara.solanki@initos.com> (http://www.initos.com)
|
||||||
|
|
||||||
Maintainers
|
Maintainers
|
||||||
~~~~~~~~~~~
|
~~~~~~~~~~~
|
||||||
|
@ -192,6 +194,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||||
mission is to support the collaborative development of Odoo features and
|
mission is to support the collaborative development of Odoo features and
|
||||||
promote its widespread use.
|
promote its widespread use.
|
||||||
|
|
||||||
This module is part of the `OCA/web <https://github.com/OCA/web/tree/13.0/web_m2x_options>`_ project on GitHub.
|
This module is part of the `OCA/web <https://github.com/OCA/web/tree/14.0/web_m2x_options>`_ project on GitHub.
|
||||||
|
|
||||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
from . import models
|
from . import models
|
||||||
|
from . import tests
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
# Copyright 2015 0k.io
|
# Copyright 2015 0k.io
|
||||||
# Copyright 2016 ACSONE SA/NV
|
# Copyright 2016 ACSONE SA/NV
|
||||||
# Copyright 2017 Tecnativa
|
# Copyright 2017 Tecnativa
|
||||||
|
# Copyright 2020 initOS GmbH.
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "web_m2x_options",
|
"name": "web_m2x_options",
|
||||||
"version": "13.0.1.0.2",
|
"version": "14.0.1.0.0",
|
||||||
"category": "Web",
|
"category": "Web",
|
||||||
"author": "ACSONE SA/NV, "
|
"author": "initOS GmbH,"
|
||||||
|
"ACSONE SA/NV, "
|
||||||
"0k.io, "
|
"0k.io, "
|
||||||
"Tecnativa, "
|
"Tecnativa, "
|
||||||
"Odoo Community Association (OCA)",
|
"Odoo Community Association (OCA)",
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 13.0\n"
|
"Project-Id-Version: Odoo Server 14.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
|
@ -62,6 +62,21 @@ msgstr ""
|
||||||
msgid "Create and edit"
|
msgid "Create and edit"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: web_m2x_options
|
||||||
|
#: model:ir.model.fields,field_description:web_m2x_options.field_ir_config_parameter__display_name
|
||||||
|
msgid "Display Name"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: web_m2x_options
|
||||||
|
#: model:ir.model.fields,field_description:web_m2x_options.field_ir_config_parameter__id
|
||||||
|
msgid "ID"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: web_m2x_options
|
||||||
|
#: model:ir.model.fields,field_description:web_m2x_options.field_ir_config_parameter____last_update
|
||||||
|
msgid "Last Modified on"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#. module: web_m2x_options
|
#. module: web_m2x_options
|
||||||
#. openerp-web
|
#. openerp-web
|
||||||
#: code:addons/web_m2x_options/static/src/js/form.js:0
|
#: code:addons/web_m2x_options/static/src/js/form.js:0
|
||||||
|
|
|
@ -10,3 +10,4 @@
|
||||||
* David Vidal <david.vidal@tecnativa.com>
|
* David Vidal <david.vidal@tecnativa.com>
|
||||||
* Ernesto Tejeda <ernesto.tejeda87@gmail.com>
|
* Ernesto Tejeda <ernesto.tejeda87@gmail.com>
|
||||||
* Bhavesh Odedra <bodedra@opensourceintegrators.com>
|
* Bhavesh Odedra <bodedra@opensourceintegrators.com>
|
||||||
|
* Dhara Solanki <dhara.solanki@initos.com> (http://www.initos.com)
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Copyright 2020 initOS GmbH.
|
||||||
|
from . import test_ir_config_parameter
|
|
@ -0,0 +1,30 @@
|
||||||
|
# Copyright 2020 initOS GmbH.
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||||
|
|
||||||
|
from odoo.tests import common
|
||||||
|
|
||||||
|
|
||||||
|
class TestIrConfigParameter(common.SavepointCase):
|
||||||
|
@classmethod
|
||||||
|
def setUpClass(cls):
|
||||||
|
super(TestIrConfigParameter, cls).setUpClass()
|
||||||
|
cls.env["ir.config_parameter"].set_param("web_m2x_options.limit", 10)
|
||||||
|
cls.env["ir.config_parameter"].set_param("web_m2x_options.create_edit", "True")
|
||||||
|
cls.env["ir.config_parameter"].set_param("web_m2x_options.create", "True")
|
||||||
|
cls.env["ir.config_parameter"].set_param("web_m2x_options.search_more", "False")
|
||||||
|
cls.env["ir.config_parameter"].set_param("web_m2x_options.m2o_dialog", "True")
|
||||||
|
|
||||||
|
def test_web_m2x_options_key(self):
|
||||||
|
web_m2x_options = self.env["ir.config_parameter"].get_web_m2x_options()
|
||||||
|
options = {opt["key"]: opt["value"] for opt in web_m2x_options}
|
||||||
|
self.assertIn("web_m2x_options.limit", options)
|
||||||
|
self.assertNotIn("web_m2x_options.m2o_dialog_test", options)
|
||||||
|
|
||||||
|
def test_web_m2x_options_value(self):
|
||||||
|
web_m2x_options = self.env["ir.config_parameter"].get_web_m2x_options()
|
||||||
|
options = {opt["key"]: opt["value"] for opt in web_m2x_options}
|
||||||
|
self.assertEqual(options["web_m2x_options.limit"], "10")
|
||||||
|
self.assertTrue(bool(options["web_m2x_options.create_edit"]))
|
||||||
|
self.assertTrue(bool(options["web_m2x_options.create"]))
|
||||||
|
self.assertEqual(options["web_m2x_options.search_more"], "False")
|
||||||
|
self.assertTrue(bool(options["web_m2x_options.m2o_dialog"]))
|
Loading…
Reference in New Issue