Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] base_optional_quick_create: Migration to 18.0 #989

Open
wants to merge 35 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
c562716
base_optional_quick_create
eLBati Jun 12, 2013
9973a85
move all modules to __unported__ on master branch and set installable…
sbidoul Jul 12, 2014
8e598a3
Port to v8 PEP-8 compliant
Oct 22, 2014
a1cef7e
This fixes #73 Check if the model still exists in the registry before…
lmignon Oct 31, 2014
0b8ce95
Add OCA as author of OCA addons
gurneyalex Mar 2, 2015
1d808cb
Add missing default oca icons
yvaucher Aug 18, 2015
d9c4814
prefix versions with 8.0
sbidoul Oct 9, 2015
9e1a94d
Make modules uninstallable
pedrobaeza Oct 14, 2015
3286a8b
from 8.0 to 9.0 base_optional_quick_create * bump version to 9.0.1.0.…
Mar 15, 2016
229b2b3
introduce the same behavior than 8.0
Mar 23, 2016
539c1e9
base_optional_quick_create: fix bug detected by pylint
sbidoul Jul 12, 2016
a647caf
Make modules uninstallable
pedrobaeza Oct 6, 2016
9b9e03f
Rename manifest files
pedrobaeza Oct 6, 2016
37633d3
Migrate base_optional_quick_create to Odoo 10
alexis-via Nov 10, 2016
cd35269
FIX when have a "dead" model that is still in DB
alexis-via Nov 10, 2016
59ba92b
base_optional_quick_create clears _api field of name_create method, u…
SimoRubi Mar 19, 2018
eb85128
[12.0][MIG] base_optional_quick_create
Oct 2, 2018
fe77363
base_optional_quick_create: avoid a crash during migration (up-port f…
alexis-via Jul 17, 2019
81b3272
[IMP] base_optional_quick_create: black, isort, prettier
SimoRubi Mar 16, 2021
381ec70
Fix avoid_quick_create with multiprocess
guewen Dec 10, 2018
2a8d9a2
[MIG] base_optional_quick_create: Migration to 14.0
SimoRubi Mar 16, 2021
a9efc9e
base_optional_quick_create: Add tests with generic model
Mar 25, 2021
1530c78
Translated using Weblate (Italian)
francesco-ooops Dec 3, 2021
5bb4561
[MIG] base_optional_quick_create: Migration to 15.0
Jun 5, 2022
eb4d0fc
[MIG] base_optional_quick_create: Migration to 16.0
baimont Jan 5, 2023
c96c67d
Added translation using Weblate (Japanese)
Ryoko04 Jun 19, 2023
8004f13
Translated using Weblate (Japanese)
Ryoko04 Jun 19, 2023
dd3581f
Translated using Weblate (Spanish)
Ivorra78 Aug 27, 2023
29233ab
Translated using Weblate (Italian)
mymage Dec 28, 2023
5b0bfd2
[IMP] : pre-commit auto fixes
Feb 5, 2024
7686904
[MIG] base_optional_quick_create: Migration to 17.0
Feb 5, 2024
33384f5
[UPD] base_optional_quick_create: remove readme.srt file
jaydeep32 Jul 10, 2024
baaf524
[UPD] base_optional_quick_create: remove readme.srt file
jaydeep32 Jul 10, 2024
1b409bd
[IMP] base_optional_quick_create: pre-commit auto fixes
Jan 9, 2025
37503cb
[MIG] base_optional_quick_create: Migration to 18.0
Jan 9, 2025
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
100 changes: 100 additions & 0 deletions base_optional_quick_create/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
=====================
Optional quick create
=====================

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

.. |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%2Fserver--ux-lightgray.png?logo=github
:target: https://github.com/OCA/server-ux/tree/18.0/base_optional_quick_create
:alt: OCA/server-ux
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-ux-18-0/server-ux-18-0-base_optional_quick_create
: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/server-ux&target_branch=18.0
:alt: Try me on Runboat

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

This module allows to avoid to *quick create* new records, through
many2one fields, for a specific model. You can configure which models
should allow *quick create*. When specified, the *quick create* option
will always open the standard create form.

Got the idea from https://twitter.com/nbessi/status/337869826028605441

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

- go into the menu of *ir_model*,
- select the model for which you want to disable the quick create
option,
- enable the option *Avoid quick create*.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-ux/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/server-ux/issues/new?body=module:%20base_optional_quick_create%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
-------

* Agile Business Group

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

- Jonathan Nemry [email protected]
- Lorenzo Battistini [email protected]
- Alexis de Lattre [email protected]
- Gilles Meyomesse [email protected] (https://acsone.eu)
- Carmen Rondon Regalado [email protected]

Other credits
-------------

This module is maintained by: \* Odoo Community Association

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/server-ux <https://github.com/OCA/server-ux/tree/18.0/base_optional_quick_create>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions base_optional_quick_create/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
17 changes: 17 additions & 0 deletions base_optional_quick_create/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2013 Agile Business Group sagl (<http://www.agilebg.com>)
# Copyright 2016 ACSONE SA/NV (<https://acsone.eu>)

{
"name": "Optional quick create",
"version": "18.0.1.0.0",
"category": "Tools",
"summary": 'Avoid "quick create" on m2o fields, on a "by model" basis',
"author": "Agile Business Group,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/server-ux",
"license": "AGPL-3",
"depends": ["base"],
"data": [
"views/model_view.xml",
],
"installable": True,
}
33 changes: 33 additions & 0 deletions base_optional_quick_create/i18n/base_optional_quick_create.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_optional_quick_create
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.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: base_optional_quick_create
#: model:ir.model.fields,field_description:base_optional_quick_create.field_ir_model__avoid_quick_create
msgid "Avoid Quick Create"
msgstr ""

#. module: base_optional_quick_create
#. odoo-python
#: code:addons/base_optional_quick_create/models/ir_model.py:0
#, python-format
msgid ""
"Can't create %(model)s with name %(name)s quickly.\n"
"Please contact your system administrator to disable this behaviour."
msgstr ""

#. module: base_optional_quick_create
#: model:ir.model,name:base_optional_quick_create.model_ir_model
msgid "Models"
msgstr ""
52 changes: 52 additions & 0 deletions base_optional_quick_create/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_optional_quick_create
#
# Translators:
# OCA Transbot <[email protected]>, 2017
# Rudolf Schnapka <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-10 00:47+0000\n"
"PO-Revision-Date: 2018-09-06 13:26+0000\n"
"Last-Translator: Rudolf Schnapka <[email protected]>\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"Language: de\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 3.1.1\n"

#. module: base_optional_quick_create
#: model:ir.model.fields,field_description:base_optional_quick_create.field_ir_model__avoid_quick_create
#, fuzzy
msgid "Avoid Quick Create"
msgstr "Unterbinde Schnellanlage"

#. module: base_optional_quick_create
#. odoo-python
#: code:addons/base_optional_quick_create/models/ir_model.py:0
#, python-format
msgid ""
"Can't create %(model)s with name %(name)s quickly.\n"
"Please contact your system administrator to disable this behaviour."
msgstr ""

#. module: base_optional_quick_create
#: model:ir.model,name:base_optional_quick_create.model_ir_model
msgid "Models"
msgstr "Datenmodelle"

#, python-format
#~ msgid ""
#~ "Can't create %s with name %s quickly.\n"
#~ "Please contact your system administrator to disable this behaviour."
#~ msgstr ""
#~ "Kann %s mit Name %s nicht schnell anlegen.\n"
#~ "Sprechen Sie mit dem Administrator, um dieses Verhalten abzustellen."

#~ msgid "Can't create quickly. Opening create form"
#~ msgstr "Kann Schnellanlage nicht ausführen. Verwenden Sie Formularanlage"
42 changes: 42 additions & 0 deletions base_optional_quick_create/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_optional_quick_create
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-01 10:38+0000\n"
"PO-Revision-Date: 2023-08-27 16:07+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"Language: es\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: base_optional_quick_create
#: model:ir.model.fields,field_description:base_optional_quick_create.field_ir_model__avoid_quick_create
msgid "Avoid Quick Create"
msgstr "Evitar la creación rápida"

#. module: base_optional_quick_create
#. odoo-python
#: code:addons/base_optional_quick_create/models/ir_model.py:0
#, python-format
msgid ""
"Can't create %(model)s with name %(name)s quickly.\n"
"Please contact your system administrator to disable this behaviour."
msgstr ""
"No se pueden crear %(model)s con nombre %(name)s rápidamente.\n"
"Ponte en contacto con el administrador del sistema para desactivar este "
"comportamiento."

#. module: base_optional_quick_create
#: model:ir.model,name:base_optional_quick_create.model_ir_model
msgid "Models"
msgstr "Modelos"
38 changes: 38 additions & 0 deletions base_optional_quick_create/i18n/fi.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_optional_quick_create
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-01 10:38+0000\n"
"PO-Revision-Date: 2017-05-01 10:38+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n"
"Language: fi\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"

#. module: base_optional_quick_create
#: model:ir.model.fields,field_description:base_optional_quick_create.field_ir_model__avoid_quick_create
msgid "Avoid Quick Create"
msgstr ""

#. module: base_optional_quick_create
#. odoo-python
#: code:addons/base_optional_quick_create/models/ir_model.py:0
#, python-format
msgid ""
"Can't create %(model)s with name %(name)s quickly.\n"
"Please contact your system administrator to disable this behaviour."
msgstr ""

#. module: base_optional_quick_create
#: model:ir.model,name:base_optional_quick_create.model_ir_model
msgid "Models"
msgstr "Mallit"
36 changes: 36 additions & 0 deletions base_optional_quick_create/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_optional_quick_create
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-05 17:15+0000\n"
"PO-Revision-Date: 2024-02-05 17:15+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: base_optional_quick_create
#: model:ir.model.fields,field_description:base_optional_quick_create.field_ir_model__avoid_quick_create
msgid "Avoid Quick Create"
msgstr ""

#. module: base_optional_quick_create
#. odoo-python
#: code:addons/base_optional_quick_create/models/ir_model.py:0
#, python-format
msgid ""
"Can't create %(model)s with name %(name)s quickly.\n"
"Please contact your system administrator to disable this behaviour."
msgstr ""

#. module: base_optional_quick_create
#: model:ir.model,name:base_optional_quick_create.model_ir_model
msgid "Models"
msgstr "Modèles"
44 changes: 44 additions & 0 deletions base_optional_quick_create/i18n/hr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_optional_quick_create
#
# Translators:
# OCA Transbot <[email protected]>, 2017
# Bole <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-13 01:00+0000\n"
"PO-Revision-Date: 2017-07-13 01:00+0000\n"
"Last-Translator: Bole <[email protected]>, 2017\n"
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"

#. module: base_optional_quick_create
#: model:ir.model.fields,field_description:base_optional_quick_create.field_ir_model__avoid_quick_create
#, fuzzy
msgid "Avoid Quick Create"
msgstr "Izbjegni brzo kreiranje"

#. module: base_optional_quick_create
#. odoo-python
#: code:addons/base_optional_quick_create/models/ir_model.py:0
#, python-format
msgid ""
"Can't create %(model)s with name %(name)s quickly.\n"
"Please contact your system administrator to disable this behaviour."
msgstr ""

#. module: base_optional_quick_create
#: model:ir.model,name:base_optional_quick_create.model_ir_model
msgid "Models"
msgstr "Modeli"

#~ msgid "Can't create quickly. Opening create form"
#~ msgstr "Nije moguće brzo kreiranje, otvaram formu za kreiranje"
Loading